Skip to content

Commit aac4fdb

Browse files
🐛 Use local package.json in readPackage
1 parent e1e7ec9 commit aac4fdb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ export const getConfig = async (userConfig?: StaartSiteConfig) => {
1717
export const readPackage = async (): Promise<
1818
{ [key: string]: any } | undefined
1919
> => {
20-
const searchResult = await explorer.search();
21-
if (!searchResult) return;
22-
const packagePath = join(searchResult.filepath, "..", "package.json");
20+
const packagePath = join(".", "package.json");
2321
try {
2422
return await readJSON(packagePath);
2523
} catch (error) {}

0 commit comments

Comments
 (0)