create-canary 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +14 -13
- package/package.json +5 -2
package/dist/cli.js
CHANGED
|
@@ -9917,9 +9917,6 @@ var require_jsx_runtime = __commonJS({
|
|
|
9917
9917
|
}
|
|
9918
9918
|
});
|
|
9919
9919
|
|
|
9920
|
-
// src/cli.tsx
|
|
9921
|
-
import { spawn } from "node:child_process";
|
|
9922
|
-
|
|
9923
9920
|
// ../../node_modules/.pnpm/ink@5.2.1_@types+react@18.3.30_react@18.3.1/node_modules/ink/build/render.js
|
|
9924
9921
|
import { Stream } from "node:stream";
|
|
9925
9922
|
import process12 from "node:process";
|
|
@@ -16551,6 +16548,20 @@ var import_react50 = __toESM(require_react(), 1);
|
|
|
16551
16548
|
var import_react51 = __toESM(require_react(), 1);
|
|
16552
16549
|
var cursor3 = source_default.inverse(" ");
|
|
16553
16550
|
|
|
16551
|
+
// src/run.ts
|
|
16552
|
+
import { spawn } from "node:child_process";
|
|
16553
|
+
function runInherit(cmd) {
|
|
16554
|
+
return new Promise((resolve) => {
|
|
16555
|
+
const child = process.platform === "win32" ? spawn([cmd.file, ...cmd.args].join(" "), {
|
|
16556
|
+
stdio: "inherit",
|
|
16557
|
+
windowsHide: true,
|
|
16558
|
+
shell: true
|
|
16559
|
+
}) : spawn(cmd.file, cmd.args, { stdio: "inherit", windowsHide: true });
|
|
16560
|
+
child.on("error", () => resolve(1));
|
|
16561
|
+
child.on("exit", (code) => resolve(code ?? 1));
|
|
16562
|
+
});
|
|
16563
|
+
}
|
|
16564
|
+
|
|
16554
16565
|
// src/cli.tsx
|
|
16555
16566
|
var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
|
|
16556
16567
|
function buildSteps() {
|
|
@@ -16581,16 +16592,6 @@ function buildSteps() {
|
|
|
16581
16592
|
}
|
|
16582
16593
|
];
|
|
16583
16594
|
}
|
|
16584
|
-
function runInherit(cmd) {
|
|
16585
|
-
return new Promise((resolve) => {
|
|
16586
|
-
const child = spawn(cmd.file, cmd.args, {
|
|
16587
|
-
stdio: "inherit",
|
|
16588
|
-
windowsHide: true
|
|
16589
|
-
});
|
|
16590
|
-
child.on("error", () => resolve(1));
|
|
16591
|
-
child.on("exit", (code) => resolve(code ?? 1));
|
|
16592
|
-
});
|
|
16593
|
-
}
|
|
16594
16595
|
function SelectStep(props) {
|
|
16595
16596
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box_default, { flexDirection: "column", children: [
|
|
16596
16597
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Box_default, { flexDirection: "column", marginBottom: 1, children: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-canary",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Set up canary — browser automation + recorded QA sessions. Run `npm create canary`.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,12 +39,15 @@
|
|
|
39
39
|
"react": "^18.3.1",
|
|
40
40
|
"tsx": "^4.19.2",
|
|
41
41
|
"typescript": "^5.8.0",
|
|
42
|
+
"vitest": "^4.1.0",
|
|
42
43
|
"@usecanary/config": "0.0.0"
|
|
43
44
|
},
|
|
44
45
|
"scripts": {
|
|
45
46
|
"build": "node scripts/build.mjs",
|
|
46
47
|
"dev": "tsx src/cli.tsx",
|
|
47
48
|
"compile": "tsc --noEmit",
|
|
48
|
-
"
|
|
49
|
+
"test": "vitest run",
|
|
50
|
+
"test:watch": "vitest",
|
|
51
|
+
"clean": "rm -rf dist coverage .turbo"
|
|
49
52
|
}
|
|
50
53
|
}
|