Skip to content

Commit

Permalink
resolve the cwd to package
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianGonz97 committed Jan 5, 2024
1 parent dc92ae8 commit 091bd59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/utils/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ export async function resolveConfigPaths(cwd: string, config: RawConfig) {
);
}

const tsconfigPath = await find("package.json", { root: cwd });
const tsconfigPath = await find(path.resolve(cwd, "package.json"), { root: cwd });
if (tsconfigPath === null)
throw new Error(`Failed to find ${logger.highlight("tsconfig.json")}.`);

const parsedConfig = await parseNative(tsconfigPath, { root: cwd });
const parsedConfig = await parseNative(tsconfigPath);

const absoluteBaseUrl: string | undefined = parsedConfig.result.options.pathsBasePath;
let paths: Record<string, string[]> | undefined = parsedConfig.result.options.paths;
Expand Down

0 comments on commit 091bd59

Please sign in to comment.