Skip to content

Commit

Permalink
PWA-3216::upgarding node 14 to 18
Browse files Browse the repository at this point in the history
  • Loading branch information
glo82145 committed Jun 10, 2024
1 parent cd0adbc commit 057823e
Show file tree
Hide file tree
Showing 10 changed files with 5,220 additions and 4,649 deletions.
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"url": "https://github.com/magento/pwa-studio/issues"
},
"scripts": {
"build": "yarn venia run build",
"build:dev": "yarn venia run build:dev",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && yarn venia run build",
"build:dev": "export NODE_OPTIONS=--openssl-legacy-provider && yarn venia run build:dev",
"clean:all": "yarn workspaces run -s clean && rimraf ./node_modules",
"clean:dist": "yarn workspaces run clean",
"coveralls": "cat ./coverage/lcov.info | coveralls",
Expand All @@ -36,17 +36,18 @@
"stage:venia": "yarn venia start",
"stats:venia": "yarn venia run build:analyze && yarn venia run stats",
"storybook:venia": "yarn workspace @magento/venia-ui run storybook",
"test": "jest",
"test:ci": "jest --no-cache --max-workers=3 --json --outputFile=test-results.json",
"test:debug": "node --inspect-brk node_modules/.bin/jest --no-cache --no-coverage --runInBand --testTimeout 86400",
"test:dev": "jest --watch",
"test": "export NODE_OPTIONS=--openssl-legacy-provider && jest",
"test:ci": "export NODE_OPTIONS=--openssl-legacy-provider && jest --no-cache --max-workers=3 --json --outputFile=test-results.json",
"test:debug": "export NODE_OPTIONS=--openssl-legacy-provider && node --inspect-brk node_modules/.bin/jest --no-cache --no-coverage --runInBand --testTimeout 86400",
"test:dev": "export NODE_OPTIONS=--openssl-legacy-provider && jest --watch",
"validate-queries": "graphql validate --keepClientFields --noStrictFragments",
"venia": "yarn workspace @magento/venia-concept",
"watch:all": "node scripts/watch-all.js",
"watch:venia": "yarn venia run watch"
},
"dependencies": {
"caniuse-lite": "~1.0.30001335"
"caniuse-lite": "~1.0.30001335",
"setimmediate": "^1.0.5"
},
"devDependencies": {
"@babel/plugin-transform-runtime": "~7.4.4",
Expand Down Expand Up @@ -98,7 +99,7 @@
"@graphql-tools/prisma-loader": "6.3.0"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
},
"bundlesize": [
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset-peregrine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"react-refresh": "~0.8.3"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
global.setImmediate;
const {
buildModuleWith,
mockBuildBus,
Expand Down
2 changes: 1 addition & 1 deletion packages/peregrine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"redux-actions": "~2.6.5"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
},
"pwa-studio": {
Expand Down
2 changes: 1 addition & 1 deletion packages/pwa-buildpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"workbox-webpack-plugin": "~6.2.4"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
},
"pwa-studio": {
Expand Down
2 changes: 1 addition & 1 deletion packages/upward-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"express": "^4.16.4"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
}
}
2 changes: 1 addition & 1 deletion packages/upward-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"tape": "~4.10.1"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
}
}
2 changes: 2 additions & 0 deletions packages/venia-concept/_buildpack/__tests__/create.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
jest.mock('child_process');
global.setImmediate;

const { execSync } = require('child_process');

const { dirname, resolve } = require('path');
Expand Down
2 changes: 1 addition & 1 deletion packages/venia-concept/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"sharp": "~0.29.3"
},
"engines": {
"node": ">=14.x",
"node": ">=18.x",
"yarn": ">=1.12.0"
},
"module": "src/index.js",
Expand Down
9,837 changes: 5,202 additions & 4,635 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 057823e

Please sign in to comment.