From 8ba786e0d27915693a8f767460279500a5562494 Mon Sep 17 00:00:00 2001 From: Jesse205 <2055675594@qq.com> Date: Sun, 20 Apr 2025 06:37:50 +0800 Subject: [PATCH] fix: build on windows changed `node --run` to `pnpm run` --- packages/api-generator/package.json | 2 +- packages/docs/package.json | 4 ++-- packages/vuetify/package.json | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/api-generator/package.json b/packages/api-generator/package.json index 75d3085771c..38be7af8700 100755 --- a/packages/api-generator/package.json +++ b/packages/api-generator/package.json @@ -7,7 +7,7 @@ "scripts": { "build": "node --import tsx --no-warnings src/index.ts", "lint": "eslint --ext .ts,.json src -f codeframe --max-warnings 0", - "lint:fix": "node --run lint -- --fix" + "lint:fix": "pnpm run lint -- --fix" }, "author": "", "license": "ISC", diff --git a/packages/docs/package.json b/packages/docs/package.json index 454767b068d..8eff2fd8954 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -15,8 +15,8 @@ "build": "vite build", "preview": "vite preview", "preview-https": "HTTPS=true vite preview", - "lint": "concurrently 'vue-tsc --noEmit --pretty' 'node --run lint:md' 'jest --no-cache' -n 'tsc,md,eslint' --kill-others-on-fail -gr", - "lint:fix": "node --run fix:md && JEST_FIX=true jest --no-cache", + "lint": "concurrently 'vue-tsc --noEmit --pretty' 'pnpm run lint:md' 'jest --no-cache' -n 'tsc,md,eslint' --kill-others-on-fail -gr", + "lint:fix": "pnpm run fix:md && JEST_FIX=true jest --no-cache", "lint:md": "markdownlint --config .markdownlintrc src/pages/en", "fix:md": "markdownlint --config .markdownlintrc src/pages/en --fix" }, diff --git a/packages/vuetify/package.json b/packages/vuetify/package.json index 662811b7467..e2fc272d901 100755 --- a/packages/vuetify/package.json +++ b/packages/vuetify/package.json @@ -104,15 +104,15 @@ "node": "^12.20 || >=14.13" }, "scripts": { - "watch": "node --run build:lib -- --watch", + "watch": "pnpm run build:lib -- --watch", "dev": "NODE_ENV=development vite", "dev:ssr": "NODE_ENV=development VITE_SSR=true vite-ssr", "dev:prod": "concurrently \"vite build -w\" \"vite preview\"", "dev:typecheck": "vue-tsc --noEmit --skipLibCheck --project ./tsconfig.dev.json", - "build": "rimraf lib dist && node --run build:lib && concurrently \"node --run build:dist\" \"node --run build:types:lib\" -n \"dist,types\" --kill-others-on-fail -gr && node --run build:types:bundle", + "build": "rimraf lib dist && pnpm run build:lib && concurrently \"pnpm run build:dist\" \"pnpm run build:types:lib\" -n \"dist,types\" --kill-others-on-fail -gr && pnpm run build:types:bundle", "build:dist": "rollup --config build/rollup.config.js", "build:lib": "NODE_ENV=lib babel src --out-dir lib --source-maps --extensions \".ts\",\".tsx\",\".snap\" --copy-files --no-copy-ignored --out-file-extension .js", - "build:types": "node --run build:types:lib && node --run build:types:bundle", + "build:types": "pnpm run build:types:lib && pnpm run build:types:bundle", "build:types:lib": "tspc --pretty --emitDeclarationOnly -p tsconfig.dist.json && node build/transform-types.js", "build:types:bundle": "rollup --config build/rollup.types.config.js", "tsc": "tsc", @@ -120,7 +120,7 @@ "test:unit": "vitest --project unit", "test:browser": "vitest --project browser", "test:open": "TEST_BAIL=1 vitest --project browser -w", - "test:coverage": "node --run test -- --coverage", + "test:coverage": "pnpm run test -- --coverage", "test:percy": "percy exec -- vitest --project browser", "test:all": "concurrently -gr 'vitest --project unit' 'vitest --project browser --shard=1/5' 'vitest --project browser --shard=2/5' 'vitest --project browser --shard=3/5' 'vitest --project browser --shard=4/5' 'vitest --project browser --shard=5/5'", "lint": "concurrently -n \"tsc,eslint\" --kill-others-on-fail \"tsc -p tsconfig.checks.json --noEmit --pretty\" \"eslint src -f codeframe --max-warnings 0\"",