Release the plugin SDK as a package file
pnpm release:sdk now packs runestone-plugin-sdk-<version>.tgz and sdk.json into releases/plugin-sdk/<version>/. Plugins install the SDK from the URL of that file on the RuneStone releases page. The script no longer uses a clone of a separate SDK repository. Installers, browser engine ZIPs, and SDK packages now share the RuneStone releases page.
This commit is contained in:
@@ -14,10 +14,10 @@ The SDK does not run plugins and does not call RuneStone. RuneStone gives the `a
|
||||
|
||||
## Install
|
||||
|
||||
Install the SDK from a release tag of its Git repository. The SDK is not on the npm registry.
|
||||
Install the SDK from the URL of its package file on the RuneStone releases page.
|
||||
|
||||
```sh
|
||||
pnpm add -D "git+https://git.knottywyvern.com/kwyvern/RuneStone_Plugin_SDK.git#v0.1.1"
|
||||
pnpm add -D "https://git.knottywyvern.com/kwyvern/RuneStone/releases/download/plugin-sdk-v0.1.2/runestone-plugin-sdk-0.1.2.tgz"
|
||||
```
|
||||
|
||||
The result in `package.json`:
|
||||
@@ -25,13 +25,14 @@ The result in `package.json`:
|
||||
```json
|
||||
{
|
||||
"devDependencies": {
|
||||
"@runestone/plugin-sdk": "git+https://git.knottywyvern.com/kwyvern/RuneStone_Plugin_SDK.git#v0.1.1"
|
||||
"@runestone/plugin-sdk": "https://git.knottywyvern.com/kwyvern/RuneStone/releases/download/plugin-sdk-v0.1.2/runestone-plugin-sdk-0.1.2.tgz"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The repository is public, so you need no access token and no `.npmrc` file. npm and Yarn accept the same URL.
|
||||
Always give a tag. Without a tag, the package manager uses the latest commit, and your build can change without notice.
|
||||
Always give the full URL. The SDK is not on the npm registry, and another account owns the `@runestone` scope there.
|
||||
The download needs no access token and no `.npmrc` file. npm accepts the same URL.
|
||||
Your lock file records the integrity value of the package, so the installation stops if the file changes.
|
||||
The package contains compiled JavaScript and declaration files, so the installation runs no build step.
|
||||
|
||||
Use TypeScript 5.0 or later, with `moduleResolution` set to `bundler`, `node16`, or `nodenext`. Include the `DOM` library.
|
||||
@@ -119,7 +120,7 @@ For menus, call `api.ui.showActionMenu`. RuneStone draws the menu, so the SDK co
|
||||
|
||||
## Versions
|
||||
|
||||
The SDK has its own version number in the form `zz.yy.xx`, for example `0.1.0`. Each release has the tag `v<version>`.
|
||||
The SDK has its own version number in the form `zz.yy.xx`, for example `0.1.0`. Each release has the tag `plugin-sdk-v<version>` on the RuneStone releases page.
|
||||
A hotfix adds a lowercase letter to the version, for example `0.1.0a`.
|
||||
|
||||
`API_VERSION` is the `apiVersion` value of `plugin.json`. The SDK version and the RuneStone version are different numbers.
|
||||
@@ -133,7 +134,6 @@ A new SDK release can add types for new RuneStone features. Use the feature chec
|
||||
- [Release policy](https://git.knottywyvern.com/kwyvern/RuneStone/src/branch/master/docs/releases.md#sdk-releases)
|
||||
|
||||
The SDK source is in the `packages/plugin-sdk` folder of the [RuneStone repository](https://git.knottywyvern.com/kwyvern/RuneStone). Report problems there.
|
||||
This repository holds only the released files.
|
||||
|
||||
Knotty Wyvern maintains RuneStone and the SDK.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user