|
17 | 17 | "benchmark": "node ./benchmark/index.mjs", |
18 | 18 | "build": "node -r esbuild-register scripts/build.ts", |
19 | 19 | "build:explorer": "cd packages/format-explorer && vite build", |
20 | | - "build:size": "npm run build && run-p build:size-*", |
21 | | - "build:size-core": "cd packages/size-check-core && npm run build", |
22 | | - "build:size-petite-vue-i18n": "cd packages/size-check-petite-vue-i18n && npm run build", |
23 | | - "build:size-vue-i18n": "cd packages/size-check-vue-i18n && npm run build", |
24 | | - "build:sourcemap": "npm run build -- --sourcemap", |
| 20 | + "build:size": "pnpm build && run-p build:size-*", |
| 21 | + "build:size-core": "cd packages/size-check-core && pnpm build", |
| 22 | + "build:size-petite-vue-i18n": "cd packages/size-check-petite-vue-i18n && pnpm build", |
| 23 | + "build:size-vue-i18n": "cd packages/size-check-vue-i18n && pnpm build", |
| 24 | + "build:sourcemap": "pnpm build --sourcemap", |
25 | 25 | "build:type": "./scripts/build.sh", |
26 | | - "build:typed": "npm run build -- core-base vue-i18n-core --types", |
| 26 | + "build:typed": "pnpm build core-base vue-i18n-core --types", |
27 | 27 | "clean": "run-p clean:*", |
28 | | - "clean:cache": "npm run clean:cache:jest", |
| 28 | + "clean:cache": "pnpm clean:cache:jest", |
29 | 29 | "clean:cache:jest": "jest --clearCache", |
30 | 30 | "clean:coverage": "rimraf ./coverage", |
31 | 31 | "clean:dist": "rimraf ./dist ./packages/**/dist ./docs/.vitepress/dist", |
|
35 | 35 | "dev": "node -r esbuild-register scripts/dev.ts", |
36 | 36 | "dev:e2e": "jest --runInBand --config ./jest.e2e.config.js", |
37 | 37 | "dev:explorer": "vite packages/format-explorer", |
38 | | - "docs:apigen": "npm run docs:apigen:core && npm run docs:apigen:vue", |
| 38 | + "docs:apigen": "pnpm docs:apigen:core && pnpm docs:apigen:vue", |
39 | 39 | "docs:apigen:core": "api-docs-gen ./temp/core-base.api.json -o ./docs/api -c ./docsgen.config.js -g noprefix -t ./tsdoc.json && mv ./docs/api/general.md ./docs/api/temp.md", |
40 | 40 | "docs:apigen:vue": "api-docs-gen ./temp/vue-i18n-core.api.json -o ./docs/api -c ./docsgen.config.js -g noprefix -t ./tsdoc.json && tail -n +3 ./docs/api/temp.md >> ./docs/api/general.md && rm -rf ./docs/api/temp.md", |
41 | | - "docs:build": "npm run docs:setup && vitepress build docs", |
| 41 | + "docs:build": "pnpm docs:setup && vitepress build docs", |
42 | 42 | "docs:dev": "vitepress dev docs", |
43 | 43 | "docs:serve": "vitepress serve docs", |
44 | | - "docs:setup": "npm run build:typed && npm run docs:apigen", |
45 | | - "example:ssr": "cd examples/ssr/vite && npm run dev", |
| 44 | + "docs:setup": "pnpm build:typed && pnpm docs:apigen", |
| 45 | + "example:ssr": "cd examples/ssr/vite && pnpm dev", |
46 | 46 | "fix": "run-p lint:fix format:fix", |
47 | 47 | "format:fix": "run-p \"format:prettier --write\" format:package", |
48 | 48 | "format:package": "node -r esbuild-register ./scripts/fixpack.ts", |
|
57 | 57 | "release": "bumpp package.json packages/**/package.json --commit \"release: v\" --push --tag", |
58 | 58 | "serve:explorer": "cd packages/format-explorer && vite preview", |
59 | 59 | "test": "npm-run-all lint clean:cache:jest test:cover test:type test:e2e", |
60 | | - "test:cover": "npm run test:unit -- --coverage", |
| 60 | + "test:cover": "pnpm test:unit --coverage", |
61 | 61 | "test:e2e": "jest --runInBand --config ./jest.e2e.config.js", |
62 | 62 | "test:type": "tsc -p ./test-dts/tsconfig.json", |
63 | | - "test:unit": "npm run clean:cache:jest && jest --env node" |
| 63 | + "test:unit": "pnpm clean:cache:jest && jest --env node" |
64 | 64 | }, |
65 | 65 | "devDependencies": { |
66 | 66 | "@intlify/core-base": "workspace:*", |
|
0 commit comments