Skip to content

Commit

Permalink
refactor: use pnpm to install dependencies and package VSIX
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 9, 2024
1 parent 6d47103 commit c3e44ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- name: Install dependencies
run: pnpm install --no-frozen-lockfile


# Set environment variables
- name: Export Properties
id: properties
Expand All @@ -48,7 +47,7 @@ jobs:
run: npm install -g @vscode/vsce

- name: Package VSIX
run: vsce package
run: pnpm run copy-wasm && vsce package

# Prepare plugin archive content for creating artifact
- name: Prepare Plugin Artifact
Expand Down
13 changes: 3 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,7 @@
"Snippets"
],
"activationEvents": [
"onLanguage:c",
"onLanguage:cpp",
"onLanguage:csharp",
"onLanguage:go",
"onLanguage:java",
"onLanguage:javascript",
"onLanguage:typescript",
"onLanguage:python",
"onLanguage:rust"

],
"main": "./dist/extension.js",
"contributes": {
Expand Down Expand Up @@ -110,7 +102,8 @@
},
"scripts": {
"preinstall": "npx only-allow pnpm",
"postinstall": "mkdir -p dist/semantic && cp -a node_modules/@unit-mesh/treesitter-artifacts/wasm/ dist/tree-sitter-wasms && cp -a src/semantic-treesitter/**/*.scm dist/semantic",
"postinstall": "mkdir -p dist/semantic && pnpm run copy-wasm",
"copy-wasm": "cp -a node_modules/@unit-mesh/treesitter-artifacts/wasm/ dist/tree-sitter-wasms && cp -a src/semantic-treesitter/**/*.scm dist/semantic",
"vscode:prepublish": "pnpm run package",
"compile": "webpack",
"watch": "webpack --watch",
Expand Down

0 comments on commit c3e44ec

Please sign in to comment.