Skip to content

Commit cec9414

Browse files
authored
chore: support pnpm (#5367)
1 parent 7127a5d commit cec9414

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ es
6262
_site
6363
yarn.lock
6464
package-lock.json
65+
pnpm-lock.yaml
6566
/coverage
6667

6768
# 备份文件

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"pretest": "npm run version",
3535
"predist": "npm run version",
3636
"presite": "npm run version",
37-
"dev": "yarn predev && yarn routes && vite serve site",
37+
"dev": "npm run predev && npm run routes && vite serve site",
3838
"test": "cross-env NODE_ENV=test jest --config .jest.js",
3939
"compile": "node antd-tools/cli/run.js compile",
4040
"generator-webtypes": "tsc -p antd-tools/generator-types/tsconfig.json && node antd-tools/generator-types/index.js",
@@ -56,7 +56,7 @@
5656
"routes": "node site/scripts/genrateRoutes.js",
5757
"tsc": "tsc --noEmit",
5858
"vue-tsc": "vue-tsc --noEmit",
59-
"site": "yarn routes && ./node_modules/vite/bin/vite.js build site --base=https://next.antdv.com/",
59+
"site": "npm run routes && ./node_modules/vite/bin/vite.js build site --base=https://next.antdv.com/",
6060
"pub:site": "npm run site && node site/scripts/pushToOSS.js",
6161
"prepare": "husky install",
6262
"version": "node ./scripts/generate-version",
@@ -169,6 +169,7 @@
169169
"fetch-jsonp": "^1.1.3",
170170
"fs-extra": "^10.0.0",
171171
"glob": "^7.1.2",
172+
"globby": "^11.1.0",
172173
"gray-matter": "^4.0.3",
173174
"gulp": "^4.0.1",
174175
"gulp-babel": "^8.0.0",
@@ -266,6 +267,7 @@
266267
"@ant-design/colors": "^6.0.0",
267268
"@ant-design/icons-vue": "^6.1.0",
268269
"@babel/runtime": "^7.10.5",
270+
"@ctrl/tinycolor": "^3.4.0",
269271
"@simonwep/pickr": "~1.8.0",
270272
"array-tree-filter": "^2.1.0",
271273
"async-validator": "^4.0.0",

0 commit comments

Comments
 (0)