Skip to content

Commit 59822ab

Browse files
committed
chore: simplify structure
1 parent 636da7b commit 59822ab

5 files changed

Lines changed: 17 additions & 8 deletions

File tree

src/index.ts

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
import { promises as fsp } from "node:fs";
22
import { fileURLToPath } from "node:url";
33
import { dirname, resolve, isAbsolute } from "pathe";
4+
import { parseJSONC, parseJSON, stringifyJSON, stringifyJSONC } from "confbox";
45
import {
56
type FindFileOptions,
67
findNearestFile,
78
findFarthestFile,
8-
} from "./utils";
9-
import type { PackageJson, TSConfig } from "./types";
10-
import { parseJSONC, parseJSON, stringifyJSON, stringifyJSONC } from "confbox";
9+
} from "./utils.ts";
10+
11+
import type { PackageJson } from "./packagejson.ts";
12+
import type { TSConfig } from "./tsconfig.ts";
13+
14+
export type { PackageJson, PackageJsonExports, PackageJsonPerson } from "./packagejson.ts";
1115

12-
export * from "./types";
13-
export * from "./utils";
16+
export type { TSConfig } from "./tsconfig.ts";
17+
18+
export {
19+
type FindFileOptions,
20+
findFarthestFile,
21+
findFile,
22+
findNearestFile
23+
} from "./utils.ts";
1424

1525
/**
1626
* Represents the options for resolving paths with additional file finding capabilities.
File renamed without changes.

src/types/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"isolatedModules": true,
1515
"forceConsistentCasingInFileNames": true,
1616
"noImplicitOverride": true,
17-
"noEmit": true
17+
"noEmit": true,
18+
"allowImportingTsExtensions": true
1819
},
1920
"include": [
2021
"src",

0 commit comments

Comments
 (0)