diff --git a/docs/generated/devkit/nx_devkit.md b/docs/generated/devkit/nx_devkit.md index 344798e1e30cb..463df7413aef4 100644 --- a/docs/generated/devkit/nx_devkit.md +++ b/docs/generated/devkit/nx_devkit.md @@ -39,7 +39,6 @@ It only uses language primitives and immutable objects - [NxAffectedConfig](../../devkit/documents/nx_devkit#nxaffectedconfig) - [NxJsonConfiguration](../../devkit/documents/nx_devkit#nxjsonconfiguration) - [NxPlugin](../../devkit/documents/nx_devkit#nxplugin) -- [PackageJson](../../devkit/documents/nx_devkit#packagejson) - [ProjectConfiguration](../../devkit/documents/nx_devkit#projectconfiguration) - [ProjectFileMap](../../devkit/documents/nx_devkit#projectfilemap) - [ProjectGraph](../../devkit/documents/nx_devkit#projectgraph) @@ -312,14 +311,6 @@ A plugin for Nx --- -### PackageJson - -• **PackageJson**: `Object` - -Package Json configuration - ---- - ### ProjectConfiguration • **ProjectConfiguration**: `Object` diff --git a/docs/generated/packages/devkit/documents/nx_devkit.md b/docs/generated/packages/devkit/documents/nx_devkit.md index 344798e1e30cb..463df7413aef4 100644 --- a/docs/generated/packages/devkit/documents/nx_devkit.md +++ b/docs/generated/packages/devkit/documents/nx_devkit.md @@ -39,7 +39,6 @@ It only uses language primitives and immutable objects - [NxAffectedConfig](../../devkit/documents/nx_devkit#nxaffectedconfig) - [NxJsonConfiguration](../../devkit/documents/nx_devkit#nxjsonconfiguration) - [NxPlugin](../../devkit/documents/nx_devkit#nxplugin) -- [PackageJson](../../devkit/documents/nx_devkit#packagejson) - [ProjectConfiguration](../../devkit/documents/nx_devkit#projectconfiguration) - [ProjectFileMap](../../devkit/documents/nx_devkit#projectfilemap) - [ProjectGraph](../../devkit/documents/nx_devkit#projectgraph) @@ -312,14 +311,6 @@ A plugin for Nx --- -### PackageJson - -• **PackageJson**: `Object` - -Package Json configuration - ---- - ### ProjectConfiguration • **ProjectConfiguration**: `Object` diff --git a/packages/eslint-plugin/src/utils/package-json-utils.ts b/packages/eslint-plugin/src/utils/package-json-utils.ts index 4c52ae586e80b..bf1759d37f32e 100644 --- a/packages/eslint-plugin/src/utils/package-json-utils.ts +++ b/packages/eslint-plugin/src/utils/package-json-utils.ts @@ -1,5 +1,6 @@ -import { PackageJson, ProjectFileMap, readJsonFile } from '@nx/devkit'; +import { ProjectFileMap, readJsonFile } from '@nx/devkit'; import { existsSync } from 'fs'; +import { PackageJson } from 'nx/src/utils/package-json'; export function getAllDependencies( packageJson: PackageJson diff --git a/packages/nx/src/devkit-exports.ts b/packages/nx/src/devkit-exports.ts index 0a3ee55ffce0e..44b38602a9402 100644 --- a/packages/nx/src/devkit-exports.ts +++ b/packages/nx/src/devkit-exports.ts @@ -174,11 +174,6 @@ export { readJsonFile, writeJsonFile } from './utils/fileutils'; */ export { stripIndents } from './utils/strip-indents'; -/** - * @category Utils - */ -export type { PackageJson } from './utils/package-json'; - /** * @category Utils */ diff --git a/packages/nx/src/utils/package-json.ts b/packages/nx/src/utils/package-json.ts index 060df85957cc7..b99e9de9f6a70 100644 --- a/packages/nx/src/utils/package-json.ts +++ b/packages/nx/src/utils/package-json.ts @@ -33,9 +33,6 @@ export interface NxMigrationsConfiguration { type PackageOverride = { [key: string]: string | PackageOverride }; -/** - * Package Json configuration - */ export interface PackageJson { // Generic Package.Json Configuration name: string;