@daysnap/utils 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -3
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daysnap/utils",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "通用的工具库",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"typings": "lib/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"ts-node": "npx ts-node --project ./tsconfig.json ./src/filename.ts",
|
|
10
9
|
"gen": "plop --plopfile ./scripts/gen.js --force",
|
|
11
10
|
"del": "plop --plopfile ./scripts/del.js --force",
|
|
12
11
|
"entry": "plop --plopfile ./scripts/entry.js --force",
|
|
13
12
|
"build": "dsc build",
|
|
14
13
|
"test": "jest",
|
|
15
14
|
"coverage": "jest --coverage",
|
|
16
|
-
"
|
|
15
|
+
"predeploy": "npm run test",
|
|
16
|
+
"deploy": "npm run build && dsc publish",
|
|
17
17
|
"husky": "husky install && echo 'export PATH=\"/usr/local/bin/:$PATH\"' >> ~/.huskyrc",
|
|
18
18
|
"lint": "eslint 'src/**/*.{js,ts}' --fix",
|
|
19
19
|
"prepare": "husky install && echo 'export PATH=\"/usr/local/bin/:$PATH\"' >> ~/.huskyrc"
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@commitlint/cli": "^16.2.1",
|
|
42
42
|
"@commitlint/config-conventional": "^16.2.1",
|
|
43
|
+
"@types/jest": "^29.2.3",
|
|
43
44
|
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
44
45
|
"@typescript-eslint/parser": "^5.40.0",
|
|
45
46
|
"commitizen": "^4.2.4",
|
|
@@ -49,11 +50,13 @@
|
|
|
49
50
|
"eslint-plugin-import": "^2.26.0",
|
|
50
51
|
"eslint-plugin-prettier": "^4.2.1",
|
|
51
52
|
"husky": "^7.0.4",
|
|
53
|
+
"jest": "^27.5.1",
|
|
52
54
|
"lint-staged": "^13.0.3",
|
|
53
55
|
"node-dir": "^0.1.17",
|
|
54
56
|
"plop": "^3.1.1",
|
|
55
57
|
"prettier": "^2.7.1",
|
|
56
58
|
"rimraf": "^3.0.2",
|
|
59
|
+
"ts-jest": "^27.1.4",
|
|
57
60
|
"ts-node": "^10.9.1",
|
|
58
61
|
"typescript": "^4.8.4"
|
|
59
62
|
},
|