@linkdesk/contracts 0.1.15 → 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.
- package/README.md +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,24 @@ window.linkdesk.configuration.get("editor.fontSize"); // IntelliSense + type che
|
|
|
30
30
|
- **Recommended**: `npm i -D @linkdesk/contracts` (the real publication chain; types follow the version)
|
|
31
31
|
- **Alternative**: copy `contracts/linkdesk.d.ts` from the LinkDesk repository (a fallback when there is no npm environment)
|
|
32
32
|
|
|
33
|
+
## Maintaining this package (LinkDesk maintainers)
|
|
34
|
+
|
|
35
|
+
This package is **one of the five author axes** (the others: `@linkdesk/plugin-sdk` / `create-linkdesk-plugin` / `@linkdesk/ui` / `@linkdesk/plugin-docs`) and has its own version axis — **publishing it does not bump the application, and the application does not bump it**.
|
|
36
|
+
|
|
37
|
+
Its surface is `linkdesk.d.ts` (regenerated by `npm run contracts:check` / the generator) + this README. A new version is warranted when the `window.linkdesk.*` API surface changes and authors need the new types.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
# 1. bump contracts/package.json version (0.x backward-compatible → patch)
|
|
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
|
|
45
|
+
# 3. record the baseline (run in the LinkDesk repo root)
|
|
46
|
+
npm run release:mark
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
> Full procedure + the three measured pitfalls → **`docs/06-发布管理/作者轴npm发版.md`** in the LinkDesk repository.
|
|
50
|
+
|
|
33
51
|
## License
|
|
34
52
|
|
|
35
53
|
MIT
|