mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
chore: pin dependencies and use native TypeScript
This commit is contained in:
parent
849f9d9c5a
commit
2e02c74dcb
260 changed files with 862 additions and 897 deletions
|
|
@ -3,10 +3,9 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|||
import { tmpdir } from "node:os";
|
||||
import { join, resolve } from "node:path";
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import { ENV_AGENT_DIR } from "../src/config.js";
|
||||
import { ENV_AGENT_DIR } from "../src/config.ts";
|
||||
|
||||
const cliPath = resolve(__dirname, "../src/cli.ts");
|
||||
const tsxPath = resolve(__dirname, "../../../node_modules/tsx/dist/cli.mjs");
|
||||
|
||||
const tempDirs: string[] = [];
|
||||
|
||||
|
|
@ -55,7 +54,7 @@ async function runCli(args: string[]): Promise<{ stdout: string; stderr: string;
|
|||
);
|
||||
|
||||
return await new Promise((resolvePromise, reject) => {
|
||||
const child = spawn(process.execPath, [tsxPath, cliPath, ...args], {
|
||||
const child = spawn(process.execPath, [cliPath, ...args], {
|
||||
cwd: projectDir,
|
||||
env: {
|
||||
...process.env,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue