Skip to content

Commit

Permalink
chore(misc): update migration version for workspace-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Apr 19, 2023
1 parent b3ca503 commit 840592d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions packages/nx-plugin/src/generators/plugin/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -85,10 +82,11 @@ export async function pluginGenerator(host: Tree, schema: Schema) {
skipFormat: true,
});

addTsLibDependencies(host);

addDependenciesToPackageJson(
host,
{
tslib: tsLibVersion,
'@nx/devkit': nxVersion,
},
{
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 840592d

Please sign in to comment.