mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-29 04:25:52 +01:00
Reconcile Pi prerequisites with the integrated runtime while holding admission
This commit is contained in:
1 parent
20ce062701
commit
f620e7157b
313 files changed
+13086
-2187
No files matched your search
@@ -21,3 +21,12 @@ export function runnerE2EWebServerCommand(repositoryRoot: string) {
|
||||
export function runnerE2ETypeScriptProcessArgs(repositoryRoot: string, entry: string, args: string[] = []) {
|
||||
return ["--import", path.join(repositoryRoot, "cli/node_modules/tsx/dist/loader.mjs"), entry, ...args];
|
||||
}
|
||||
|
||||
// pnpm's generated playwright bin shim adds NODE_PATH, even when the caller
|
||||
// rejected ambient injection. The installed lane invokes the public JS bin
|
||||
// with the current Node directly, keeping the WebServer environment closed.
|
||||
export function runnerE2EPlaywrightInvocation(repositoryRoot: string, args: string[], installed: boolean) {
|
||||
return installed
|
||||
? { command: process.execPath, args: [path.join(repositoryRoot, "node_modules/@playwright/test/cli.js"), ...args] }
|
||||
: { command: "pnpm", args: ["exec", "playwright", ...args] };
|
||||
}
|
||||
Reference in new issue
Block a user