Skip to content

Commit aa507c2

Browse files
committed
cleanup(core): merge the duplicate native and nx-json imports
oxlint rejects no-duplicate-imports, and both files had picked up a second import from a module they already imported: subsetHashPlans from ../native in the hasher, and TargetDependencies from ../../config/nx-json in affected.
1 parent ce3ba4f commit aa507c2

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

packages/nx/src/hasher/native-task-hasher-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ import {
1010
ProjectGraph as NativeProjectGraph,
1111
NxWorkspaceFilesExternals,
1212
TaskHasher,
13+
subsetHashPlans,
1314
transferProjectGraph,
1415
} from '../native';
1516
import { transformProjectGraphForRust } from '../native/transform-objects';
1617
import type { TaskPlanningContext } from './task-planning-context';
17-
import { subsetHashPlans } from '../native';
1818
import { getRootTsConfigPath } from '../plugins/js/utils/typescript';
1919
import { getTaskIOService } from '../tasks-runner/task-io-service';
2020
import { readJsonFile } from '../utils/fileutils';

packages/nx/src/project-graph/affected/affected-tasks.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
import { NxJsonConfiguration } from '../../config/nx-json';
1+
import {
2+
NxJsonConfiguration,
3+
TargetDependencies,
4+
} from '../../config/nx-json';
25
import { ProjectGraph } from '../../config/project-graph';
36
import { TaskGraph } from '../../config/task-graph';
4-
import { TargetDependencies } from '../../config/nx-json';
57
import {
68
affectedTasks as nativeAffectedTasks,
79
dependentOutputEdges,

0 commit comments

Comments
 (0)