Skip to content

Commit

Permalink
fix(core): fix NX_TASK_TARGET_CONFIGURATION being set to 'null' (#15725)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1e27759)
  • Loading branch information
FrozenPandaz committed Mar 17, 2023
1 parent 7d34a05 commit 143d8d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nx/src/tasks-runner/forked-process-task-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class ForkedProcessTaskRunner {
const env: NodeJS.ProcessEnv = {
NX_TASK_TARGET_PROJECT: task.target.project,
NX_TASK_TARGET_TARGET: task.target.target,
NX_TASK_TARGET_CONFIGURATION: task.target.configuration,
NX_TASK_TARGET_CONFIGURATION: task.target.configuration ?? undefined,
NX_TASK_HASH: task.hash,
// used when Nx is invoked via Lerna
LERNA_PACKAGE_NAME: task.target.project,
Expand Down

0 comments on commit 143d8d3

Please sign in to comment.