diff --git a/scripts/scenarios/start-app.ts b/scripts/scenarios/start-app.ts index d635f1ba0f..6ec600c7a3 100644 --- a/scripts/scenarios/start-app.ts +++ b/scripts/scenarios/start-app.ts @@ -63,6 +63,8 @@ export const prepareHome = Effect.fn("startApp.prepareHome")(function* (home: st `#!/bin/sh\nprintf '%s\\n' "$@" > "$(dirname "$0")/../editor-args.txt"\n`, ); yield* fs.chmod(editor, 0o755); + yield* fs.copyFile(path.join((yield* HostProcess.Environment).PROOF_FIXTURE_DIR!, "tea"), path.join(home, "bin/tea")); + yield* fs.chmod(path.join(home, "bin/tea"), 0o755); const noModel = path.join(home, "bin/no-model"); yield* fs.writeFileString(noModel, "#!/bin/sh\necho 'scenarios run no model' >&2\nexit 1\n"); yield* fs.chmod(noModel, 0o755); @@ -170,8 +172,10 @@ const startApp = Effect.fn("startApp")(function* (input: { .pipe(Effect.ignore); }, }); + const legacy = path.join(hostEnvironment.PROOF_FIXTURE_DIR!, "legacy"); + yield* fs.copyFile(path.join(checkout, "packages/contracts/src/baseSchemas.ts"), path.join(legacy, "packages/contracts/src/baseSchemas.ts")); const web = yield* start({ - cwd: checkout, + cwd: legacy, command: node, args: devRunner("dev:web", [...ports, "--", "--host", host]), env: webEnv,