diff --git a/packages/nx-plugin/src/generators/plugin/plugin.ts b/packages/nx-plugin/src/generators/plugin/plugin.ts index 0c9a164db7590..fcb2bde66ee55 100644 --- a/packages/nx-plugin/src/generators/plugin/plugin.ts +++ b/packages/nx-plugin/src/generators/plugin/plugin.ts @@ -14,15 +14,12 @@ import { addSwcDependencies } from '@nx/js/src/utils/swc/add-swc-dependencies'; import { Linter } from '@nx/linter'; import * as path from 'path'; import { e2eProjectGenerator } from '../e2e-project/e2e'; -import { executorGenerator } from '../executor/executor'; -import { generatorGenerator } from '../generator/generator'; import pluginLintCheckGenerator from '../lint-checks/generator'; import { NormalizedSchema, normalizeOptions } from './utils/normalize-schema'; import { addTsLibDependencies } from '@nx/js/src/utils/typescript/add-tslib-dependencies'; import { addSwcRegisterDependencies } from '@nx/js/src/utils/swc/add-swc-dependencies'; import type { Schema } from './schema'; -import { tsLibVersion } from '@nx/js/src/utils/versions'; const nxVersion = require('../../../package.json').version; @@ -85,10 +82,11 @@ export async function pluginGenerator(host: Tree, schema: Schema) { skipFormat: true, }); + addTsLibDependencies(host); + addDependenciesToPackageJson( host, { - tslib: tsLibVersion, '@nx/devkit': nxVersion, }, { @@ -97,7 +95,6 @@ export async function pluginGenerator(host: Tree, schema: Schema) { '@nx/nx-plugin': nxVersion, } ); - addTsLibDependencies(host); // Ensures Swc Deps are installed to handle running // local plugin generators and executors diff --git a/packages/workspace/migrations.json b/packages/workspace/migrations.json index d78774ecc43b2..152bd96f7f14a 100644 --- a/packages/workspace/migrations.json +++ b/packages/workspace/migrations.json @@ -91,7 +91,7 @@ "implementation": "./src/migrations/update-16-0-0-add-nx-packages/update-16-0-0-add-nx-packages" }, "16-0-0-move-workspace-generators-into-local-plugin": { - "version": "16.0.0-beta.3", + "version": "16.0.0-beta.4", "description": "Generates a plugin called 'workspace-plugin' containing your workspace generators.", "cli": "nx", "implementation": "./src/migrations/update-16-0-0/move-workspace-generators-to-local-plugin"