Skip to content

Commit

Permalink
feat: update node version to 18 (#2464)
Browse files Browse the repository at this point in the history
* upgrade to node 18

* update karma script

* update the rest of scripts

* bump maxSize by 1kb

---------

Co-authored-by: Nikolaus Roman <nikrom17@gmail.com>
  • Loading branch information
mchoun and nikrom17 authored Jan 22, 2025
1 parent df7a515 commit 08435cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bundlemonrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"path": "size.min.js",
"compression": "gzip",
"maxPercentIncrease": 3.6,
"maxSize": "81kb"
"maxSize": "82kb"
}
],
"reportOutput": [
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.18
18.20.1
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"debug": "cross-env NODE_ENV=debug",
"delete-size": "rm dist/size.* dist/report.html",
"demo": "serve ./demo -l 1337",
"dev": "npm run check-node-version && babel-node $(npm bin)/webpack-dev-server -- --config webpack.config.dev.js --port 9001 --host localhost.paypal.com --open /index.htm --https --hot=false --static './demo/dev'",
"dev": "npm run check-node-version && babel-node ./node_modules/.bin/webpack-dev-server -- --config webpack.config.dev.js --port 9001 --host localhost.paypal.com --open /index.htm --https --hot=false --static './demo/dev'",
"eslint-find-rules": "eslint-find-rules --current .eslintrc.js --unused --plugin",
"flow": "flow",
"flow-typed": "rm -rf flow-typed && flow-typed install && rm flow-typed/npm/puppeteer_*",
Expand All @@ -21,7 +21,7 @@
"jest-e2e": "rm -f ./test/e2e/screenshots/*.png && jest test/e2e",
"jest-screenshot": "jest test/screenshot --env=node --no-cache",
"jest-ssr": "jest test/ssr --env=node --no-cache --collectCoverage --collectCoverageFrom='src/' --coverageDirectory='coverage/jest'",
"karma": "cross-env NODE_ENV=test babel-node $(npm bin)/karma start",
"karma": "cross-env NODE_ENV=test babel-node ./node_modules/.bin/karma start",
"lint": "eslint --ext .js --ext .jsx src/ test/ *.js",
"postversion": "./scripts/postversion.sh",
"preversion": "./scripts/preversion.sh",
Expand All @@ -34,11 +34,15 @@
"typecheck": "npm run flow",
"version": "./scripts/version.sh",
"vitest": "vitest",
"webpack": "babel-node $(npm bin)/webpack --",
"webpack": "babel-node ./node_modules/.bin/webpack --",
"webpack-size": "npm run webpack -- --config webpack.config.size",
"prepare": "husky install",
"screenshot-server": "babel-node ./test/percy/server/index.js"
},
"engines": {
"node": "^18",
"npm": "8"
},
"files": [
"src/",
"dist/",
Expand Down

0 comments on commit 08435cd

Please sign in to comment.