diff --git a/.circleci/config.yml b/.circleci/config.yml index 622e503478d..8626785011f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -242,7 +242,7 @@ jobs: - run: name: Create a VSIX file - command: yarn workspace @salto-io/vscode package + command: yarn workspace salto-vscode package - upload_pkg: workspace_dir: vscode diff --git a/packages/vscode/package.json b/packages/vscode/package.json index bb6e851cb9c..8741b4f4645 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -1,5 +1,5 @@ { - "name": "@salto-io/vscode", + "name": "salto-vscode", "displayName": "Salto", "description": "Configure Salto patches in vscode.", "version": "0.1.11", diff --git a/packages/vscode/scripts/package.sh b/packages/vscode/scripts/package.sh index 7f9f317c70c..c9dd2be976e 100644 --- a/packages/vscode/scripts/package.sh +++ b/packages/vscode/scripts/package.sh @@ -1,9 +1,11 @@ #!/bin/bash +set -xeuo pipefail + mkdir -p ./tmp_pkg && vsce package --yarn -o ./tmp_pkg/salto.vsix -cd ./tmp_pkg && unzip salto.vsix -cp -r ../node_modules/* extension/node_modules/ -zip -ur salto.vsix extension +cd ./tmp_pkg && unzip salto.vsix +cp -r ../node_modules/* extension/node_modules/ +zip -ur salto.vsix extension cd .. -mkdir -p ./pkg -cp ./tmp_pkg/salto.vsix ./pkg/salto.vsix -rm -rf ./tmp_pkg \ No newline at end of file +mkdir -p ./pkg +cp ./tmp_pkg/salto.vsix ./pkg/salto.vsix +rm -rf ./tmp_pkg