Skip to content

Commit 392105e

Browse files
committed
chore: use pnpm shell-emulator instead of cross-env
1 parent f629663 commit 392105e

File tree

4 files changed

+1858
-4435
lines changed

4 files changed

+1858
-4435
lines changed

.husky/lintstagedrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
3-
"{!(package)*.json,.!(browserslist)*rc}": ["prettier --write--parser json"],
3+
"{!(package)*.json}": ["prettier --write--parser json"],
44
"package.json": ["prettier --write"],
55
"*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"],
66
"*.{vue,css,scss,postcss,less}": ["stylelint --fix", "prettier --write"],

.npmrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
shamefully-hoist=true
2+
strict-peer-dependencies=false
3+
shell-emulator=true

package.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"version": "3.4.6",
44
"private": true,
55
"scripts": {
6-
"dev": "cross-env --max_old_space_size=4096 vite",
6+
"dev": "NODE_OPTIONS=--max-old-space-size=4096 vite",
77
"serve": "pnpm dev",
8-
"build": "rimraf dist && cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build",
9-
"build:staging": "rimraf dist && cross-env vite build --mode staging",
10-
"report": "rimraf dist && cross-env vite build",
8+
"build": "rimraf dist && NODE_OPTIONS=--max-old-space-size=8192 vite build",
9+
"build:staging": "rimraf dist && vite build --mode staging",
10+
"report": "rimraf dist && vite build",
1111
"preview": "vite preview",
1212
"preview:build": "pnpm build && vite preview",
1313
"typecheck": "tsc --noEmit && vue-tsc --noEmit --skipLibCheck",
14-
"cloc": "cross-env --max_old_space_size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
14+
"cloc": "NODE_OPTIONS=--max-old-space-size=4096 cloc . --exclude-dir=node_modules --exclude-lang=YAML",
1515
"clean:cache": "rm -rf node_modules && rm -rf .eslintcache && pnpm install",
1616
"lint:eslint": "eslint --cache --max-warnings 0 \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
1717
"lint:prettier": "prettier --write \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
@@ -65,7 +65,6 @@
6565
"qs": "^6.11.0",
6666
"resize-observer-polyfill": "^1.5.1",
6767
"responsive-storage": "^2.1.0",
68-
"rgb-hex": "^4.0.0",
6968
"sortablejs": "^1.15.0",
7069
"swiper": "^8.3.2",
7170
"v-contextmenu": "3.0.0",
@@ -118,7 +117,6 @@
118117
"@vue/runtime-core": "^3.2.38",
119118
"autoprefixer": "^10.4.8",
120119
"cloc": "^2.10.0",
121-
"cross-env": "7.0.3",
122120
"eslint": "^8.8.0",
123121
"eslint-plugin-prettier": "^4.0.0",
124122
"eslint-plugin-vue": "^8.4.1",

0 commit comments

Comments
 (0)