From 45dc75770a13aa3fdac08bdc71c7780506f9ae0b Mon Sep 17 00:00:00 2001 From: Craigory Coppola Date: Wed, 12 Apr 2023 10:57:21 -0400 Subject: [PATCH] feat(core): remove cli property from generators and executors schema.json file --- .../files/executor/__fileName__/schema.json__tmpl__ | 1 - .../files/generator/__fileName__/schema.json__tmpl__ | 1 - packages/nx-plugin/src/generators/migration/migration.ts | 8 +------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/nx-plugin/src/generators/executor/files/executor/__fileName__/schema.json__tmpl__ b/packages/nx-plugin/src/generators/executor/files/executor/__fileName__/schema.json__tmpl__ index bc334fa30afe7..8b87936519db2 100644 --- a/packages/nx-plugin/src/generators/executor/files/executor/__fileName__/schema.json__tmpl__ +++ b/packages/nx-plugin/src/generators/executor/files/executor/__fileName__/schema.json__tmpl__ @@ -1,7 +1,6 @@ { "$schema": "http://json-schema.org/schema", "version": 2, - "cli": "nx", "title": "<%= className %> executor", "description": "", "type": "object", diff --git a/packages/nx-plugin/src/generators/generator/files/generator/__fileName__/schema.json__tmpl__ b/packages/nx-plugin/src/generators/generator/files/generator/__fileName__/schema.json__tmpl__ index 7ded707fbde36..8a59c30b3f587 100644 --- a/packages/nx-plugin/src/generators/generator/files/generator/__fileName__/schema.json__tmpl__ +++ b/packages/nx-plugin/src/generators/generator/files/generator/__fileName__/schema.json__tmpl__ @@ -1,6 +1,5 @@ { "$schema": "http://json-schema.org/schema", - "cli": "nx", "$id": "<%= className %>", "title": "", "type": "object", diff --git a/packages/nx-plugin/src/generators/migration/migration.ts b/packages/nx-plugin/src/generators/migration/migration.ts index cb4f101d400bd..ab6a757731d27 100644 --- a/packages/nx-plugin/src/generators/migration/migration.ts +++ b/packages/nx-plugin/src/generators/migration/migration.ts @@ -14,13 +14,7 @@ import type { Tree } from '@nrwl/devkit'; import type { Schema } from './schema'; import * as path from 'path'; import { addMigrationJsonChecks } from '../lint-checks/generator'; -import type { Linter as EsLint } from 'eslint'; -import { - NxMigrationsConfiguration, - PackageJson, - PackageJsonTargetConfiguration, - readNxMigrateConfig, -} from 'nx/src/utils/package-json'; +import { PackageJson, readNxMigrateConfig } from 'nx/src/utils/package-json'; interface NormalizedSchema extends Schema { projectRoot: string; projectSourceRoot: string;