Skip to content

Commit

Permalink
feat: use default library prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bejewel-kyoungmin committed Oct 24, 2023
1 parent 9c51de1 commit 2f899b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib/library/library.factory.ts
Expand Up @@ -53,6 +53,15 @@ function getDefaultLibraryPrefix(defaultLibraryPrefix = '@app') {
return nestCliJson['defaultLibraryPrefix'];
}
} catch (e) {
try {
const nestJson = JSON.parse(
readFileSync('./nest.json', 'utf-8'),
);
if (nestJson.hasOwnProperty('defaultLibraryPrefix')) {
return nestJson['defaultLibraryPrefix'];
}
} catch (e) {
}
}

return defaultLibraryPrefix;
Expand Down

0 comments on commit 2f899b4

Please sign in to comment.