Skip to content

Commit 0fb246a

Browse files
committed
chore: fix ci
1 parent 712adc1 commit 0fb246a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/xarc-run/lib/xqtor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const XQItem = require("./xqitem");
77
const exec = require("xsh").exec;
88
const parseArray = require("./util/parse-array");
99
const childProc = require("child_process");
10-
const { unwrapNpmCmd } = require("unwrap-npm-cmd");
1110
const updateEnv = require("./util/update-env");
1211
const { NixClap } = require("nix-clap");
1312

@@ -479,6 +478,9 @@ because value type ${vtype} is unknown and no value.item`)
479478
tty = spawn = true;
480479
}
481480

481+
// Lazy require unwrap-npm-cmd to avoid requiring it at module load time
482+
// This ensures it's built by fynpo bootstrap before it's required
483+
const { unwrapNpmCmd } = require("unwrap-npm-cmd");
482484
const cmd2 = unwrapNpmCmd(cmd, { path: env.PATH });
483485

484486
if (tty || spawn) {

packages/xflight/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"./package.json": "./package.json"
1818
},
1919
"scripts": {
20-
"build": "rm -rf dist-* && nvx tsc --build tsconfig.esm.json && nvx tsc --build tsconfig.cjs.json && nvx ts2mjs --cjs --skip-ts --remove-source dist-cjs",
20+
"build": "rm -rf dist-* && tsc --build tsconfig.esm.json && tsc --build tsconfig.cjs.json && ts2mjs --cjs --skip-ts --remove-source dist-cjs",
2121
"test": "vitest run",
2222
"test:ui": "vitest --ui",
2323
"coverage": "vitest run --coverage"

0 commit comments

Comments
 (0)