Skip to content

Commit 5565580

Browse files
committed
feat: migrate to pnpm
1 parent 62fab26 commit 5565580

File tree

6 files changed

+6641
-6178
lines changed

6 files changed

+6641
-6178
lines changed

Diff for: .eslintrc.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
},
77
"ignorePatterns": ["**/*.ts"],
88
"plugins": ["@typescript-eslint"],
9-
"extends": [],
10-
"rules": {
11-
"@typescript-eslint/explicit-module-boundary-types": "off"
12-
},
9+
"extends": ["prettier"],
10+
"rules": {},
1311
"overrides": []
1412
}

Diff for: .husky/pre-commit

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
npm test
4+
# pnpm run test
5+
# pnpx lint-staged

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# node-lib-starter
22

3-
Start NodeJS + TypeScript library developing with ease, have fun!
3+
Start NodeJS + TypeScript + Pnpm library developing with ease, have fun!
44

55
## Include
66

Diff for: package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
},
2828
"repository": {
2929
"type": "git",
30-
"url": "git+https://github.com/linbudu599/node-lib-starter.git"
30+
"url": "git+https://github.com/LinbuduLab/node-lib-starter.git"
3131
},
3232
"keywords": [],
3333
"author": "linbudu",
3434
"license": "MIT",
3535
"bugs": {
36-
"url": "https://github.com/linbudu599/node-lib-starter/issues"
36+
"url": "https://github.com/LinbuduLab/node-lib-starter/issues"
3737
},
38-
"homepage": "https://github.com/linbudu599/node-lib-starter#readme",
38+
"homepage": "https://github.com/LinbuduLab/node-lib-starter#readme",
3939
"devDependencies": {
4040
"@commitlint/cli": "^15.0.0",
4141
"@commitlint/config-conventional": "^15.0.0",
@@ -59,6 +59,7 @@
5959
"husky": "^7.0.4",
6060
"is-ci": "^3.0.1",
6161
"jest": "^27.3.1",
62+
"lint-staged": "^12.1.5",
6263
"pinst": "^2.1.6",
6364
"prettier": "^2.4.1",
6465
"release-it": "^14.11.7",
@@ -74,5 +75,9 @@
7475
"commitizen": {
7576
"path": "node_modules/cz-customizable"
7677
}
78+
},
79+
"lint-staged": {
80+
"*.js": "eslint --cache --fix",
81+
"*.{js,css,md}": "prettier --write"
7782
}
7883
}

0 commit comments

Comments
 (0)