File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff 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 ( {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments