fix: `build:packages` script not running on Windows (#642)

#### What type of PR is this?

/kind documentation

#### What this PR does / why we need it:

修复在 Windows 平台下无法正常运行 `build:packages` 等脚本的问题。

#### Which issue(s) this PR fixes:

Fixes https://github.com/halo-dev/halo/issues/2568

#### Does this PR introduce a user-facing change?

```release-note
NONE
```
pull/644/head
Simple-Stark 2022-10-14 13:50:17 +08:00 committed by GitHub
parent e419ddc617
commit 279dc59608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@
"prepare": "husky install",
"dev": "vite --host",
"build": "vue-tsc --noEmit && vite build",
"build:packages": "pnpm --filter './packages/**' build",
"build:packages": "pnpm --filter \"./packages/**\" build",
"preview": "vite preview --port 5050",
"test:unit": "vitest --environment jsdom --run && pnpm run test:unit:packages",
"test:unit:watch": "vitest --environment jsdom --watch",
@ -16,10 +16,10 @@
"typecheck": "vue-tsc --noEmit -p tsconfig.app.json --composite false && pnpm run typecheck:packages",
"lint": "eslint ./src --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --ignore-path .gitignore && pnpm run lint:packages",
"prettier": "prettier --write './src/**/*.{vue,js,jsx,ts,tsx,css,scss,json,yml,yaml,html}' && pnpm run prettier:packages",
"typecheck:packages": "pnpm --parallel --filter './packages/**' run typecheck",
"lint:packages": "pnpm --parallel --filter './packages/**' lint",
"prettier:packages": "pnpm --parallel --filter './packages/**' prettier",
"test:unit:packages": "pnpm --parallel --filter './packages/**' run test:unit"
"typecheck:packages": "pnpm --parallel --filter \"./packages/**\" run typecheck",
"lint:packages": "pnpm --parallel --filter \"./packages/**\" lint",
"prettier:packages": "pnpm --parallel --filter \"./packages/**\" prettier",
"test:unit:packages": "pnpm --parallel --filter \"./packages/**\" run test:unit"
},
"workspaces": [
"packages/*"