Skip to content

Commit

Permalink
Merge branch 'main' of github.com:lasseklovstad/knip into react-router-7
Browse files Browse the repository at this point in the history
  • Loading branch information
lasseklovstad committed Feb 5, 2025
2 parents 615b28b + 2afffe0 commit ea73062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/util/to-source-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const matchExt = /(\.d)?\.(m|c)?(j|t)s$/;

export const augmentWorkspace = (workspace: Workspace, dir: string, compilerOptions: CompilerOptions) => {
const srcDir = join(dir, 'src');
workspace.srcDir = (compilerOptions.rootDir ?? isDirectory(srcDir)) ? srcDir : dir;
workspace.srcDir = compilerOptions.rootDir ?? (isDirectory(srcDir) ? srcDir : dir);
workspace.outDir = compilerOptions.outDir || workspace.srcDir;
};

Expand Down

0 comments on commit ea73062

Please sign in to comment.