|
38 | 38 | "package.json" |
39 | 39 | ], |
40 | 40 | "scripts": { |
41 | | - "build": "yarn ts ./scripts/build.ts", |
42 | | - "clean": "yarn ts ./scripts/clean.ts", |
| 41 | + "build": "pnpm ts ./scripts/build.ts", |
| 42 | + "clean": "pnpm ts ./scripts/clean.ts", |
43 | 43 | "format:code": "prettier \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md,html}\" --write", |
44 | 44 | "format:code:eslint": "eslint \"**/*.{ts,tsx}\" --fix", |
45 | 45 | "format:yarn:lock": "yarn-deduplicate yarn.lock --strategy highest", |
46 | 46 | "lerna:version:up": "lerna version --yes", |
47 | | - "release:github:registry": "yarn publish --registry https://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}", |
48 | | - "release:npm:registry": "yarn publish", |
49 | | - "test": "run-s test:depcruise test:jest test:code:gen test:snapshot", |
50 | | - "test:code:gen": "yarn ts ./scripts/testCodeGen.ts", |
| 47 | + "release:github:registry": "pnpm publish --registry https://npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}", |
| 48 | + "release:npm:registry": "pnpm publish", |
| 49 | + "test": "run-p test:depcruise test:jest test:code:gen test:snapshot", |
| 50 | + "test:code:gen": "pnpm ts ./scripts/testCodeGen.ts", |
51 | 51 | "test:depcruise": "depcruise --validate .dependency-cruiser.js src", |
52 | 52 | "test:eslint": "eslint \"src/**/*.{ts,tsx}\"", |
53 | 53 | "test:jest": "jest -c ./jest.config.js", |
54 | 54 | "test:snapshot": "jest -c ./jest.snapshot.config.js", |
55 | 55 | "ts": "ts-node -P tsconfig.build.json", |
56 | | - "update:snapshot": "yarn test:snapshot --updateSnapshot", |
57 | | - "validate": "yarn ts ./scripts/validate.ts", |
58 | | - "watch": "yarn ts ./scripts/watch.ts" |
59 | | - }, |
60 | | - "husky": { |
61 | | - "hooks": { |
62 | | - "pre-commit": "lint-staged", |
63 | | - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
64 | | - } |
65 | | - }, |
66 | | - "config": { |
67 | | - "commitizen": { |
68 | | - "path": "cz-conventional-changelog" |
69 | | - } |
| 56 | + "update:snapshot": "pnpm test:snapshot --updateSnapshot", |
| 57 | + "watch": "pnpm ts ./scripts/watch.ts", |
| 58 | + "validate": "pnpm ts ./scripts/validate.ts" |
70 | 59 | }, |
71 | 60 | "resolutions": { |
72 | 61 | "kind-of": "6.0.3", |
|
98 | 87 | "eslint-plugin-import": "2.22.1", |
99 | 88 | "execa": "5.0.0", |
100 | 89 | "generate-changelog": "1.8.0", |
101 | | - "husky": "4.3.7", |
102 | 90 | "import-sort-style-module": "6.0.0", |
103 | 91 | "jest": "26.6.3", |
104 | 92 | "jest-cli": "26.6.3", |
|
110 | 98 | "prettier-plugin-import-sort": "0.0.6", |
111 | 99 | "read-pkg-up": "^7.0.1", |
112 | 100 | "rimraf": "3.0.2", |
| 101 | + "simple-git-hooks": "^2.7.0", |
113 | 102 | "sort-package-json": "1.49.0", |
114 | 103 | "ts-jest": "26.5.4", |
115 | 104 | "ts-node": "9.1.1", |
|
119 | 108 | "peerDependencies": { |
120 | 109 | "typescript": "4.2.3" |
121 | 110 | }, |
| 111 | + "engines": { |
| 112 | + "node": ">=16", |
| 113 | + "npm": "forbidden, use pnpm", |
| 114 | + "pnpm": ">=6", |
| 115 | + "yarn": "forbidden, use pnpm" |
| 116 | + }, |
122 | 117 | "publishConfig": { |
123 | 118 | "access": "public" |
124 | 119 | }, |
|
127 | 122 | "style": "module", |
128 | 123 | "parser": "typescript" |
129 | 124 | } |
| 125 | + }, |
| 126 | + "simple-git-hooks": { |
| 127 | + "pre-commit": "pnpm lint-staged" |
130 | 128 | } |
131 | 129 | } |
0 commit comments