Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions frontend/packages/console-dynamic-plugin-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@ Build all distributable [SDK packages](#sdk-packages) into `dist` directory:
yarn build
```

Set the version in all dist packages (the source `package.json` uses a placeholder version):

```sh
yarn set-dist-version <version>
```

Finally, publish relevant packages to [npm registry](https://www.npmjs.com/):

```sh
yarn publish dist/<pkg> --no-git-tag-version --new-version <version>
npm publish ./dist/<pkg>
```

If the given package doesn't exist in npm registry, add `--access public` to `yarn publish` command.
If the given package doesn't exist in npm registry, add `--access public` to `npm publish`.

If the newly published version comes before the latest published version in terms of semver rules
(e.g. hotfix release 1.0.2 for an older minor version stream 1.0.x), ensure the `latest` dist-tag
Expand Down
1 change: 1 addition & 0 deletions frontend/packages/console-dynamic-plugin-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"generate-schema": "yarn ts-node scripts/generate-schema.ts",
"generate-doc": "yarn ts-node scripts/generate-doc.ts",
"generate-pkg-assets": "yarn ts-node scripts/generate-pkg-assets.ts",
"set-dist-version": "sh -c 'for pkg in core internal webpack; do npm version --no-git-tag-version --prefix dist/$pkg $0; done'",
"validate": "yarn ts-node scripts/validate-extensions.ts",
"ts-node": "../../node_modules/.bin/ts-node -O '{\"module\":\"commonjs\"}'"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { resolvePath } from './utils/path';
type GeneratedPackage = {
/** Package output directory. */
outDir: string;
/** Package manifest. Note: `version` is updated via the publish script. */
/** Package manifest. Note: `version` must be set before publishing. */
manifest: PackageJson;
/** Additional files or directories to copy to the package output directory. */
filesToCopy: Record<string, string>;
Expand Down