Skip to content

Commit

Permalink
Update tsconfig.json to use node16 module resolution
Browse files Browse the repository at this point in the history
Reviewed-by: Titus Wormer <tituswormer@gmail.com>

Closes GH-1106.
  • Loading branch information
ChristianMurphy committed Jan 17, 2023
1 parent f07f413 commit bec44aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 4 additions & 1 deletion packages/remark-cli/tsconfig.json
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"include": ["*.js"],
"compilerOptions": {
"resolveJsonModule": true
}
}
10 changes: 3 additions & 7 deletions tsconfig.json
@@ -1,16 +1,12 @@
{
"include": ["script/**/*.js", "test/**/*.js"],
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"module": "ES2020",
"moduleResolution": "node",
"resolveJsonModule": true,
"allowJs": true,
"target": "es2021",
"lib": ["es2021"],
"module": "node16",
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"strict": true
}
Expand Down

0 comments on commit bec44aa

Please sign in to comment.