mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-11-29 15:51:52 +00:00
fix(install): build with Bun, installing it when missing (#231)
Some checks are pending
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Waiting to run
test / test (push) Waiting to run
Some checks are pending
CI / build (push) Waiting to run
Deploy to dev2 / deploy (push) Waiting to run
test / test (push) Waiting to run
* fix(install): build with Bun, installing it when missing
`logicsrc update` (and a fresh `curl … | sh`) failed on npm 11.19:
`npm install` refuses to prepare the one git dependency in the workspace
(@profullstack/autoblog) with EALLOWSCRIPTS, even under --ignore-scripts. The
npm-pinning fallback (scripts/install-npm.cjs) went inert when packageManager
moved to bun@…, and build:cli already runs `bun run`, so an npm-only machine
could not have built the CLI anyway.
The installer now uses the repo's own package manager: `bun install
--ignore-scripts` and `bun run build:cli`, installing Bun into ~/.bun via
bun.sh/install when it is not on PATH. Tested both paths: with Bun present, and
with a clean HOME and no Bun on PATH (installs Bun, builds 0.8.0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(opencreds): give the spawn-per-test CLI suite a 30s timeout
Each case starts a fresh npx tsx process (3-5s on a loaded runner), so the 5s
vitest default failed a different case at random: it turned master red on
ade33ef and this PR twice. Nothing about the CLI changed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ade33efd17
commit
f38ace8e37
2 changed files with 29 additions and 20 deletions
|
|
@ -13,7 +13,12 @@ import { tmpdir } from "node:os";
|
|||
import { join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { promisify } from "node:util";
|
||||
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
||||
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
|
||||
|
||||
// Every test here starts a fresh `npx tsx` process, which alone takes 3-5s on a
|
||||
// loaded CI runner. Vitest's 5s default turned that into random red builds
|
||||
// ("Test timed out in 5000ms" on a different case each run), so these get room.
|
||||
vi.setConfig({ testTimeout: 30_000 });
|
||||
|
||||
const execFileAsync = promisify(execFile);
|
||||
const CLI = fileURLToPath(new URL("./cli.ts", import.meta.url));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue