|
1 | 1 | {
|
2 | 2 | "name": "ahooks",
|
3 | 3 | "private": true,
|
4 |
| - "packageManager": "[email protected]", |
5 |
| - "engines": { |
6 |
| - "pnpm": ">=7 <10" |
7 |
| - }, |
8 | 4 | "repository": {
|
9 | 5 | "type": "git",
|
10 | 6 | "url": "git+https://github.com/alibaba/hooks.git"
|
11 | 7 | },
|
12 | 8 | "scripts": {
|
13 |
| - "init": "pnpm install && pnpm run build", |
14 |
| - "start": "pnpm run dev", |
15 |
| - "dev": "set NODE_OPTIONS=--openssl-legacy-provider && dumi dev", |
16 |
| - "clean-dist": "rimraf 'packages/*/{lib,es,node_modules,dist}'", |
17 |
| - "clean": "pnpm run clean-dist && rimraf node_modules", |
18 | 9 | "build": "pnpm -r --filter=./packages/* run build",
|
19 |
| - "test": "jest", |
| 10 | + "build:doc": "dumi build", |
| 11 | + "clean": "pnpm run clean-dist && rimraf node_modules", |
| 12 | + "clean-dist": "rimraf 'packages/*/{lib,es,node_modules,dist}'", |
20 | 13 | "coveralls": "jest --coverage --coverageReporters=text-lcov | coveralls",
|
21 |
| - "lint": "eslint --ignore-pattern **/__tests__/* --ignore-pattern **/demo/* \"packages/*/src/**/*.{ts,tsx}\" --cache", |
| 14 | + "dev": "set NODE_OPTIONS=--openssl-legacy-provider && dumi dev", |
| 15 | + "init": "pnpm install && pnpm run build", |
| 16 | + "preinstall": "npx only-allow pnpm", |
| 17 | + "lint": "eslint .", |
| 18 | + "lint:fix": "prettier --write . && eslint --fix .", |
| 19 | + "prepare": "husky", |
22 | 20 | "pretty": "biome format --fix --staged",
|
23 |
| - "build:doc": "dumi build", |
24 |
| - "pub:doc-surge": "surge ./dist --domain ahooks.js.org", |
25 |
| - "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 main -f && echo https://gitee.com/ahooks/ahooks/pages", |
26 |
| - "pub:doc": "pnpm run build:doc && pnpm run pub:doc-surge && pnpm run pub:doc-gitee", |
27 | 21 | "pub": "pnpm run build && pnpm -r --filter=./packages/* publish",
|
28 | 22 | "pub:beta": "pnpm run build && pnpm -r --filter=./packages/* publish --tag beta",
|
29 |
| - "preinstall": "npx only-allow pnpm", |
30 |
| - "prepare": "husky install", |
| 23 | + "pub:doc": "pnpm run build:doc && pnpm run pub:doc-surge && pnpm run pub:doc-gitee", |
| 24 | + "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 main -f && echo https://gitee.com/ahooks/ahooks/pages", |
| 25 | + "pub:doc-surge": "surge ./dist --domain ahooks.js.org", |
| 26 | + "start": "pnpm run dev", |
| 27 | + "test": "jest", |
31 | 28 | "test:strict": "cross-env REACT_MODE=strict jest"
|
32 | 29 | },
|
| 30 | + "commitlint": { |
| 31 | + "extends": [ |
| 32 | + "ali" |
| 33 | + ] |
| 34 | + }, |
| 35 | + "lint-staged": { |
| 36 | + "*.{cjs,cts,js,jsx,mjs,mts,ts,tsx,vue}": "eslint --fix", |
| 37 | + "*.{cjs,css,cts,html,js,json,jsx,less,md,mjs,mts,scss,ts,tsx,vue,yaml,yml}": "prettier --write" |
| 38 | + }, |
| 39 | + "prettier": "prettier-config-ali", |
33 | 40 | "devDependencies": {
|
34 |
| - "@ant-design/icons": "^5.3.0", |
35 |
| - "@babel/cli": "^7.10.1", |
36 |
| - "@babel/core": "^7.10.2", |
37 |
| - "@babel/plugin-transform-runtime": "^7.19.6", |
38 |
| - "@biomejs/biome": "^1.8.3", |
39 |
| - "@commitlint/cli": "^17.1.2", |
40 |
| - "@commitlint/config-conventional": "^17.1.0", |
41 |
| - "@testing-library/jest-dom": "^5.16.5", |
| 41 | + "@ant-design/icons": "^5.6.1", |
| 42 | + "@babel/cli": "^7.26.4", |
| 43 | + "@babel/core": "^7.26.9", |
| 44 | + "@babel/plugin-transform-runtime": "^7.26.9", |
| 45 | + "@biomejs/biome": "^1.9.4", |
| 46 | + "@commitlint/cli": "^19.7.1", |
| 47 | + "@commitlint/config-conventional": "^17.8.1", |
| 48 | + "@testing-library/jest-dom": "^5.17.0", |
42 | 49 | "@testing-library/react": "^13.4.0",
|
43 |
| - "@types/jest": "^29.4.0", |
44 |
| - "@types/mockjs": "^1.0.7", |
45 |
| - "@types/react-router": "^5.1.19", |
46 |
| - "@umijs/fabric": "^2.1.0", |
47 |
| - "antd": "^5.14.2", |
48 |
| - "babel-plugin-import": "^1.12.0", |
| 50 | + "@types/jest": "^29.5.14", |
| 51 | + "@types/mockjs": "^1.0.10", |
| 52 | + "@types/react-router": "^5.1.20", |
| 53 | + "@umijs/fabric": "^2.14.1", |
| 54 | + "antd": "^5.24.2", |
| 55 | + "babel-plugin-import": "^1.13.8", |
| 56 | + "commitlint-config-ali": "^1.1.0", |
49 | 57 | "coveralls": "^3.1.1",
|
50 | 58 | "cross-env": "^7.0.3",
|
51 | 59 | "del": "^5.1.0",
|
52 |
| - "dumi": "^1.1.48", |
53 |
| - "eslint": "^8.56.0", |
54 |
| - "eslint-plugin-react-hooks": "^4.6.0", |
55 |
| - "fast-glob": "^3.2.11", |
56 |
| - "fs-extra": "^10.0.1", |
| 60 | + "dumi": "^1.1.54", |
| 61 | + "eslint": "^9.21.0", |
| 62 | + "eslint-config-ali": "^16.1.1", |
| 63 | + "eslint-config-prettier": "^10.0.2", |
| 64 | + "eslint-plugin-prettier": "^5.2.3", |
| 65 | + "fast-glob": "^3.3.3", |
| 66 | + "fs-extra": "^10.1.0", |
57 | 67 | "gray-matter": "^4.0.3",
|
58 | 68 | "gulp": "^4.0.2",
|
59 | 69 | "gulp-babel": "^8.0.0",
|
60 |
| - "gulp-typescript": "^6.0.0-alpha.1", |
61 |
| - "husky": "^8.0.0", |
62 |
| - "jest": "^29.4.1", |
63 |
| - "jest-environment-jsdom": "^29.4.1", |
64 |
| - "jest-localstorage-mock": "^2.4.18", |
| 70 | + "gulp-typescript": "6.0.0-alpha.1", |
| 71 | + "husky": "^9.1.7", |
| 72 | + "jest": "^29.7.0", |
| 73 | + "jest-environment-jsdom": "^29.7.0", |
| 74 | + "jest-localstorage-mock": "^2.4.26", |
| 75 | + "lint-staged": "^15.4.3", |
65 | 76 | "mockjs": "^1.1.0",
|
66 |
| - "react": "^18.2.0", |
67 |
| - "react-dom": "^18.2.0", |
68 |
| - "react-drag-listview": "^0.1.6", |
69 |
| - "react-router": "^6.4.2", |
70 |
| - "react-shadow": "^19.0.3", |
| 77 | + "prettier": "^3.5.3", |
| 78 | + "prettier-config-ali": "^1.3.2", |
| 79 | + "react": "^18.3.1", |
| 80 | + "react-dom": "^18.3.1", |
| 81 | + "react-drag-listview": "^0.1.9", |
| 82 | + "react-router": "^6.30.0", |
| 83 | + "react-shadow": "^19.1.0", |
71 | 84 | "rimraf": "^3.0.2",
|
72 |
| - "surge": "^0.21.3", |
73 |
| - "ts-jest": "^29.1.1", |
74 |
| - "typescript": "^5.1.3", |
75 |
| - "webpack": "^5.90.3", |
| 85 | + "surge": "^0.21.7", |
| 86 | + "ts-jest": "^29.2.6", |
| 87 | + "typescript": "^5.8.2", |
| 88 | + "webpack": "^5.98.0", |
76 | 89 | "webpack-cli": "^5.1.4",
|
77 | 90 | "webpack-merge": "^4.2.2"
|
78 | 91 | },
|
79 |
| - "commitlint": { |
80 |
| - "extends": ["@commitlint/config-conventional"] |
| 92 | + "packageManager": "[email protected]", |
| 93 | + "engines": { |
| 94 | + "pnpm": ">=10 <11" |
81 | 95 | }
|
82 | 96 | }
|
0 commit comments