Skip to content

Commit

Permalink
chore: fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
morigs committed Jul 25, 2024
1 parent 4218c6d commit 358e9a3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import { build, type Options } from "tsup";
await $`rm -rf dist`;

const tsupConfig: Options = {
entry: ["src/**/*.ts"],
entry: [
"src/**/*.ts",
"!src/**/__tests__/**",
"!src/**/*.test.*",
"!src/**/*.spec.*",
],
splitting: false,
sourcemap: false,
clean: true,
Expand Down
5 changes: 5 additions & 0 deletions tsconfig.dts.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"lib": [
"ESNext"
],
"module": "ES2022",
"rootDir": "./src",
"moduleResolution": "node",
"resolveJsonModule": true,
"declaration": true,
"emitDeclarationOnly": true,
Expand All @@ -18,6 +21,8 @@
"exclude": [
"node_modules",
"test",
"src/**.spec.ts",
"src/**.test.ts",
"dist",
"build.ts"
]
Expand Down

0 comments on commit 358e9a3

Please sign in to comment.