Skip to content

Commit

Permalink
Fix - ignore Gudes.ts from tests and builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed May 1, 2024
1 parent e8313bd commit cfb0d9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/r18gs/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default defineConfig(options => ({
{
name: "improve-minify",
setup(build) {
build.onLoad({ filter: /Guides.ts/ }, () => ({ contents: " ", loader: "ts" }));

build.onLoad({ filter: /utils.ts/ }, args => {
let contents = fs.readFileSync(args.path, "utf8");
const lines = contents.split("\n");
Expand Down
1 change: 1 addition & 0 deletions lib/r18gs/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineConfig({
setupFiles: [],
coverage: {
include: ["src/**"],
exclude: ["src/Guides.ts"],
reporter: ["text", "json", "clover", "html"],
},
},
Expand Down

0 comments on commit cfb0d9d

Please sign in to comment.