Skip to content

Commit

Permalink
fix(core): include target and configuration being run in env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz committed Mar 14, 2023
1 parent 10a7e7d commit 05c802b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/nx/src/tasks-runner/forked-process-task-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ 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_HASH: task.hash,
// used when Nx is invoked via Lerna
LERNA_PACKAGE_NAME: task.target.project,
Expand Down

0 comments on commit 05c802b

Please sign in to comment.