Skip to content

Commit

Permalink
chore(core): review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKless committed Apr 17, 2024
1 parent 8316dc4 commit 3b8b79b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Expand Up @@ -11,8 +11,9 @@ export const ProjectJsonProjectsPlugin: NxPluginV2 = {
createNodes: [
'{project.json,**/project.json}',
(file, _, { workspaceRoot }) => {
let json: ProjectConfiguration;
json = readJsonFile<ProjectConfiguration>(join(workspaceRoot, file));
const json = readJsonFile<ProjectConfiguration>(
join(workspaceRoot, file)
);

const project = buildProjectFromProjectJson(json, file);
return {
Expand Down
7 changes: 1 addition & 6 deletions packages/nx/src/project-graph/plugins/utils.ts
Expand Up @@ -9,12 +9,7 @@ import type {
LoadedNxPlugin,
NormalizedPlugin,
} from './internal-api';
import {
CreateNodesResult,
type CreateNodesContext,
type NxPlugin,
type NxPluginV2,
} from './public-api';
import type { CreateNodesContext, NxPlugin, NxPluginV2 } from './public-api';
import { AggregateCreateNodesError, CreateNodesError } from '../error-types';

export function isNxPluginV2(plugin: NxPlugin): plugin is NxPluginV2 {
Expand Down

0 comments on commit 3b8b79b

Please sign in to comment.