From d0b61ebd7dac0d18dae6163f2b4a0e87b25c19fd Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 5 Dec 2024 13:01:47 +0100 Subject: [PATCH] Reuse tsconfig.json --- packages/string-templates/.npmignore | 2 +- packages/string-templates/rollup.config.js | 4 +++- packages/string-templates/tsconfig.json | 16 +++++----------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/packages/string-templates/.npmignore b/packages/string-templates/.npmignore index fb547825eb..5eb98cf496 100644 --- a/packages/string-templates/.npmignore +++ b/packages/string-templates/.npmignore @@ -1,4 +1,4 @@ * !dist/**/* -dist/tsconfig.build.tsbuildinfo +dist/tsconfig.tsbuildinfo !package.json \ No newline at end of file diff --git a/packages/string-templates/rollup.config.js b/packages/string-templates/rollup.config.js index b745e97d91..5f76376711 100644 --- a/packages/string-templates/rollup.config.js +++ b/packages/string-templates/rollup.config.js @@ -24,7 +24,9 @@ const config = (input, outputFile, format) => ({ warn(warning) }, plugins: [ - typescript(), + typescript({ + moduleResolution: "node", + }), resolve({ preferBuiltins: true, browser: true, diff --git a/packages/string-templates/tsconfig.json b/packages/string-templates/tsconfig.json index 7fc13ace8e..a3d8890deb 100644 --- a/packages/string-templates/tsconfig.json +++ b/packages/string-templates/tsconfig.json @@ -1,15 +1,9 @@ { - "include": ["src/**/*"], + "extends": "../../tsconfig.build.json", "compilerOptions": { - "declaration": true, - "target": "es6", - "moduleResolution": "node", - "noImplicitAny": true, - "incremental": true, "lib": ["dom"], - "outDir": "dist", - "esModuleInterop": true, - "types": ["node", "jest"], - "resolveJsonModule": true - } + "baseUrl": ".", + "outDir": "dist" + }, + "include": ["src/**/*"] }