add support for npm 11 (#10795)
This commit is contained in:
2
.github/workflows/test-package-lib.yml
vendored
2
.github/workflows/test-package-lib.yml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
npm: '^10'
|
||||
engine-strict: 'true'
|
||||
- node: '22'
|
||||
npm: '^10'
|
||||
npm: '^11'
|
||||
engine-strict: 'false'
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
@@ -8,7 +8,7 @@ COPY package.json package-lock.json /usr/src/app/
|
||||
# Without the badge-maker package.json and CLI script in place, `npm ci` will fail.
|
||||
COPY badge-maker /usr/src/app/badge-maker/
|
||||
|
||||
RUN npm install -g "npm@^9.0.0"
|
||||
RUN npm install -g "npm@^10"
|
||||
# We need dev deps to build the front end. We don't need Cypress, though.
|
||||
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci
|
||||
|
||||
|
||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -126,7 +126,7 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.10.0",
|
||||
"npm": "^9.0.0 || ^10.0.0"
|
||||
"npm": "^9 || ^10 || ^11"
|
||||
}
|
||||
},
|
||||
"badge-maker": {
|
||||
|
||||
@@ -213,7 +213,7 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": "^20.10.0",
|
||||
"npm": "^9.0.0 || ^10.0.0"
|
||||
"npm": "^9 || ^10 || ^11"
|
||||
},
|
||||
"type": "module",
|
||||
"collective": {
|
||||
|
||||
Reference in New Issue
Block a user