Skip to content

Commit 0270a7d

Browse files
committed
chore: set workspace engines
This align all private workspaces to the same engines as the CLI and all public workspaces to ^16.14.0 || >=18.0.0
1 parent 43241f6 commit 0270a7d

File tree

10 files changed

+34
-21
lines changed

10 files changed

+34
-21
lines changed

.github/workflows/ci-libnpmfund.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ jobs:
111111
os: windows-latest
112112
shell: cmd
113113
node-version:
114-
- 14.17.0
115-
- 14.x
116-
- 16.13.0
114+
- 16.14.0
117115
- 16.x
118116
- 18.0.0
119117
- 18.x

.github/workflows/ci-npmcli-config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ jobs:
111111
os: windows-latest
112112
shell: cmd
113113
node-version:
114-
- 14.17.0
115-
- 14.x
116-
- 16.13.0
114+
- 16.14.0
117115
- 16.x
118116
- 18.0.0
119117
- 18.x

.github/workflows/ci-npmcli-mock-globals.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ jobs:
6666
os: windows-latest
6767
shell: cmd
6868
node-version:
69-
- 16.14.0
70-
- 16.x
71-
- 18.0.0
69+
- 18.17.0
7270
- 18.x
71+
- 20.5.0
7372
- 20.x
7473
runs-on: ${{ matrix.platform.os }}
7574
defaults:

.github/workflows/ci-npmcli-mock-registry.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ jobs:
6666
os: windows-latest
6767
shell: cmd
6868
node-version:
69-
- 16.14.0
70-
- 16.x
71-
- 18.0.0
69+
- 18.17.0
7270
- 18.x
71+
- 20.5.0
7372
- 20.x
7473
runs-on: ${{ matrix.platform.os }}
7574
defaults:

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lib/"
4444
],
4545
"engines": {
46-
"node": "^16.14.0 || >=18.0.0"
46+
"node": "^18.17.0 || >=20.5.0"
4747
},
4848
"tap": {
4949
"timeout": 600,

mock-globals/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lib/"
3131
],
3232
"engines": {
33-
"node": "^16.14.0 || >=18.0.0"
33+
"node": "^18.17.0 || >=20.5.0"
3434
},
3535
"templateOSS": {
3636
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",

mock-registry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"lib/"
3131
],
3232
"engines": {
33-
"node": "^16.14.0 || >=18.0.0"
33+
"node": "^18.17.0 || >=20.5.0"
3434
},
3535
"templateOSS": {
3636
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",

package-lock.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
"yaml": "^2.2.1"
204204
},
205205
"engines": {
206-
"node": "^16.14.0 || >=18.0.0"
206+
"node": "^18.17.0 || >=20.5.0"
207207
}
208208
},
209209
"mock-globals": {
@@ -216,7 +216,7 @@
216216
"tap": "^16.3.8"
217217
},
218218
"engines": {
219-
"node": "^16.14.0 || >=18.0.0"
219+
"node": "^18.17.0 || >=20.5.0"
220220
}
221221
},
222222
"mock-registry": {
@@ -234,7 +234,7 @@
234234
"tap": "^16.3.8"
235235
},
236236
"engines": {
237-
"node": "^16.14.0 || >=18.0.0"
237+
"node": "^18.17.0 || >=20.5.0"
238238
}
239239
},
240240
"mock-registry/node_modules/@npmcli/arborist": {
@@ -17462,7 +17462,7 @@
1746217462
"tap": "^16.3.8"
1746317463
},
1746417464
"engines": {
17465-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
17465+
"node": "^16.14.0 || >=18.0.0"
1746617466
}
1746717467
},
1746817468
"workspaces/libnpmaccess": {
@@ -17548,7 +17548,7 @@
1754817548
"tap": "^16.3.8"
1754917549
},
1755017550
"engines": {
17551-
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
17551+
"node": "^16.14.0 || >=18.0.0"
1755217552
}
1755317553
},
1755417554
"workspaces/libnpmhook": {

scripts/template-oss/pkg.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"engines": {
3+
"node":
4+
{{! Set the CLI and private workspaces to the same version }}
5+
{{~#if isRoot~}}
6+
"^18.17.0 || >=20.5.0"
7+
{{~else~}}{{~#if isPrivate~}}
8+
"^18.17.0 || >=20.5.0"
9+
{{~else~}}
10+
{{! All public workspaces get this version }}
11+
"^16.14.0 || >=18.0.0"
12+
{{~/if~}}{{~/if~}}
13+
}
14+
}

scripts/template-oss/root.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
rootModule: {
33
add: {
44
'CONTRIBUTING.md': false,
5+
'package.json': { file: 'pkg.json', overwrite: false },
56
},
67
},
78
rootRepo: {
@@ -27,7 +28,11 @@ module.exports = {
2728
'.github/workflows/pull-request.yml': false,
2829
},
2930
},
30-
ciVersions: ['18.17.0', '18.x', '20.5.0', '20.x'],
31+
workspaceModule: {
32+
add: {
33+
'package.json': { file: 'pkg.json', overwrite: false },
34+
},
35+
},
3136
lockfile: true,
3237
npm: '.',
3338
defaultBranch: 'latest',

0 commit comments

Comments
 (0)