Skip to content

Commit 86d153f

Browse files
authored
chore: upgrade pnpm and mocha (#79)
1 parent a441ba5 commit 86d153f

File tree

6 files changed

+1244
-1065
lines changed

6 files changed

+1244
-1065
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,11 @@ jobs:
2424
build_successful: ${{ steps.build.outcome == 'success' }}
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node }}
30-
- name: install pnpm
31-
shell: bash
32-
run: |
33-
PNPM_VER=$(jq -r '.packageManager | if .[0:5] == "pnpm@" then .[5:] else "packageManager in package.json does not start with pnpm@\n" | halt_error(1) end' package.json)
34-
echo installing pnpm version $PNPM_VER
35-
npm i -g pnpm@$PNPM_VER
27+
- uses: pnpm/[email protected]
3628
- uses: actions/setup-node@v3
3729
with:
3830
node-version: ${{ matrix.node }}
3931
cache: 'pnpm'
40-
cache-dependency-path: '**/pnpm-lock.yaml'
4132
- name: install
4233
run: pnpm install --frozen-lockfile --prefer-offline
4334
# reactivate this when there is a build step
@@ -65,20 +56,11 @@ jobs:
6556
node: [ 14, 16 ]
6657
steps:
6758
- uses: actions/checkout@v3
68-
- uses: actions/setup-node@v3
69-
with:
70-
node-version: ${{ matrix.node }}
71-
- name: install pnpm
72-
shell: bash
73-
run: |
74-
PNPM_VER=$(jq -r '.packageManager | if .[0:5] == "pnpm@" then .[5:] else "packageManager in package.json does not start with pnpm@\n" | halt_error(1) end' package.json)
75-
echo installing pnpm version $PNPM_VER
76-
npm i -g pnpm@$PNPM_VER
59+
- uses: pnpm/[email protected]
7760
- uses: actions/setup-node@v3
7861
with:
7962
node-version: ${{ matrix.node }}
8063
cache: 'pnpm'
81-
cache-dependency-path: '**/pnpm-lock.yaml'
8264
- name: install
8365
run: pnpm install --frozen-lockfile --prefer-offline
8466
- name: run tests

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=false

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"type": "git",
1212
"url": "https://github.com/sveltejs/svelte-hmr"
1313
},
14-
"packageManager": "pnpm@7.1.0",
14+
"packageManager": "pnpm@7.33.5",
1515
"engines": {
16-
"pnpm": "^7.1.0"
16+
"pnpm": ">=7.0.0"
1717
},
1818
"pnpm": {
1919
"overrides": {

packages/svelte-hmr-spec/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cheap-watch": "^1.0.2",
2121
"esm": "^3.2.25",
2222
"fast-glob": "^3.0.4",
23-
"mocha": "^6.1.4",
23+
"mocha": "^10.2.0",
2424
"node-fetch": "^2.6.7",
2525
"test-hmr": "^0.1.2"
2626
},

packages/svelte-hmr/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"dotenv": "^10.0.0",
3030
"prettier": "^1.19.1",
3131
"svelte": "^3.50.1",
32-
"tap-mocha-reporter": "^5.0.1",
32+
"tap-mocha-reporter": "^5.0.3",
3333
"zoar": "^0.3.0",
3434
"zorax": "^0.0.12"
3535
},

0 commit comments

Comments
 (0)