Skip to content

Commit

Permalink
switch back again to pnpm
Browse files Browse the repository at this point in the history
only use npm for vsix packaging
  • Loading branch information
tao-cumplido committed Nov 10, 2024
1 parent da1846a commit 577d549
Show file tree
Hide file tree
Showing 9 changed files with 4,126 additions and 6,884 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ insert_final_newline = true
max_line_length = off
trim_trailing_whitespace = false

[*.yml]
[*.{yml,yaml}]
indent_style = space
indent_size = 2

Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm ci
- run: npm run build
cache: pnpm
- run: pnpm install
- run: pnpm run build
- run: node ./build-vsix.mjs
- uses: actions/upload-artifact@v4
with:
Expand All @@ -27,6 +31,6 @@ jobs:
if: success() && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4
- run: npx vsce publish --packagePath $(find . -iname *.vsix)
- run: pnpm vsce publish --packagePath $(find . -iname *.vsix)
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
2 changes: 2 additions & 0 deletions modules/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"watch": "vite build --watch --sourcemap --minify false --mode development"
},
"devDependencies": {
"@inspector-hex/api": "workspace:*",
"@hex/types": "workspace:*",
"@types/vscode-webview": "1.57.5"
}
}
12 changes: 7 additions & 5 deletions modules/extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@
"private": true,
"scripts": {
"esbuild:base": "esbuild ./src/extension.ts --bundle --format=cjs --external:vscode",
"esbuild:node": "npm run esbuild:base -- --external:esbuild --platform=node --outfile=../../dist/extension.js",
"esbuild:browser": "npm run esbuild:base -- --platform=browser --outfile=../../dist/extension.web.js",
"build": "tsc -noEmit && npm run esbuild:node -- --minify && npm run esbuild:browser -- --minify",
"watch:node": "npm run esbuild:node -- --sourcemap --watch",
"watch:browser": "npm run esbuild:browser -- --sourcemap --watch"
"esbuild:node": "pnpm run esbuild:base --external:esbuild --platform=node --outfile=../../dist/extension.js",
"esbuild:browser": "pnpm run esbuild:base --platform=browser --outfile=../../dist/extension.web.js",
"build": "tsc -noEmit && pnpm run \"/esbuild:(node|browser)/\" --minify",
"watch:node": "pnpm run esbuild:node --sourcemap --watch",
"watch:browser": "pnpm run esbuild:browser --sourcemap --watch"
},
"browser": {
"src/custom-decoders/index.ts": "./src/custom-decoders/browser.ts",
"src/binary-document/index.ts": "./src/binary-document/browser.ts"
},
"dependencies": {
"@inspector-hex/api": "workspace:*",
"clear-module": "4.1.2",
"@nishin/reader": "0.6.0",
"minimatch": "10.0.1"
},
"devDependencies": {
"@hex/types": "workspace:*",
"esbuild": "0.24.0"
}
}
5 changes: 4 additions & 1 deletion modules/types/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "@hex/types",
"private": true,
"types": "index.d.ts"
"types": "index.d.ts",
"dependencies": {
"@inspector-hex/api": "workspace:*"
}
}
Loading

0 comments on commit 577d549

Please sign in to comment.