chore: use pnpm shell-emulator instead of cross-env (#3692)

Signed-off-by: Sepush <sepush@outlook.com>

Signed-off-by: Sepush <sepush@outlook.com>
This commit is contained in:
Sepush 2022-09-11 23:33:34 +08:00 committed by GitHub
parent 4d6737b17d
commit 94cd0459c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 10 deletions

1
.npmrc Normal file
View File

@ -0,0 +1 @@
shell-emulator=true

View File

@ -9,9 +9,9 @@
"jsdelivr": "dist/index.js",
"scripts": {
"start": "pnpm run dev",
"dev": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && cross-env NODE_ENV=development vite",
"dev": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && NODE_ENV=development vite",
"build:package": "pnpm run gen-version && pnpm run clean && pnpm run gen-volar-dts && tsc -b --force tsconfig.esm.json && node scripts/pre-build/pre-cjs-build.js && tsc -b --force tsconfig.cjs.json && rollup -c && pnpm run test:umd && 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 && 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 dist node_modules/naive-ui themes/**/es themes/**/lib",
"release:package": "pnpm run test && pnpm run build:package && pnpm publish --no-git-checks",
"release:changelog": "node scripts/release-changelog.mjs",
@ -20,21 +20,21 @@
"lint:code": "eslint \"{src,build,scripts,demo}/**/*.{ts,tsx,js,vue,md}\"",
"lint:fix": "eslint --fix \"{src,build,scripts,demo}/**/*.{ts,tsx,js,vue,md}\"",
"lint:src-type": "tsc -b --force tsconfig.esm.json",
"lint:demo-type": "cross-env NODE_OPTIONS=--max-old-space-size=4096 vue-tsc -p src/tsconfig.demo.json",
"lint:demo-type": "NODE_OPTIONS=--max-old-space-size=4096 vue-tsc -p src/tsconfig.demo.json",
"format": "pnpm run format:code && pnpm run format:md && pnpm run lint:fix",
"format:code": "prettier --write \"(src|demo)/**/*.(vue|js)\"",
"format:md": "prettier --write --parser markdown --prose-wrap never \"(src|demo)/**/*.md\"",
"test": "cross-env NODE_ENV=test jest --collectCoverage=false",
"test:update": "cross-env NODE_ENV=test jest -u --collectCoverage=false",
"test:cov": "cross-env NODE_ENV=test NODE_OPTIONS=--unhandled-rejections=warn jest",
"test:watch": "cross-env NODE_ENV=test jest ---watch --verbose --coverage",
"test": "NODE_ENV=test jest --collectCoverage=false",
"test:update": "NODE_ENV=test jest -u --collectCoverage=false",
"test:cov": "NODE_ENV=test NODE_OPTIONS=--unhandled-rejections=warn jest",
"test:watch": "NODE_ENV=test jest ---watch --verbose --coverage",
"test:umd": "jest --collectCoverage=false --testMatch=\"<rootDir>/umd-test/index.spec.js\"",
"gen-version": "node scripts/gen-version",
"gen-volar-dts": "esbuild scripts/gen-component-declaration.js --bundle --platform=node --tsconfig=tsconfig.esbuild.json | node",
"build:site:ts": "./scripts/pre-build-site/pre-build-site.sh && cross-env TUSIMPLE=true NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
"build:site:ts": "./scripts/pre-build-site/pre-build-site.sh && TUSIMPLE=true NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
"prepare": "husky install",
"transpile-docs": "node scripts/md-to-vue data-table",
"release:site": "cross-env TUSIMPLE=true pnpm run build:site && node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh"
"release:site": "TUSIMPLE=true pnpm run build:site && node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh"
},
"author": "07akioni",
"license": "MIT",
@ -105,7 +105,6 @@
"autoprefixer": "^10.4.4",
"babel-jest": "^28.1.3",
"codesandbox": "^2.2.3",
"cross-env": "^7.0.3",
"cssnano": "^5.1.7",
"deepmerge": "^4.2.2",
"esbuild": "0.15.7",