fix(coding): resolve packaged Pi Agent Server dependencies
This commit is contained in:
@@ -514,7 +514,13 @@ export class PiAgentServerProcess {
|
||||
const generation = ++this.generation;
|
||||
const child = spawn(
|
||||
this.options.executablePath,
|
||||
[this.options.serverPath, '--runtime-root', this.options.runtimeRoot],
|
||||
[
|
||||
// Enables the parent URL used to resolve dependencies from the packaged Pi runtime root.
|
||||
'--experimental-import-meta-resolve',
|
||||
this.options.serverPath,
|
||||
'--runtime-root',
|
||||
this.options.runtimeRoot,
|
||||
],
|
||||
{
|
||||
cwd: this.options.runtimeRoot,
|
||||
env: buildPiWorkerEnvironment(this.options.configDir),
|
||||
|
||||
Reference in New Issue
Block a user