Skip to content

Commit

Permalink
types: use node16 module resolution in typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianMurphy committed Jan 16, 2023
1 parent f07f413 commit 02b5161
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 4 additions & 1 deletion packages/remark-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": ["*.js"]
"include": ["*.js"],
"compilerOptions": {
"resolveJsonModule": true
}
}
9 changes: 3 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"include": ["script/**/*.js", "test/**/*.js"],
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"module": "ES2020",
"moduleResolution": "node",
"resolveJsonModule": true,
"target": "es2021",
"lib": ["es2021"],
"module": "node16",
"allowJs": true,
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"strict": true
}
Expand Down

0 comments on commit 02b5161

Please sign in to comment.