Skip to content

Commit

Permalink
Update refresh.impl.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ffMathy authored Dec 7, 2023
1 parent b2dfe99 commit c7b5652
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/pulumi/src/executors/refresh/refresh.impl.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { buildCommand } from '@nx-extend/core'
import { ExecutorContext } from '@nx/devkit'
import { ExecutorContext, workspaceRoot } from '@nx/devkit'
import { execSync } from 'child_process'
import { which } from 'shelljs'

export interface RefreshOptions {
stack?: string,
skipPreview?: boolean,
yes?: boolean,
cwd?: string,
root?: string,
}

export default async function createExecutor(
Expand All @@ -29,7 +29,7 @@ export default async function createExecutor(
options.yes && '--yes'
]),
{
cwd: options.cwd ?? sourceRoot,
cwd: join(workspaceRoot, options.root ?? sourceRoot),
stdio: 'inherit'
}
)
Expand Down

0 comments on commit c7b5652

Please sign in to comment.