mirror of
https://github.com/NohamR/gitprofile.git
synced 2026-05-24 20:00:22 +00:00
Add build:package script
This commit is contained in:
13
package.json
13
package.json
@@ -9,19 +9,22 @@
|
|||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/arifszn/gitprofile.git"
|
"url": "https://github.com/arifszn/gitprofile.git"
|
||||||
},
|
},
|
||||||
"files": ["dist"],
|
"files": [
|
||||||
"main": "./dist/my-lib.umd.js",
|
"dist"
|
||||||
"module": "./dist/my-lib.es.js",
|
],
|
||||||
|
"main": "./dist/gitprofile.umd.js",
|
||||||
|
"module": "./dist/gitprofile.es.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./dist/my-lib.es.js",
|
"import": "./dist/gitprofile.es.js",
|
||||||
"require": "./dist/my-lib.umd.js"
|
"require": "./dist/gitprofile.umd.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
|
"build:package": "vite build --config package.config.js",
|
||||||
"lint": "eslint --ext .js,.jsx .",
|
"lint": "eslint --ext .js,.jsx .",
|
||||||
"lint:fix": "eslint --ext .js,.jsx --fix .",
|
"lint:fix": "eslint --ext .js,.jsx --fix .",
|
||||||
"prettier": "prettier --check './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
|
"prettier": "prettier --check './**/*.{js,jsx,ts,tsx,css,md,json}' --config ./.prettierrc",
|
||||||
|
|||||||
Reference in New Issue
Block a user