@gaias/client_node 1.0.3 → 1.0.5
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/.npmrc.example +2 -2
- package/PUBLISHING.md +4 -4
- package/package.json +3 -7
package/.npmrc.example
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
# Default registry for all packages
|
|
5
5
|
registry=https://registry.npmjs.org/
|
|
6
6
|
|
|
7
|
-
# GitHub Packages registry for @
|
|
8
|
-
@
|
|
7
|
+
# GitHub Packages registry for @TonyYang1985 scope
|
|
8
|
+
@TonyYang1985:registry=https://npm.pkg.github.com
|
|
9
9
|
@gaias:registry=https://registry.npmjs.org/
|
|
10
10
|
|
|
11
11
|
# Authentication token for GitHub Packages
|
package/PUBLISHING.md
CHANGED
|
@@ -58,7 +58,7 @@ GitHub Packages 使用仓库的 `GITHUB_TOKEN`,这个 token 会自动提供给
|
|
|
58
58
|
4. 运行测试(可选)
|
|
59
59
|
5. 构建包(`yarn ncc:build` 和 `yarn prepub`)
|
|
60
60
|
6. 发布到 npmjs.org(使用 `@gaias/client_node` 包名)
|
|
61
|
-
7. 发布到 GitHub Packages(使用 `@
|
|
61
|
+
7. 发布到 GitHub Packages(使用 `@TonyYang1985/client_node` 包名)
|
|
62
62
|
|
|
63
63
|
## 包版本管理
|
|
64
64
|
|
|
@@ -95,15 +95,15 @@ yarn add @gaias/client_node
|
|
|
95
95
|
|
|
96
96
|
1. 创建或编辑 `.npmrc` 文件(参考 `.npmrc.example`):
|
|
97
97
|
```
|
|
98
|
-
@
|
|
98
|
+
@TonyYang1985:registry=https://npm.pkg.github.com
|
|
99
99
|
//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
2. 安装包:
|
|
103
103
|
```bash
|
|
104
|
-
npm install @
|
|
104
|
+
npm install @TonyYang1985/client_node
|
|
105
105
|
# 或
|
|
106
|
-
yarn add @
|
|
106
|
+
yarn add @TonyYang1985/client_node
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
## 本地测试发布
|
package/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gaias/client_node",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "store data in cookie and localstorage",
|
|
5
5
|
"main": "dist/single/index.js",
|
|
6
6
|
"types": "dist/single/index.d.ts",
|
|
7
7
|
"license": "UNLICENSED",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "git",
|
|
10
|
-
"url": "https://github.com/TonyYang1985/client_node.git"
|
|
11
|
-
},
|
|
12
8
|
"publishConfig": {
|
|
13
9
|
"access": "public",
|
|
14
10
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -56,7 +52,7 @@
|
|
|
56
52
|
"@types/lodash": "^4.17.20",
|
|
57
53
|
"@types/mocha": "^10.0.10",
|
|
58
54
|
"@types/mustache": "^4.2.6",
|
|
59
|
-
"@types/node": "^24.9.
|
|
55
|
+
"@types/node": "^24.9.1",
|
|
60
56
|
"@types/whatwg-url": "^13.0.0",
|
|
61
57
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
62
58
|
"@typescript-eslint/parser": "^8.46.2",
|
|
@@ -87,7 +83,7 @@
|
|
|
87
83
|
"cls-hooked": "^4.2.2",
|
|
88
84
|
"dot-object": "^2.1.5",
|
|
89
85
|
"eventemitter3": "^5.0.1",
|
|
90
|
-
"ioredis": "^5.8.
|
|
86
|
+
"ioredis": "^5.8.2",
|
|
91
87
|
"js-cookie": "^3.0.5",
|
|
92
88
|
"js-yaml": "^4.1.0",
|
|
93
89
|
"jsonata": "^2.1.0",
|