Skip to content

Commit 02b7532

Browse files
committed
v1.11.0
1 parent 9f6222d commit 02b7532

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
import { BuildConfig, Target } from "bun";
1+
import { $, BuildConfig, Target } from "bun";
22
import fs from "node:fs/promises";
33

44
const buildDir = "./examples/build";
55
{
66
console.log("Generating declaration file...");
7-
const cmdAArgs: string[] = ["bun", "dts-bundle-generator", "src/asu.ts", "--out-file", `${buildDir}/asu.d.ts`, "--no-check"];
8-
console.log(cmdAArgs.join(" "));
9-
const cmdResult = Bun.spawnSync(cmdAArgs);
10-
if (!cmdResult.success) {
7+
const cmdArgs: string[] = ["bun", "dts-bundle-generator", "src/asu.ts", "--out-file", `${buildDir}/asu.d.ts`, "--no-check"];
8+
const rawCommand: string = cmdArgs.join(" ");
9+
console.log(rawCommand);
10+
const cmdResult = await $`${{ raw: rawCommand }} 2>&1`;
11+
if (cmdResult.exitCode !== 0) {
1112
console.error(`ERROR: DTS generation failed with exit code ${cmdResult.exitCode}`);
12-
console.error(cmdResult.stderr.toString());
13+
console.error(cmdResult.text());
1314
process.exit(1);
1415
}
1516
}

src/assFile/YCbCrMatrix.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)