From 6e38f21f183dc5c23692dfedbe4059b54600ded9 Mon Sep 17 00:00:00 2001 From: Gerrit Birkeland Date: Mon, 2 Jan 2023 12:47:45 -0700 Subject: [PATCH] Use `module: node16` in types Reviewed-by: Christian Murphy Reviewed-by: Remco Haszing Reviewed-by: Titus Wormer --- index.js | 2 +- tsconfig.json | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 96ce683..4eca6f6 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ * @typedef {import('./lib/index.js').Handler} Handler * @typedef {import('./lib/index.js').Handlers} Handlers * @typedef {import('./lib/index.js').H} H - * @typedef {import('./complex-types').Raw} Raw + * @typedef {import('./complex-types.js').Raw} Raw */ export {one, all} from './lib/traverse.js' diff --git a/tsconfig.json b/tsconfig.json index 811b979..4edcba4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,13 +3,11 @@ "compilerOptions": { "target": "ES2020", "lib": ["ES2020"], - "module": "ES2020", - "moduleResolution": "node", + "module": "Node16", "allowJs": true, "checkJs": true, "declaration": true, "emitDeclarationOnly": true, - "allowSyntheticDefaultImports": true, "skipLibCheck": true, "strict": true }