Skip to content

Commit 6ee06b2

Browse files
authored
Merge pull request #19 from cortex-command-community/development
Switch to `pnpm` as a package manager
2 parents 5a651db + e0bb4d5 commit 6ee06b2

File tree

10 files changed

+16051
-24033
lines changed

10 files changed

+16051
-24033
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,22 @@ jobs:
1818
with:
1919
persist-credentials: false
2020

21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
23+
with:
24+
version: 10
2125
- uses: actions/setup-node@v3
2226
with:
2327
node-version: 24
24-
cache: 'npm'
25-
26-
- name: 'Install dependencies'
27-
run: npm ci
28+
cache: 'pnpm'
29+
- name: 'Install dependencies (pnpm)'
30+
run: pnpm install --frozen-lockfile
2831

2932
- name: 'Build syntaxes, client and server. '
30-
run: npx nx run-many --target=build
33+
run: pnpm nx run-many --target=build
3134

3235
- name: 'Semantic Release'
33-
run: GH_TOKEN=${{ secrets.GH_PAT }} npx semantic-release
36+
run: GH_TOKEN=${{ secrets.GH_PAT }} pnpm semantic-release
3437
env:
3538
GH_TOKEN: ${{ secrets.GH_PAT }}
3639
VSCE_PAT: ${{ secrets.AZUREDEVOPS_PAT }}

.husky/commit-msg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx --no -- commitlint --edit ${1}
4+
pnpm --no -- commitlint --edit ${1}

.releaserc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
[
2020
"@semantic-release/exec",
2121
{
22-
"prepareCmd": "npx vsce package --no-git-tag-version ${nextRelease.version}",
23-
"publishCmd": "npx vsce publish --no-git-tag-version ${nextRelease.version}"
22+
"prepareCmd": "pnpm vsce package --no-git-tag-version ${nextRelease.version}",
23+
"publishCmd": "pnpm vsce publish --no-git-tag-version ${nextRelease.version}"
2424
}
2525
],
2626
[

.vscode/launch.json

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
22
{
33
"version": "0.2.0",
4+
"compounds": [
5+
{
6+
"name": "Launch Client and Attach to Server",
7+
"configurations": ["Launch Client", "Attach to Language Server"],
8+
"stopAll": true,
9+
"presentation": {
10+
"group": "launch",
11+
"order": 1
12+
}
13+
}
14+
],
415
"configurations": [
516
{
617
"type": "extensionHost",
@@ -13,15 +24,21 @@
1324
],
1425
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
1526
"autoAttachChildProcesses": true,
16-
"preLaunchTask": "build-affected"
27+
"preLaunchTask": "build-affected",
28+
"presentation": {
29+
"group": "launch"
30+
}
1731
},
1832
{
1933
"name": "Attach to Language Server",
2034
"type": "node",
2135
"request": "attach",
2236
"outFiles": ["${workspaceRoot}/dist/**/*.js"],
2337
"sourceMaps": true,
24-
"restart": true
38+
"restart": true,
39+
"presentation": {
40+
"group": "launch"
41+
}
2542
},
2643
{
2744
"name": "Language Server E2E Test",
@@ -33,13 +50,10 @@
3350
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
3451
"${workspaceRoot}/client/testFixture"
3552
],
36-
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"]
37-
}
38-
],
39-
"compounds": [
40-
{
41-
"name": "Launch Client and Attach to Server",
42-
"configurations": ["Launch Client", "Attach to Language Server"]
53+
"outFiles": ["${workspaceRoot}/client/out/test/**/*.js"],
54+
"presentation": {
55+
"group": "test"
56+
}
4357
}
4458
]
4559
}

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "shell",
66
"label": "build-affected",
77
"detail": "Build all affected projects in the workspace",
8-
"command": "npx nx run-many --verbose --target=build",
8+
"command": "pnpm nx run-many --verbose --target=build",
99
"group": {
1010
"kind": "build",
1111
"isDefault": true

0 commit comments

Comments
 (0)