exclude dev-only files from rollup output

This commit is contained in:
Brent Schroeter 2026-02-03 05:17:54 +00:00
parent f5901f9111
commit 0f8ffd285d
2 changed files with 8 additions and 2 deletions

View file

@ -5,7 +5,10 @@ node = "24"
run = "npx tsc --noEmit && npx eslint ./src" run = "npx tsc --noEmit && npx eslint ./src"
[tasks.build] [tasks.build]
run = "npx rollup -c" run = """
rm -r dist || true
npx rollup -c
"""
[tasks.test] [tasks.test]
depends = ["lint"] depends = ["lint"]

View file

@ -15,5 +15,8 @@ export default {
{ file: pkg.main, format: "cjs" }, { file: pkg.main, format: "cjs" },
{ file: pkg.module, format: "es" }, { file: pkg.module, format: "es" },
], ],
plugins: [typescript()], plugins: [typescript({
include: ["src/**/*.ts"],
exclude: ["**/*.test.ts"],
})],
}; };