From 02b51613735ffe142d472a286311c6bf5954e899 Mon Sep 17 00:00:00 2001 From: Christian Murphy Date: Mon, 16 Jan 2023 12:17:42 -0700 Subject: [PATCH] types: use node16 module resolution in typescript --- packages/remark-cli/tsconfig.json | 5 ++++- tsconfig.json | 9 +++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/remark-cli/tsconfig.json b/packages/remark-cli/tsconfig.json index 7e61871a6..f7df56e58 100644 --- a/packages/remark-cli/tsconfig.json +++ b/packages/remark-cli/tsconfig.json @@ -1,4 +1,7 @@ { "extends": "../../tsconfig.json", - "include": ["*.js"] + "include": ["*.js"], + "compilerOptions": { + "resolveJsonModule": true + } } diff --git a/tsconfig.json b/tsconfig.json index 6207d022b..20a026d4f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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 }