dsh-figmark 1.0.0 → 1.0.1
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/PUBLISHING.md +17 -2
- package/market/index.json +4 -5
- package/package.json +1 -2
package/PUBLISHING.md
CHANGED
|
@@ -17,9 +17,10 @@ node -e "console.log(Math.floor(Date.now()/1000))"
|
|
|
17
17
|
# 2) 先干跑一次,确认包内容
|
|
18
18
|
npm pack --dry-run
|
|
19
19
|
|
|
20
|
-
# 3) 发布到 npm
|
|
20
|
+
# 3) 发布到 npm(两个坑见文末)
|
|
21
21
|
npm login # 只需一次
|
|
22
|
-
|
|
22
|
+
env -u http_proxy -u https_proxy -u all_proxy -u NODE_USE_ENV_PROXY \
|
|
23
|
+
NO_PROXY='*' no_proxy='*' npm publish --access public
|
|
23
24
|
|
|
24
25
|
# npm 还没发布时:索引里 versions[0].source 用 git 类型(见下),
|
|
25
26
|
# 钉到当前 commit 即可让别人装上源码版本。npm 发布之后把 source 换回
|
|
@@ -77,3 +78,17 @@ const {parseMarketIndex}=require('/Applications/DeepSeek Harness.app/Contents/Re
|
|
|
77
78
|
1. **侧栏 → 插件 → 实验性插件 → 更多 → 自定义插件市场**(启用)
|
|
78
79
|
2. 发现页 → 添加索引 → 粘贴 raw 地址
|
|
79
80
|
3. 搜 `figmark` → 安装 → **Cmd+Q 完全退出重开**
|
|
81
|
+
|
|
82
|
+
## 两个真实的坑
|
|
83
|
+
|
|
84
|
+
**代理会吞掉 tarball 上传。** 本机 `http_proxy` 指向本地代理时,`npm publish` 会连续报
|
|
85
|
+
`PUT ... failed with 503` 并静默重试,看起来像 npm 挂了,其实是几 MB 的包体没传上去。
|
|
86
|
+
发布这一步必须 `env -u http_proxy -u https_proxy -u all_proxy -u NODE_USE_ENV_PROXY`
|
|
87
|
+
清掉代理变量,`~/.npmrc` 里的 `noproxy=` 对 npm 自己的 dispatcher 不生效。
|
|
88
|
+
|
|
89
|
+
**Granular Token 默认不让发布。** 账号开了 2FA 时,未勾选 "Bypass 2FA" 的 Granular Token
|
|
90
|
+
会得到 `403 Two-factor authentication or granular access token with bypass 2fa enabled is required`。
|
|
91
|
+
两个选择:在 token 页勾上 Bypass 2FA,或生成 Classic Token 时选 **Automation** 类型(自带绕过)。
|
|
92
|
+
|
|
93
|
+
**发布中途失败会留下 `0.0.0-stage` 占位版本。** 直接重跑 `npm publish` 即可,占位会被替换;
|
|
94
|
+
不用手动清。
|
package/market/index.json
CHANGED
|
@@ -93,12 +93,11 @@
|
|
|
93
93
|
},
|
|
94
94
|
"versions": [
|
|
95
95
|
{
|
|
96
|
-
"version": "1.0.
|
|
97
|
-
"publishTimestamp":
|
|
96
|
+
"version": "1.0.1",
|
|
97
|
+
"publishTimestamp": 1792640347,
|
|
98
98
|
"source": {
|
|
99
|
-
"type": "
|
|
100
|
-
"
|
|
101
|
-
"commit": "75b0d80331e1bcd12cf431644dd50c3d8fa1083f"
|
|
99
|
+
"type": "npm",
|
|
100
|
+
"registry": "https://registry.npmjs.org"
|
|
102
101
|
},
|
|
103
102
|
"engines": {
|
|
104
103
|
"dsh": ">=0.2.1-rc.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-figmark",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "DSH 插件:在右侧栏预览里对科研配图、SVG、PDF、HTML 直接圈画批注,标注写进侧车文件并可一键交给智能体改图源",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,7 +79,6 @@
|
|
|
79
79
|
},
|
|
80
80
|
"packageManager": "pnpm@11.7.0",
|
|
81
81
|
"scripts": {
|
|
82
|
-
"prepare": "pnpm run build",
|
|
83
82
|
"build": "node -e \"require('node:fs').rmSync('lib',{recursive:true,force:true})\" && tsc --noEmit -p tsconfig.json && tsdown",
|
|
84
83
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
85
84
|
"lint": "oxlint . --type-aware --deny-warnings --ignore-pattern 'tests/gates/fixtures/**'",
|