Skip to content

Commit

Permalink
Require Node.js 18 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Oct 6, 2023
1 parent 266df74 commit 8ed49ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"main": "tsconfig.json",
"engines": {
"node": ">=16"
"node": ">=18"
},
"files": [
"tsconfig.json"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"module": "node16",
"moduleResolution": "node16",
"moduleDetection": "force",
"target": "ES2021", // Node.js 16
"target": "ES2022", // Node.js 18
"lib": [
"DOM",
"DOM.Iterable",
"ES2021"
"ES2022"
],
"allowSyntheticDefaultImports": true, // To provide backwards compatibility, Node.js allows you to import most CommonJS packages with a default import. This flag tells TypeScript that it's okay to use import on CommonJS modules.
"resolveJsonModule": false, // ESM doesn't yet support JSON modules.
Expand Down

0 comments on commit 8ed49ab

Please sign in to comment.