diff --git a/packages/rollup/src/generators/init/init.spec.ts b/packages/rollup/src/generators/init/init.spec.ts index 14af6435739cd..cce9883978169 100644 --- a/packages/rollup/src/generators/init/init.spec.ts +++ b/packages/rollup/src/generators/init/init.spec.ts @@ -52,6 +52,7 @@ describe('rollupInitGenerator', () => { name: expect.any(String), dependencies: {}, devDependencies: { + '@nx/rollup': nxVersion, tslib: expect.any(String), }, }); diff --git a/packages/rollup/src/generators/init/init.ts b/packages/rollup/src/generators/init/init.ts index a78ea3818f156..891b32c8001c1 100644 --- a/packages/rollup/src/generators/init/init.ts +++ b/packages/rollup/src/generators/init/init.ts @@ -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) {