Skip to content

Commit

Permalink
feat: migrate generate package json
Browse files Browse the repository at this point in the history
  • Loading branch information
bennymeg committed Feb 17, 2022
1 parent ded7b86 commit b0d839f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/nx-electron/src/utils/generate-package-json.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ProjectGraph } from '@nrwl/devkit';
import type { ProjectGraph } from '@nrwl/devkit';
import { writeJsonFile, readJsonFile } from '@nrwl/devkit';
import { BuildElectronBuilderOptions } from '../executors/build/executor';
import { writeJsonFile, readJsonFile } from '@nrwl/workspace/src/utilities/fileutils';
import { INDEX_OUTPUT_FILENAME } from './config';

/**
Expand Down Expand Up @@ -70,7 +70,7 @@ function findAllNpmDeps(

seen.add(projectName);

const node = graph.nodes[projectName];
const node = graph.externalNodes ? graph.externalNodes[projectName] : graph.nodes[projectName];

if (node && node.type === 'npm') {
list[node.data.packageName] = node.data.version;
Expand Down

0 comments on commit b0d839f

Please sign in to comment.