Skip to content

Commit bec44aa

Browse files
authoredJan 17, 2023
Update tsconfig.json to use node16 module resolution
Reviewed-by: Titus Wormer <tituswormer@gmail.com> Closes GH-1106.
1 parent f07f413 commit bec44aa

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed
 

‎packages/remark-cli/tsconfig.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
22
"extends": "../../tsconfig.json",
3-
"include": ["*.js"]
3+
"include": ["*.js"],
4+
"compilerOptions": {
5+
"resolveJsonModule": true
6+
}
47
}

‎tsconfig.json

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
{
22
"include": ["script/**/*.js", "test/**/*.js"],
33
"compilerOptions": {
4-
"target": "ES2020",
5-
"lib": ["ES2020"],
6-
"module": "ES2020",
7-
"moduleResolution": "node",
8-
"resolveJsonModule": true,
9-
"allowJs": true,
4+
"target": "es2021",
5+
"lib": ["es2021"],
6+
"module": "node16",
107
"checkJs": true,
118
"declaration": true,
129
"emitDeclarationOnly": true,
13-
"allowSyntheticDefaultImports": true,
1410
"skipLibCheck": true,
1511
"strict": true
1612
}

0 commit comments

Comments
 (0)
Please sign in to comment.