File tree Expand file tree Collapse file tree 5 files changed +702
-1923
lines changed Expand file tree Collapse file tree 5 files changed +702
-1923
lines changed Original file line number Diff line number Diff line change @@ -22,24 +22,29 @@ jobs:
2222 - name : Checkout
2323 uses : actions/checkout@v4
2424
25+ - name : Install pnpm
26+ uses : pnpm/action-setup@v4
27+
2528 - name : Install Node.js
2629 uses : actions/setup-node@v4
2730 with :
2831 node-version : 18.x
32+ registry-url : ' https://registry.npmjs.org'
33+ cache : ' pnpm'
2934
30- - name : Run npm install
31- run : npm install
35+ - name : Run pnpm install
36+ run : pnpm install
3237
3338 - name : Run pretest
34- run : xvfb-run -a npm run pretest
39+ run : xvfb-run -a pnpm run pretest
3540 if : runner.os == 'Linux'
3641
3742 - name : Run pretest
38- run : npm run pretest
43+ run : pnpm run pretest
3944 if : runner.os != 'Linux'
4045
4146 - name : Run vsce package
42- run : mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/
47+ run : mkdir -p out/vsix/ && pnpm package -o out/vsix/
4348
4449 - name : Upload artifact
4550 if : runner.os == 'Linux'
Original file line number Diff line number Diff line change @@ -12,26 +12,31 @@ jobs:
1212 - name : Checkout
1313 uses : actions/checkout@v4
1414
15+ - name : Install pnpm
16+ uses : pnpm/action-setup@v4
17+
1518 - name : Install Node.js
1619 uses : actions/setup-node@v4
1720 with :
1821 node-version : 18.x
22+ registry-url : ' https://registry.npmjs.org'
23+ cache : ' pnpm'
1924
20- - name : Run npm install
21- run : npm install
25+ - name : Run pnpm install
26+ run : pnpm install
2227
2328 - name : Run vsce package
24- run : mkdir -p out/vsix && npm exec vsce package -- -o out/vsix/
29+ run : mkdir -p out/vsix/ && pnpm package -o out/vsix/
2530
2631 - name : Create Github Release
2732 uses : softprops/action-gh-release@v2
2833 with :
2934 files : out/vsix/*.vsix
3035
3136 - name : Publish to VS Code Marketplace
32- run : npm run deploy
37+ run : pnpm run deploy
3338 env :
3439 VSCE_PAT : ${{ secrets.VSCE_PAT }}
3540
3641 - name : Publish to Open VSX
37- run : npm run deploy_ovsx -- --pat ${{ secrets.OVSX_PAT }}
42+ run : pnpm run deploy_ovsx -- --pat ${{ secrets.OVSX_PAT }}
Original file line number Diff line number Diff line change 1+ .github /**
12.vscode /**
23.vscode-test /**
34src /**
@@ -10,4 +11,6 @@ vsc-extension-quickstart.md
1011** /* .map
1112** /* .ts
1213.history
13- static /* .dot
14+ static /* .dot
15+ pnpm-lock.yaml
16+ eslint.config.mjs
Original file line number Diff line number Diff line change 77 "engines" : {
88 "vscode" : " ^1.65.0"
99 },
10+ "packageManager" :
" [email protected] " ,
1011 "categories" : [
1112 " Visualization"
1213 ],
5556 }
5657 },
5758 "scripts" : {
58- "deploy" : " vsce publish" ,
59- "deploy_ovsx" : " ovsx publish" ,
59+ "deploy" : " vsce publish --no-dependencies " ,
60+ "deploy_ovsx" : " ovsx publish --no-dependencies " ,
6061 "vscode:prepublish" : " pnpm run compile" ,
6162 "compile" : " tsc -p ./" ,
6263 "watch" : " tsc -watch -p ./" ,
6364 "pretest" : " pnpm run compile && pnpm run lint" ,
65+ "package" : " vsce package --no-dependencies" ,
6466 "lint" : " eslint src" ,
6567 "format" : " prettier --write ." ,
6668 "test" : " echo \" Test is't yet implemented\" && exit 0" ,
7274 "@types/glob" : " ^8.1.0" ,
7375 "@types/mocha" : " ^10.0.10" ,
7476 "@types/node" : " ~22.9.3" ,
75- "@types/vscode" : " ^1.95 .0" ,
77+ "@types/vscode" : " 1.65 .0" ,
7678 "@vscode/test-electron" : " ^2.4.1" ,
7779 "@vscode/vsce" : " ^3.2.1" ,
7880 "eslint" : " ^9.15.0" ,
You can’t perform that action at this time.
0 commit comments