@linkdesk/contracts 0.1.15 → 0.1.16
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 +17 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,23 @@ 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 — 🔴 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)
|
|
44
|
+
# 3. record the baseline (run in the LinkDesk repo root)
|
|
45
|
+
npm run release:mark
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
> Full procedure + the three measured pitfalls → **`docs/06-发布管理/作者轴npm发版.md`** in the LinkDesk repository.
|
|
49
|
+
|
|
33
50
|
## License
|
|
34
51
|
|
|
35
52
|
MIT
|