Skip to content

Commit

Permalink
Use module nodenext
Browse files Browse the repository at this point in the history
  • Loading branch information
melusc committed May 26, 2022
1 parent 9afc6e5 commit 0f10582
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 @@ -13,7 +13,7 @@
"url": "https://github.com/melusc"
},
"engines": {
"node": ">=12"
"node": ">=16"
},
"files": [
"tsconfig.json"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "esnext",
"target": "esnext", // Node.js 12
"module": "NodeNext",
"target": "esnext",
"lib": ["esnext", "DOM", "DOM.Iterable"],
"moduleResolution": "node",
"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.
Expand Down

0 comments on commit 0f10582

Please sign in to comment.