diff --git a/rollup.config.mjs b/rollup.config.mjs index 167835c6d..a70843cdf 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -25,7 +25,8 @@ function commonPlugins(browser, umd = false) { }), resolve({ browser, preferBuiltins: !browser }), sucrase({ - exclude: ['node_modules/**'], + include: ['src/**'], + exclude: ['**/node_modules/**', '**/.*/', '**/*.spec.ts'], transforms: ['typescript'], }), PROD && terser(), diff --git a/tsconfig.json b/tsconfig.json index 0e6550272..2d4131ea2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,16 @@ { "compilerOptions": { "esModuleInterop": true, + "skipLibCheck": true, "isolatedModules": true, "lib": [ "es2015", "dom" ], "target": "es2015", "moduleResolution": "node" - } + }, + "exclude": [ + "**/node_modules/", + "**/dist/", + "**/.*", + "**/*.spec.ts" + ] } diff --git a/turbo.json b/turbo.json index d788cb8ea..b2a6a3cd0 100644 --- a/turbo.json +++ b/turbo.json @@ -6,7 +6,7 @@ "dependsOn": ["^build"] }, "test": { - "inputs": [], + "inputs": ["**/*.spec.ts"], "dependsOn": ["^build"] } }