diff --git a/.jupyter-releaser.toml b/.jupyter-releaser.toml index 37ad609f8..406ad31e9 100644 --- a/.jupyter-releaser.toml +++ b/.jupyter-releaser.toml @@ -9,7 +9,7 @@ before-build-python = [ ] [options] -version-cmd = "npx -p lerna -y lerna version --no-git-tag-version --no-push -y" +version-cmd = "../../scripts/bump-version.sh" python_packages = [ "packages/jupyter-ai:jupyter-ai", "packages/jupyter-ai-dalle:jupyter-ai-dalle" diff --git a/packages/jupyter-ai-dalle/src/index.ts b/packages/jupyter-ai-dalle/src/index.ts index 61daa78eb..b7fe6a63b 100644 --- a/packages/jupyter-ai-dalle/src/index.ts +++ b/packages/jupyter-ai-dalle/src/index.ts @@ -15,7 +15,7 @@ const plugin: JupyterFrontEndPlugin = { console.log('JupyterLab extension jupyter_ai_dalle is activated!'); // handle below-in-image insertion mode for notebooks - app.commands.addCommand('gai:insert-below-in-image', { + app.commands.addCommand('ai:insert-below-in-image', { // context has type InsertionContext, but cannot be typed as the frontend // package is not yet published to NPM execute: (context: any) => { diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh new file mode 100755 index 000000000..5d48d81ef --- /dev/null +++ b/scripts/bump-version.sh @@ -0,0 +1,16 @@ +# script that bumps version for all projects regardless of whether they were +# changed since last release. needed because `lerna version` only bumps versions for projects +# listed by `lerna changed` by default. +# +# see: https://github.com/lerna/lerna/issues/2369 + +for package in ../*; do + touch $package/TEMP + git add $package/TEMP +done + +(npx -p lerna -y lerna version --no-git-tag-version --no-push -y $1) || exit 1 + +for package in ../*; do + git rm -f $package/TEMP +done