Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
DetachHead committed Jan 15, 2024
1 parent 445485e commit cd49e46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
- run: npm run install:all

- name: Build VSIX
working-directory: packages/vscode-basedpyright
working-directory: packages/vscode-pyright
run: |
npm run package
mv pyright-*.vsix ${{ env.VSIX_NAME }}
- uses: actions/upload-artifact@v3
with:
name: ${{ env.ARTIFACT_NAME_VSIX }}
path: packages/vscode-basedpyright/${{ env.VSIX_NAME }}
path: packages/vscode-pyright/${{ env.VSIX_NAME }}

create_release:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions packages/vscode-pyright/build/checkPackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ async function main() {
const obj = JSON.parse(packageJson);

const name = obj.name;
if (name !== 'basedpyright') {
console.error(chalk.red(`Extension name must be "basedpyright", but is currently set to "${name}".`));
if (name !== 'pyright') {
console.error(chalk.red(`Extension name must be "pyright", but is currently set to "${name}".`));
console.error(chalk.red('Please package by running "npm run package" to ensure the name is set correctly.'));
console.error();
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-pyright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@
},
"scripts": {
"clean": "shx rm -rf ./dist ./out",
"prepackage": "node ./build/renamePackage.js basedpyright",
"prepackage": "node ./build/renamePackage.js pyright",
"package": "vsce package",
"postpackage": "node ./build/renamePackage.js vscode-pyright",
"vscode:prepublish": "node ./build/checkPackage.js && npm run clean && webpack --mode production --progress",
Expand Down

0 comments on commit cd49e46

Please sign in to comment.