Skip to content

Commit

Permalink
fix(react): install rollup package when generating lib (#16373)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Apr 18, 2023
1 parent 5a0a4e8 commit a4ef959
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/rollup/src/generators/init/init.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ describe('rollupInitGenerator', () => {
name: expect.any(String),
dependencies: {},
devDependencies: {
'@nx/rollup': nxVersion,
tslib: expect.any(String),
},
});
Expand Down
9 changes: 8 additions & 1 deletion packages/rollup/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ export async function rollupInitGenerator(tree: Tree, schema: Schema) {
}
);
} else {
task = addDependenciesToPackageJson(tree, {}, { tslib: tsLibVersion });
task = addDependenciesToPackageJson(
tree,
{},
{
'@nx/rollup': nxVersion,
tslib: tsLibVersion,
}
);
}

if (!schema.skipFormat) {
Expand Down

0 comments on commit a4ef959

Please sign in to comment.