From c2b8c17f68877338e9f9e58db66949760f353ecb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Dec 2023 11:06:16 +0100 Subject: [PATCH] build: switch TS module resolution to node 16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .lintstagedrc.js | 2 +- tsconfig.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.lintstagedrc.js b/.lintstagedrc.js index 5530f473..361afe3d 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -4,6 +4,6 @@ module.exports = { 'ts-standard --fix', 'eslint --cache --fix' ], - '**/!(package.json)*.json': ['biome format --write'], + '**/!(package.json|tsconfig.json)*.json': ['biome format --write'], '**/*.{md,yml,yaml}': ['prettier --cache --write'] } diff --git a/tsconfig.json b/tsconfig.json index 79ab1b82..96f8109e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,8 +2,7 @@ "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "target": "ES2022", - "module": "ES2022", - "moduleResolution": "Node", + "module": "Node16", "declaration": true, "declarationDir": "./lib/dts", "strict": true, -- 2.34.1