Skip to content

Commit

Permalink
chore: fix new-package
Browse files Browse the repository at this point in the history
  • Loading branch information
Badisi committed Jun 26, 2024
1 parent b84e5d9 commit 5c02fbe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/new-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ exports.default = options =>
return modifyJsonFile('tsconfig.json', ['compilerOptions', 'paths'], paths);
})

// modify tsconfig.base.json
.rule(({ tree }) => {
const paths = tree.readJson('tsconfig.base.json').compilerOptions.paths;
paths[`@hug/ngx-${options.libName.toLowerCase()}`] = [
`dist/${options.libName.toLowerCase()}`
];
return modifyJsonFile('tsconfig.base.json', ['compilerOptions', 'paths'], paths);
})

// modify package.json
.rule(({ tree }) => {
const workspaces = tree.readJson('package.json').workspaces;
Expand Down

0 comments on commit 5c02fbe

Please sign in to comment.