Skip to content

Commit

Permalink
fix(react): install rollup package when generating lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored and jaysoo committed Apr 18, 2023
1 parent 5a0a4e8 commit f692c3f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/rollup/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ export async function rollupInitGenerator(tree: Tree, schema: Schema) {
tree,
{},
{
'@nx/rollup': nxVersion,
'@swc/helpers': swcHelpersVersion,
'@swc/core': swcCoreVersion,
'swc-loader': swcLoaderVersion,
}
);
} else {
task = addDependenciesToPackageJson(tree, {}, { tslib: tsLibVersion });
task = addDependenciesToPackageJson(
tree,
{
'@nx/rollup': nxVersion,
},
{ tslib: tsLibVersion }
);
}

if (!schema.skipFormat) {
Expand Down

0 comments on commit f692c3f

Please sign in to comment.