Skip to content

Commit

Permalink
tighten up includes/excludes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlbrugger committed Apr 4, 2024
1 parent 93972b2 commit db003ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
9 changes: 8 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{
"compilerOptions": {
"esModuleInterop": true,
"skipLibCheck": true,
"isolatedModules": true,
"lib": [ "es2015", "dom" ],
"target": "es2015",
"moduleResolution": "node"
}
},
"exclude": [
"**/node_modules/",
"**/dist/",
"**/.*",
"**/*.spec.ts"
]
}
2 changes: 1 addition & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dependsOn": ["^build"]
},
"test": {
"inputs": [],
"inputs": ["**/*.spec.ts"],
"dependsOn": ["^build"]
}
}
Expand Down

0 comments on commit db003ce

Please sign in to comment.