Skip to content

Commit

Permalink
fix(linter): use PackageJson directly
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav committed Jul 5, 2023
1 parent 6596799 commit 1d65ee5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 27 deletions.
9 changes: 0 additions & 9 deletions docs/generated/devkit/nx_devkit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -312,14 +311,6 @@ A plugin for Nx

---

### PackageJson

**PackageJson**: `Object`

Package Json configuration

---

### ProjectConfiguration

**ProjectConfiguration**: `Object`
Expand Down
9 changes: 0 additions & 9 deletions docs/generated/packages/devkit/documents/nx_devkit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -312,14 +311,6 @@ A plugin for Nx

---

### PackageJson

**PackageJson**: `Object`

Package Json configuration

---

### ProjectConfiguration

**ProjectConfiguration**: `Object`
Expand Down
3 changes: 2 additions & 1 deletion packages/eslint-plugin/src/utils/package-json-utils.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 0 additions & 5 deletions packages/nx/src/devkit-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
3 changes: 0 additions & 3 deletions packages/nx/src/utils/package-json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d65ee5

Please sign in to comment.