Skip to content

Commit 457e0e1

Browse files
committed
feat: update husky, lint-staged, jest
1 parent e19c3e4 commit 457e0e1

File tree

4 files changed

+27
-20
lines changed

4 files changed

+27
-20
lines changed

.husky/pre-commit

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npx lint-staged

.npmrc

-1
This file was deleted.

package.json

+20-12
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"test": "jest --runInBand",
4646
"test-cov": "jest --runInBand --coverage",
4747
"clean": "rm -rf dist && npm run build",
48-
"prepare": "husky install"
48+
"prepare": "husky"
4949
},
5050
"license": "MIT",
5151
"dependencies": {
@@ -60,10 +60,16 @@
6060
"sbg-utility": "^1.1.6"
6161
},
6262
"devDependencies": {
63-
"@jest/environment": "^29.6.1",
64-
"@jest/expect": "^29.6.1",
65-
"@jest/globals": "^29.6.1",
66-
"@jest/types": "^29.6.1",
63+
"@babel/core": "^7.25.8",
64+
"@babel/preset-env": "^7.25.8",
65+
"@babel/preset-typescript": "^7.25.7",
66+
"@eslint/js": "^9.13.0",
67+
"@jest/environment": "^29.7.0",
68+
"@jest/expect": "^29.7.0",
69+
"@jest/globals": "^29.7.0",
70+
"@jest/types": "^29.6.3",
71+
"@types/babel__core": "^7",
72+
"@types/babel__preset-env": "^7",
6773
"@types/bluebird": "^3.5.42",
6874
"@types/eslint": "^9",
6975
"@types/fs-extra": "^11.0.4",
@@ -77,24 +83,26 @@
7783
"@types/warehouse": "https://github.com/dimaslanjaka/hexo/raw/8b31a11/releases/warehouse.tgz",
7884
"@typescript-eslint/eslint-plugin": "^6.7.5",
7985
"@typescript-eslint/parser": "^6.7.5",
86+
"babel-jest": "^29.7.0",
8087
"cross-env": "^7.0.3",
8188
"cross-spawn": "https://github.com/dimaslanjaka/node-cross-spawn/raw/5560156/release/cross-spawn.tgz",
8289
"dotenv": "^16.4.5",
8390
"eslint": "^8.51.0",
8491
"eslint-config-prettier": "^9.1.0",
8592
"eslint-plugin-prettier": "^5.0.1",
8693
"git-command-helper": "^2.0.2",
94+
"globals": "^15.11.0",
8795
"hexo": "https://github.com/dimaslanjaka/hexo/raw/8b31a11/releases/hexo.tgz",
8896
"hexo-renderers": "^2.0.2",
89-
"husky": "^8.0.3",
90-
"jest": "^29.6.1",
91-
"jest-config": "^29.6.1",
92-
"jest-mock": "^29.6.1",
93-
"lint-staged": "^13.2.3",
97+
"husky": "^9.1.6",
98+
"jest": "^29.7.0",
99+
"jest-config": "^29.7.0",
100+
"jest-mock": "^29.7.0",
101+
"lint-staged": "^15.2.10",
94102
"prettier": "^3.3.3",
95-
"ts-jest": "^29.1.1",
103+
"ts-jest": "^29.2.5",
96104
"ts-node": "^10.9.2",
97-
"typescript": "^5.2.2"
105+
"typescript": "^5.6.3"
98106
},
99107
"engines": {
100108
"node": ">=14.0.0"

tsconfig.json

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,22 @@
55
"module": "commonjs",
66
"lib": ["ESNext"],
77
//"composite": true,
8-
98
/* Strict Type-Checking Options */
109
"strict": true,
11-
1210
/* Module Resolution Options */
1311
"moduleResolution": "node",
1412
"esModuleInterop": true,
15-
1613
/* Advanced Options */
1714
"forceConsistentCasingInFileNames": true,
1815
"skipLibCheck": true,
1916
"skipDefaultLibCheck": true,
2017
"outDir": "./dist",
2118
"allowJs": true,
2219
"checkJs": false,
23-
"noEmit": true,
24-
"paths": {
25-
"git-embed": ["../packages/git-embed/src"]
26-
}
20+
"noEmit": true
21+
// "paths": {
22+
// "git-embed": ["../packages/git-embed/src"]
23+
// }
2724
},
2825
"exclude": ["**/dist/**", "**/node_modules/**"]
2926
}

0 commit comments

Comments
 (0)