Skip to content

Commit

Permalink
fix: vscode extension name cannot be scoped (#823)
Browse files Browse the repository at this point in the history
* fix: vscode extension name cannot be scoped

microsoft/vscode-vsce#186

also: fixed package script to fail on error
  • Loading branch information
Roy Razon authored Mar 15, 2020
1 parent 2dcdebd commit 17d9764
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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 17d9764

Please sign in to comment.