Skip to content

Commit 5787c85

Browse files
authored
Merge pull request #2 from nikero41/remove-tests-from-dist
Remove tests from dist
2 parents efa43aa + 33f1cbd commit 5787c85

7 files changed

Lines changed: 7 additions & 3 deletions

File tree

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/__tests__/fixtures/invalid/tsconfig.json

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default defineConfig(
7373
parserOptions: {
7474
projectService: {
7575
loadTypeScriptPlugins: true,
76-
allowDefaultProject: ["lint-staged.config.ts", "prisma.config.ts"],
76+
allowDefaultProject: ["src/__tests__/*.ts"],
7777
},
7878
},
7979
},

src/__tests__/filepath.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { describe, expect, it } from "bun:test";
22
import { join } from "path";
3+
34
import { createTsconfigResolver } from "..";
45
import { isJsFile, resolvePath } from "../filepath";
56

src/__tests__/plugin.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { afterEach, describe, expect, it } from "bun:test";
22
import { join } from "path";
3+
34
import bunTsconfigPaths, { createTsconfigResolver } from "..";
45

56
const FIXTURES_DIR = join(import.meta.dir, "fixtures");

src/filepath.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { existsSync, lstatSync, readdirSync } from "fs";
2-
import tsconfigPaths from "tsconfig-paths";
32
import { join, parse } from "path";
3+
import tsconfigPaths from "tsconfig-paths";
44

55
const EXTENSIONS = [
66
".ts",

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { BunPlugin } from "bun";
22
import tsconfigPaths from "tsconfig-paths";
3+
34
import { resolvePath } from "./filepath";
45

56
export interface TsConfigPathsOptions {

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
"noPropertyAccessFromIndexSignature": true
1313
},
1414
"include": ["src"],
15-
"exclude": ["node_modules", "dist", "src/__tests__/fixtures"]
15+
"exclude": ["node_modules", "dist", "src/__tests__"]
1616
}

0 commit comments

Comments
 (0)