Skip to content

Commit

Permalink
lint-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed Feb 7, 2022
1 parent e5ac0e8 commit 37b77dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ export function readConfig(
// Some options are relative to the config file, so must be converted to absolute paths here
if (options.require) {
// Modules are found relative to the tsconfig file, not the `dir` option
const tsconfigRelativeResolver =
createProjectLocalResolveHelper(dirname(configPath));
const tsconfigRelativeResolver = createProjectLocalResolveHelper(
dirname(configPath)
);
options.require = options.require.map((path: string) =>
tsconfigRelativeResolver(path, false)
);
Expand Down
2 changes: 1 addition & 1 deletion src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export function getBasePathForProjectLocalDependencyResolution(
projectOption: string | undefined,
cwdOption: string
) {
if(configFilePath != null) return dirname(configFilePath);
if (configFilePath != null) return dirname(configFilePath);
return projectSearchDirOption ?? projectOption ?? cwdOption;
// TODO technically breaks if projectOption is path to a file, not a directory,
// and we attempt to resolve relative specifiers. By the time we resolve relative specifiers,
Expand Down

0 comments on commit 37b77dd

Please sign in to comment.