Skip to content

Commit

Permalink
feat: update to node 20 (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
prescottprue authored May 6, 2024
1 parent bff9089 commit 98f711a
Show file tree
Hide file tree
Showing 10 changed files with 3,099 additions and 3,355 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Reusable release workflow
uses: reside-eng/workflow-templates-library/.github/workflows/release_library.yml@v1
with:
NODE_VERSION: 18.x
NODE_VERSION: 20.x
PACKAGE_MANAGER: yarn-berry
SLACK_NOTIFICATION_SECRET: SLACK_WEBHOOK_PLATFORM_PROD
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Reusable verify workflow
uses: reside-eng/workflow-templates-library/.github/workflows/verify_library.yml@v1
with:
NODE_VERSION: 18.x
NODE_VERSION: 20.x
PACKAGE_MANAGER: yarn-berry
SLACK_NOTIFICATION_SECRET: SLACK_WEBHOOK_PLATFORM_PROD
ENABLE_TYPES_CHECK: true
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
875 changes: 0 additions & 875 deletions .yarn/releases/yarn-3.8.2.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.1.cjs

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
compressionLevel: mixed

enableGlobalCache: false

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-3.8.2.cjs
yarnPath: .yarn/releases/yarn-4.2.1.cjs
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"types": "dist/index.d.ts",
"jsnext:main": "./esm/index.js",
"engines": {
"node": "^18"
"node": "^20"
},
"files": [
"dist",
Expand All @@ -22,30 +22,30 @@
"build": "yarn build:lib && yarn build:esm",
"build:lib": "rimraf dist && tsc -m commonjs",
"build:esm": "rimraf esm && tsc -m ESNext --outDir esm",
"prepare": "husky install",
"prepare": "husky",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
"devDependencies": {
"@commitlint/cli": "18.6.1",
"@commitlint/config-conventional": "18.6.3",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@side/commitlint-config": "1.0.2",
"@side/eslint-config-base": "2.1.0",
"@side/eslint-config-jest": "1.0.0",
"@side/prettier-config": "1.0.0",
"@types/jest": "29.5.12",
"@types/node": "18.19.6",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/parser": "7.0.2",
"@types/node": "20.12.10",
"@typescript-eslint/eslint-plugin": "7.8.0",
"@typescript-eslint/parser": "7.8.0",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"husky": "8.0.3",
"husky": "9.0.11",
"jest": "29.7.0",
"lint-staged": "15.2.2",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"ts-jest": "29.1.2",
"typescript": "5.1.6"
"typescript": "5.4.5"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
// Previously came from @tsconfig/node18 module, target, and moduleResolution
// Previously came from @tsconfig/node20 module, target, and moduleResolution
// may be changed as part of ESM support [PLAT-5740]
"lib": ["es2022"],
"module": "commonjs",
Expand Down
Loading

0 comments on commit 98f711a

Please sign in to comment.