@linkdesk/contracts 0.1.16 → 0.1.17

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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -38,9 +38,10 @@ Its surface is `linkdesk.d.ts` (regenerated by `npm run contracts:check` / the g
38
38
 
39
39
  ```bash
40
40
  # 1. bump contracts/package.json version (0.x backward-compatible → patch)
41
- # 2. publish — 🔴 NOTE THE SHAPE: contracts/ is NOT in the root "workspaces" array
42
- npm publish contracts --registry=https://registry.npmjs.org # run in the repo root, with the folder path
43
- # (--workspace=<name> only works for packages/*; --prefix fails with EPRIVATE because npm reads the private root package.json)
41
+ # 2. publish — 🔴 FROM INSIDE THIS FOLDER. Do NOT write `npm publish contracts` from the repo root:
42
+ # a bare name is treated as a *package spec*, so npm resolves the registry's unrelated `contracts`
43
+ # package instead of this directory. And `--workspace=<name>` only works for packages/*.
44
+ cd contracts && npm publish --registry=https://registry.npmjs.org
44
45
  # 3. record the baseline (run in the LinkDesk repo root)
45
46
  npm run release:mark
46
47
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkdesk/contracts",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "LinkDesk 插件契约类型——window.linkdesk.* 全量类型定义(E5.8 契约生成产物)。第三方插件作者唯一合法类型消费路径。",
5
5
  "type": "module",
6
6
  "types": "./linkdesk.d.ts",