diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f3160c6c..d1f10a40 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -52,7 +52,7 @@ Download one from the [releases/](releases/) folder. or -Build a .vsix locally via `npm run package` +Build a .vsix locally via `npm run package:latest` Then install in vscode: ![Install Deephaven in VS Code](docs/install.png) @@ -86,16 +86,16 @@ https://code.visualstudio.com/api/working-with-extensions/publishing-extension#p 1. Increment the version number in `package.json` (be sure to run `npm i` to update package-lock as well) > See [versioning strategy](#versioning-strategy) for details on our version number scheme. 1. If new content has been added that needs to be packaged that is not included by `.vscodeignore`, make appropriate changes (this should not be common). -1. Package latest `npm run vsix:latest` (inspect output to verify included files are as expected) +1. Package latest `npm run package:latest` (inspect output to verify included files are as expected) 1. Use `vsce` cli to publish to Visual Studio Marketplace ```sh # Pre-release - npm run publish:pre + npm run publish:prerelease ``` 1. Create a version tag with `-pre` suffix. ```sh - npm run vscode:tag + npm run publish:tag git push --tags ``` diff --git a/package.json b/package.json index 85c04d20..2f91d06f 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,9 @@ "clean": "rm -rf out packages/*/tsconfig.tsbuildinfo", "compile": "npm run check:types && node scripts/esbuild.js", "icon:gen": "node icons/generate.mjs", - "package": "npm run check:types && npm run test:lint && node scripts/esbuild.js --production", - "publish:pre": "vsce publish --pre-release", + "package:latest": "vsce package -o releases/vscode-deephaven-latest.vsix", + "publish:prerelease": "vsce publish --pre-release", + "publish:tag": "git tag v$(node -p -e \"require('./package.json').version\")-pre", "report:ctrfmerge": "ctrf merge e2e/reports --keep-reports --output-dir test-reports --output ctrf-report.json", "report:ctrfsummary": "github-actions-ctrf test-reports/ctrf-report.json", "report:junit2ctrf": "junit-to-ctrf test-reports/vitest.junit.xml --output test-reports/ctrf-report.json", @@ -44,9 +45,7 @@ "test:lint": "eslint . --ext ts", "test:unit": "vitest --reporter=default --reporter=junit --outputFile=./test-reports/vitest.junit.xml", "test": "npm run test:unit", - "vscode:prepublish": "npm run package", - "vscode:tag": "git tag v$(node -p -e \"require('./package.json').version\")-pre", - "vsix:latest": "vsce package -o releases/vscode-deephaven-latest.vsix", + "vscode:prepublish": "npm run check:types && npm run test:lint && node scripts/esbuild.js --production", "watch:esbuild": "node scripts/esbuild.js --watch", "watch:tsc": "npm run clean && tsc --build ./tsconfig.json --watch", "watch": "npm-run-all -p watch:*"