Skip to content

Commit

Permalink
fix(js): pass buildTargetOptions in executor (#17459)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Jun 7, 2023
1 parent 3cb7b8f commit 392366f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/js/src/executors/node/node.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,13 @@ export async function* nodeExecutor(
context.projectGraph
);

const buildOptions = project.data.targets[buildTarget.target]?.options;
if (!buildOptions) {
let buildOptions: Record<string, any>;
if (project.data.targets[buildTarget.target]) {
buildOptions = {
...project.data.targets[buildTarget.target]?.options,
...options.buildTargetOptions,
};
} else {
throw new Error(
`Cannot find build target ${chalk.bold(
options.buildTarget
Expand Down

1 comment on commit 392366f

@vercel
Copy link

@vercel vercel bot commented on 392366f Jun 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app
nx-dev-nrwl.vercel.app
nx.dev

Please sign in to comment.