|
6 | 6 | "url": "git+https://github.com/alibaba/hooks.git"
|
7 | 7 | },
|
8 | 8 | "scripts": {
|
9 |
| - "init": "rm -rf node_modules && yarn install && yarn run clean && yarn run bootstrap && yarn run build", |
10 |
| - "start": "yarn run dev", |
| 9 | + "init": "pnpm clean && pnpm install && pnpm run build", |
| 10 | + "start": "pnpm run dev", |
11 | 11 | "dev": "dumi dev",
|
12 |
| - "bootstrap": "lerna bootstrap", |
13 |
| - "clean": "lerna clean --yes", |
14 |
| - "build": "lerna run build", |
| 12 | + "clean": "rm -rf node_modules **/*/node_modules", |
| 13 | + "build": "pnpm -r --filter=./packages/* run build", |
15 | 14 | "test": "jest",
|
16 | 15 | "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
|
17 | 16 | "lint": "eslint --ignore-pattern **/__tests__/* --ignore-pattern **/demo/* \"packages/*/src/**/*.{ts,tsx}\"",
|
| 17 | + "pretty": "pretty-quick --staged", |
18 | 18 | "build:doc": "dumi build",
|
19 | 19 | "pub:doc-surge": "surge ./dist --domain ahooks.js.org",
|
20 | 20 | "pub:doc-gitee": "cd ./dist && rm -rf .git && touch .spa && touch .nojekyll && git init && git remote add origin [email protected]:ahooks/ahooks.git && git add -A && git commit -m \"publish docs\" && git push origin master -f && echo https://gitee.com/ahooks/ahooks/pages",
|
21 |
| - "pub:doc": "yarn run build:doc && yarn run pub:doc-surge && yarn run pub:doc-gitee", |
22 |
| - "pub": "yarn run build && lerna publish", |
23 |
| - "pub:beta": "yarn run build && lerna publish --dist-tag beta" |
24 |
| - }, |
25 |
| - "husky": { |
26 |
| - "hooks": { |
27 |
| - "pre-commit": "pretty-quick --staged" |
28 |
| - } |
| 21 | + "pub:doc": "pnpm run build:doc && pnpm run pub:doc-surge && pnpm run pub:doc-gitee", |
| 22 | + "pub": "pnpm run build && pnpm run publish", |
| 23 | + "pub:beta": "pnpm run build && pnpm run publish --tag beta", |
| 24 | + "preinstall": "npx only-allow pnpm", |
| 25 | + "prepare": "husky install" |
29 | 26 | },
|
30 | 27 | "devDependencies": {
|
31 | 28 | "@ant-design/icons": "^4.6.2",
|
|
55 | 52 | "gulp": "^4.0.2",
|
56 | 53 | "gulp-babel": "^8.0.0",
|
57 | 54 | "gulp-typescript": "^6.0.0-alpha.1",
|
58 |
| - "husky": "^4.2.5", |
| 55 | + "husky": "^8.0.0", |
59 | 56 | "jest": "^26.0.1",
|
60 | 57 | "jest-fetch-mock": "^3.0.3",
|
61 | 58 | "jest-localstorage-mock": "^2.4.18",
|
62 |
| - "lerna": "4.x", |
63 | 59 | "mockdate": "^3.0.2",
|
64 | 60 | "mockjs": "^1.1.0",
|
65 | 61 | "prettier": "^2.0.5",
|
66 |
| - "pretty-quick": "^2.0.1", |
| 62 | + "pretty-quick": "^3.1.3", |
67 | 63 | "react": "^16.8.6",
|
68 | 64 | "react-dom": "^16.8.6",
|
69 | 65 | "react-drag-listview": "^0.1.6",
|
|
75 | 71 | "webpack": "^4.43.0",
|
76 | 72 | "webpack-cli": "^3.3.10",
|
77 | 73 | "webpack-merge": "^4.2.2"
|
78 |
| - } |
| 74 | + }, |
| 75 | + "packageManager": "[email protected]" |
79 | 76 | }
|
0 commit comments