Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
benyap committed Mar 6, 2022
1 parent f3f7ecc commit 683d8a1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/steps/computeAliases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ export function computeAliases(basePath: string, tsConfig: TSConfig): Alias[] {
const regex = /\*$/;
const { compilerOptions = {} } = tsConfig;
const paths = compilerOptions.paths ?? {};
const aliases: Alias[] = Object.keys(paths)
.map((alias) => ({
prefix: alias.replace(regex, ""),
aliasPaths: paths[alias].map((path: string) =>
resolve(basePath, path.replace(regex, ""))
),
}));
const aliases: Alias[] = Object.keys(paths).map((alias) => ({
prefix: alias.replace(regex, ""),
aliasPaths: paths[alias].map((path: string) =>
resolve(basePath, path.replace(regex, ""))
),
}));
return aliases;
}

0 comments on commit 683d8a1

Please sign in to comment.