From 4e2ff63d650f0be88019f2ef5b13b070b5272574 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sat, 22 Aug 2026 13:09:46 +0800 Subject: [PATCH] chore(tsconfig): remove deprecated compiler options --- package.json | 2 +- tsconfig.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8b621eb..49b3cfd 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "scripts": { "test": "jest --no-cache", "pretest": "npm run build", - "build:cjs": "tsc -p tsconfig.json --target ESNext --module commonjs --outDir lib", + "build:cjs": "tsc -p tsconfig.json --target ESNext --outDir lib", "typecheck": "tsc -p tsconfig.json --noEmit", "format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\"", "lint": "npm run typecheck && prettier --check \"src/**/*.ts\" \"__tests__/**/*.ts\"", diff --git a/tsconfig.json b/tsconfig.json index 7380790..a4f3187 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,12 @@ { "compilerOptions": { "target": "ESNext", - "module": "CommonJS", - "moduleResolution": "Node", + "module": "NodeNext", + "moduleResolution": "NodeNext", "removeComments": true, "resolveJsonModule": true, "esModuleInterop": true, + "isolatedModules": true, "types": [ "jest", "node" @@ -13,7 +14,6 @@ "allowJs": true, "skipLibCheck": true, "sourceMap": true, - "baseUrl": "./", "outDir": "lib" }, "include": [