@jiangdyjp2/common 1.0.6 → 1.0.9
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 +10 -8
- package/readme.txt +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jiangdyjp2/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -8,26 +8,28 @@
|
|
|
8
8
|
"build/**/*"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"clean": "
|
|
12
|
-
"build": "
|
|
13
|
-
"
|
|
11
|
+
"clean": "rimraf build",
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"prepublishOnly": "npm run clean && npm run build",
|
|
14
|
+
"pub": "git add . && git commit -m \"release\" && npm version patch && npm publish"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [],
|
|
16
17
|
"author": "",
|
|
17
18
|
"license": "ISC",
|
|
18
19
|
"type": "module",
|
|
19
20
|
"devDependencies": {
|
|
21
|
+
"@types/jsonwebtoken": "^9.0.10",
|
|
20
22
|
"del-cli": "^7.0.0",
|
|
23
|
+
"rimraf": "^6.1.2",
|
|
21
24
|
"typescript": "^5.9.3"
|
|
22
25
|
},
|
|
23
26
|
"peerDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"@types/express": "^5.0.0",
|
|
27
|
+
"@types/cookie-session": "^2.0.0",
|
|
28
|
+
"@types/express": "^4.17.21 || ^5.0.0",
|
|
26
29
|
"cookie-session": "^2.1.0",
|
|
27
|
-
"
|
|
30
|
+
"express": "^4.19.2 || ^5.2.0"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
|
-
"@types/jsonwebtoken": "^9.0.10",
|
|
31
33
|
"express-validator": "^7.3.1",
|
|
32
34
|
"jsonwebtoken": "^9.0.3"
|
|
33
35
|
}
|
package/readme.txt
CHANGED
|
@@ -101,4 +101,14 @@ npm install -D vitest
|
|
|
101
101
|
(12) rm -rf node_modules package-lock.json
|
|
102
102
|
npm install
|
|
103
103
|
|
|
104
|
+
(13)
|
|
105
|
+
✅ Final checklist for @jiangdyjp2/common
|
|
106
|
+
|
|
107
|
+
✔ No @types/* in dependencies
|
|
108
|
+
✔ Express + cookie-session in peerDependencies
|
|
109
|
+
✔ Only runtime JS libs in dependencies
|
|
110
|
+
✔ Express augmentation in .d.ts
|
|
111
|
+
✔ No runtime import of type files
|
|
112
|
+
|
|
113
|
+
(14) Libraries ( say @jiangdyjp2/common ) should never ship @types/* in dependencies
|
|
104
114
|
|