diff --git a/packages/rollup/src/generators/init/init.ts b/packages/rollup/src/generators/init/init.ts index a78ea3818f1569..289ddc2675ceef 100644 --- a/packages/rollup/src/generators/init/init.ts +++ b/packages/rollup/src/generators/init/init.ts @@ -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) {