chore: restore missing dev script (#1491)

This commit is contained in:
Hawods 2021-11-01 14:19:11 +08:00 committed by GitHub
parent b8f53fb943
commit 79d55807c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,6 +6,7 @@
"module": "es/index.js", "module": "es/index.js",
"scripts": { "scripts": {
"start": "pnpm run dev", "start": "pnpm run dev",
"dev": "pnpm run clean && pnpm run gen-version && cross-env NODE_ENV=development vite",
"build:package": "pnpm run gen-version && pnpm run clean && tsc -b --force tsconfig.esm.json && node scripts/pre-build/pre-cjs-build.js && tsc -b --force tsconfig.cjs.json && node scripts/post-build && rimraf {es,lib}/*.tsbuildinfo", "build:package": "pnpm run gen-version && pnpm run clean && tsc -b --force tsconfig.esm.json && node scripts/pre-build/pre-cjs-build.js && tsc -b --force tsconfig.cjs.json && node scripts/post-build && rimraf {es,lib}/*.tsbuildinfo",
"build:site": "./scripts/pre-build-site/pre-build-site.sh && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh", "build:site": "./scripts/pre-build-site/pre-build-site.sh && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
"clean": "rimraf site lib es node_modules/naive-ui themes/**/es themes/**/lib", "clean": "rimraf site lib es node_modules/naive-ui themes/**/es themes/**/lib",