Skip to content

Commit

Permalink
Merge pull request #187 from TatsuyaYamamoto/module-node16
Browse files Browse the repository at this point in the history
Use `module: node16` for Node.js 16+
  • Loading branch information
orta authored May 11, 2023
2 parents 3bdac9b + 47d3c29 commit 4c413cf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions bases/node-lts.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"lib": [
"es2022"
],
"module": "commonjs",
"module": "Node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node"
}
}
}
2 changes: 1 addition & 1 deletion bases/node16.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"compilerOptions": {
"lib": ["es2021"],
"module": "commonjs",
"module": "Node16",
"target": "es2021",

"strict": true,
Expand Down
2 changes: 1 addition & 1 deletion bases/node17.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"compilerOptions": {
"lib": ["es2022"],
"module": "commonjs",
"module": "Node16",
"target": "es2022",

"strict": true,
Expand Down
2 changes: 1 addition & 1 deletion bases/node18.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"compilerOptions": {
"lib": ["es2023"],
"module": "commonjs",
"module": "Node16",
"target": "es2022",

"strict": true,
Expand Down
2 changes: 1 addition & 1 deletion bases/node19.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"compilerOptions": {
"lib": ["es2023"],
"module": "commonjs",
"module": "Node16",
"target": "es2022",

"strict": true,
Expand Down
2 changes: 1 addition & 1 deletion bases/node20.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"compilerOptions": {
"lib": ["es2023"],
"module": "commonjs",
"module": "Node16",
"target": "es2022",

"strict": true,
Expand Down

0 comments on commit 4c413cf

Please sign in to comment.