Skip to content

Commit

Permalink
chore: exclude irrelevant files from published bundle (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Aug 6, 2024
1 parent db61890 commit 95034f0
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __tests__/fdir.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fdir } from "../index";
import { fdir } from "../src/index";
import fs from "fs";
import mock from "mock-fs";
import { test, beforeEach, TestContext } from "vitest";
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/benchmark.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fdir } from "../index";
import { fdir } from "../src/index";
import { fdir as fdir5 } from "fdir5";
import { fdir as fdir4 } from "fdir4";
import fdir3 from "fdir3";
Expand Down
4 changes: 0 additions & 4 deletions index.ts

This file was deleted.

5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
import { Builder } from "./builder";

export { Builder as fdir };
export type Fdir = typeof Builder;

export * from "./types";
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
"resolveJsonModule": true,
"allowJs": true
},
"include": ["./src", "./index.ts", "./benchmarks/"]
"include": ["./src"]
}

0 comments on commit 95034f0

Please sign in to comment.