diff --git a/packages/wow-contexts/tsconfig.json b/packages/wow-contexts/tsconfig.json index 1a06711..564a599 100644 --- a/packages/wow-contexts/tsconfig.json +++ b/packages/wow-contexts/tsconfig.json @@ -1,13 +1,4 @@ { - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "moduleResolution": "bundler", - "esModuleInterop": true, - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "types": ["bun"] - }, + "extends": "../../tsconfig.base.json", "include": ["src"] } diff --git a/packages/wow-core/tsconfig.json b/packages/wow-core/tsconfig.json index 1a06711..564a599 100644 --- a/packages/wow-core/tsconfig.json +++ b/packages/wow-core/tsconfig.json @@ -1,13 +1,4 @@ { - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "moduleResolution": "bundler", - "esModuleInterop": true, - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "types": ["bun"] - }, + "extends": "../../tsconfig.base.json", "include": ["src"] } diff --git a/packages/wow-inject/tsconfig.json b/packages/wow-inject/tsconfig.json index 1a06711..564a599 100644 --- a/packages/wow-inject/tsconfig.json +++ b/packages/wow-inject/tsconfig.json @@ -1,13 +1,4 @@ { - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "moduleResolution": "bundler", - "esModuleInterop": true, - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "types": ["bun"] - }, + "extends": "../../tsconfig.base.json", "include": ["src"] } diff --git a/packages/wow-pi/tsconfig.json b/packages/wow-pi/tsconfig.json index 1a06711..564a599 100644 --- a/packages/wow-pi/tsconfig.json +++ b/packages/wow-pi/tsconfig.json @@ -1,13 +1,4 @@ { - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "moduleResolution": "bundler", - "esModuleInterop": true, - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "types": ["bun"] - }, + "extends": "../../tsconfig.base.json", "include": ["src"] } diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000..223bf6a --- /dev/null +++ b/tsconfig.base.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "bundler", + "baseUrl": ".", + "paths": { + "wow-core": ["packages/wow-core/src/index.ts"], + "wow-contexts": ["packages/wow-contexts/src/index.ts"], + "wow-inject": ["packages/wow-inject/src/index.ts"], + "wow-statusline": ["packages/wow-statusline/src/index.ts"] + }, + "esModuleInterop": true, + "strict": true, + "noEmit": true, + "skipLibCheck": true, + "types": ["bun"] + } +} diff --git a/tsconfig.json b/tsconfig.json index 06fd597..995318c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,4 @@ { - "compilerOptions": { - "target": "ESNext", - "module": "ESNext", - "moduleResolution": "bundler", - "esModuleInterop": true, - "strict": true, - "noEmit": true, - "skipLibCheck": true, - "types": ["bun"] - }, + "extends": "./tsconfig.base.json", "include": ["packages/*/src"] }