Skip to content

Commit

Permalink
fix: vscode extension name cannot be scoped
Browse files Browse the repository at this point in the history
microsoft/vscode-vsce#186

also: fixed package script to fail on error
  • Loading branch information
Roy Razon committed Mar 15, 2020
1 parent 2dcdebd commit 826e645
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@salto-io/vscode",
"name": "salto-vscode",
"displayName": "Salto",
"description": "Configure Salto patches in vscode.",
"version": "0.1.11",
Expand Down
14 changes: 8 additions & 6 deletions packages/vscode/scripts/package.sh
Original file line number Diff line number Diff line change
@@ -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
mkdir -p ./pkg
cp ./tmp_pkg/salto.vsix ./pkg/salto.vsix
rm -rf ./tmp_pkg

0 comments on commit 826e645

Please sign in to comment.