From ba9cdd178d6d5be9a82b06fb5067e97ef8890fc6 Mon Sep 17 00:00:00 2001 From: mato533 <35281743+mato533@users.noreply.github.com> Date: Sun, 22 Dec 2024 02:10:53 +0900 Subject: [PATCH] chore: restore config for base tsconfig and chenge each pkg --- packages/@wdio_electron-pkg-builder/tsconfig.json | 2 ++ packages/@wdio_electron-types/tsconfig.json | 4 ++-- packages/@wdio_electron-utils/tsconfig.json | 2 ++ tsconfig.base.json | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/@wdio_electron-pkg-builder/tsconfig.json b/packages/@wdio_electron-pkg-builder/tsconfig.json index 32bfb6b6..3935632c 100755 --- a/packages/@wdio_electron-pkg-builder/tsconfig.json +++ b/packages/@wdio_electron-pkg-builder/tsconfig.json @@ -3,6 +3,8 @@ "include": ["src/**/*.ts", "rollup.config.ts"], "exclude": ["src/cjs", "node_modules", "coverage", "dist", "test"], "compilerOptions": { + "module": "ESNext", + "moduleResolution": "bundler", "outDir": "dist", "types": ["node", "vitest/globals"], "typeRoots": ["./node_modules", "./node_modules/@types", "../../@types"] diff --git a/packages/@wdio_electron-types/tsconfig.json b/packages/@wdio_electron-types/tsconfig.json index 3d23b715..4f755dbb 100755 --- a/packages/@wdio_electron-types/tsconfig.json +++ b/packages/@wdio_electron-types/tsconfig.json @@ -3,8 +3,8 @@ "include": ["src/**/*.ts", "rollup.config.ts"], "exclude": ["src/cjs", "node_modules", "coverage", "dist", "test"], "compilerOptions": { - "module": "NodeNext", - "moduleResolution": "NodeNext", + "module": "ESNext", + "moduleResolution": "bundler", "outDir": "dist", "types": [], "typeRoots": ["./node_modules", "./node_modules/@types", "../../@types"] diff --git a/packages/@wdio_electron-utils/tsconfig.json b/packages/@wdio_electron-utils/tsconfig.json index ad1220c7..2cce5ef6 100755 --- a/packages/@wdio_electron-utils/tsconfig.json +++ b/packages/@wdio_electron-utils/tsconfig.json @@ -3,6 +3,8 @@ "include": ["rollup.config.ts", "src/*.ts"], "exclude": ["src/cjs", "node_modules", "coverage", "dist", "test"], "compilerOptions": { + "module": "ESNext", + "moduleResolution": "bundler", "outDir": "dist", "types": ["node", "vitest/jsdom"], "typeRoots": ["./node_modules", "./node_modules/@types", "../../@types"] diff --git a/tsconfig.base.json b/tsconfig.base.json index 151353ce..14877724 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,8 +1,8 @@ { "compilerOptions": { "baseUrl": ".", - "module": "ESNext", - "moduleResolution": "bundler", + "module": "NodeNext", + "moduleResolution": "NodeNext", "target": "ESNext", "esModuleInterop": true, "strict": true,