Skip to content

Commit

Permalink
Create package/deploy scripts, avoid lack of yarn support in vsce
Browse files Browse the repository at this point in the history
yarn v2+ not supported by vsce
microsoft/vscode-vsce#517

draw inspiration from abcradabra (linked in above issue)
nicoespeon/abracadabra@10e0c3d
  • Loading branch information
rosskevin committed Sep 6, 2024
1 parent e551084 commit 98c3784
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
**/*.map
.vscode/**
.yarn
.yarnrc.yml
documentation/**
!documentation/examples/*
!documentation/images/*
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vscode-mjml",
"displayName": "MJML",
"description": "MJML preview, lint, compile for Visual Studio Code.",
"version": "1.0.6",
"version": "2.0.0-alpha",
"publisher": "mjmlio",
"license": "MIT",
"readme": "README.md",
Expand Down Expand Up @@ -306,9 +306,16 @@
}
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"test": "node ./out/test/runTest.js"
"build": "tsc -p ./",
"build:watch": "tsc -watch -p ./",
"prepackage": "rm -rf dist/ out/",
"vscode:prepublish": "yarn build",
"package": "vsce package --no-dependencies && yarn postpackage",
"postpackage": "mkdir -p dist && mv *.vsix dist",
"package:install": "code --install-extension dist/*.vsix",
"deploy": "yarn deploy:vscode && yarn deploy:ovsx",
"deploy:vscode": "vsce publish --no-dependencies",
"deploy:ovsx": "ovsx publish --no-dependencies"
},
"devDependencies": {
"@types/copy-paste": "^1.1.33",
Expand Down

0 comments on commit 98c3784

Please sign in to comment.