Skip to content

Commit

Permalink
fix(core): create nodes plugin fixes (#20134)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Nov 9, 2023
1 parent b4faf2d commit dc51a90
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function replaceProjectConfigurationsWithPlugin<T = unknown>(
for (const [targetName, targetConfig] of Object.entries(node.targets)) {
const targetFromProjectConfig = projectConfig.targets[targetName];

if (targetFromProjectConfig.executor !== targetConfig.executor) {
if (targetFromProjectConfig?.executor !== targetConfig.executor) {
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const createNodes: CreateNodes<EslintPluginOptions> = [
const projectRoot = dirname(configFilePath);
// Do not create a project if package.json and project.json isn't there.
const siblingFiles = readdirSync(projectRoot);
const siblingFiles = readdirSync(join(context.workspaceRoot, projectRoot));
if (
!siblingFiles.includes('package.json') &&
!siblingFiles.includes('project.json')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const createNodes: CreateNodes<<%= className %>PluginOptions> = [
const projectRoot = dirname(configFilePath);

// Do not create a project if package.json and project.json isn't there.
const siblingFiles = readdirSync(projectRoot);
const siblingFiles = readdirSync(join(context.workspaceRoot, projectRoot));
if (
!siblingFiles.includes('package.json') &&
!siblingFiles.includes('project.json')
Expand Down

0 comments on commit dc51a90

Please sign in to comment.