Skip to content

Commit 9f9b9a1

Browse files
committed
devProcessCwdInBuildDir
1 parent 38722f2 commit 9f9b9a1

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

packages/cli-v3/src/dev/devSupervisor.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,11 @@ class DevSupervisor implements WorkerRuntime {
358358
config: this.options.config,
359359
});
360360

361-
const cwd = this.options.config.experimental_devProcessCwdInBuildDir
362-
? worker.build.outputPath
363-
: undefined;
361+
const cwd =
362+
this.options.config.devProcessCwdInBuildDir ??
363+
this.options.config.experimental_devProcessCwdInBuildDir
364+
? worker.build.outputPath
365+
: undefined;
364366

365367
//new run
366368
runController = new DevRunController({

packages/core/src/v3/config.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,13 +279,20 @@ export type TriggerConfig = {
279279
*/
280280
processKeepAlive?: ProcessKeepAlive;
281281

282+
/**
283+
* This still works but use `devProcessCwdInBuildDir` instead.
284+
*
285+
* @deprecated (use devProcessCwdInBuildDir instead)
286+
*/
287+
experimental_devProcessCwdInBuildDir?: boolean;
288+
282289
/**
283290
* @default false
284291
* @description When running the dev CLI, set the current working directory to the build directory.
285292
*
286293
* Currently, the process.cwd() is set to the root of the project.
287294
*/
288-
experimental_devProcessCwdInBuildDir?: boolean;
295+
devProcessCwdInBuildDir?: boolean;
289296

290297
/**
291298
* @deprecated Use `dirs` instead

0 commit comments

Comments
 (0)