From 967206efdc22edd20f3b457ca0427e8329eace18 Mon Sep 17 00:00:00 2001 From: Mathias Lykkegaard Lorenzen Date: Thu, 7 Dec 2023 11:34:20 +0100 Subject: [PATCH] Update up.impl.ts --- packages/pulumi/src/executors/up/up.impl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/pulumi/src/executors/up/up.impl.ts b/packages/pulumi/src/executors/up/up.impl.ts index a184b4d4..080ea002 100644 --- a/packages/pulumi/src/executors/up/up.impl.ts +++ b/packages/pulumi/src/executors/up/up.impl.ts @@ -1,5 +1,5 @@ import { buildCommand, USE_VERBOSE_LOGGING_MINIMAL } from '@nx-extend/core' -import { ExecutorContext } from '@nx/devkit' +import { ExecutorContext, workspaceRoot } from '@nx/devkit' import { execSync } from 'child_process' import { which } from 'shelljs' @@ -9,7 +9,7 @@ export interface UpOptions { yes?: boolean suppressOutputs?: boolean json?: boolean - cwd?: string + root?: string } export default async function createExecutor( @@ -33,7 +33,7 @@ export default async function createExecutor( options.json && '--json' ]), { - cwd: options.cwd ?? sourceRoot, + cwd: join(workspaceRoot, options.root ?? sourceRoot), stdio: 'inherit' } )