Skip to content

Commit

Permalink
Fix build (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy authored Jul 12, 2024
1 parent 6b9c2a9 commit d645048
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,22 @@ await Promise.all([
}),
]);

Bun.spawn([
"bunx",
"dts-bundle-generator",
"-o",
"dist/index.d.ts",
"src/index.ts",
"--no-check",
"--export-referenced-types",
"false",
]);
Bun.spawn(
[
"bunx",
"dts-bundle-generator",
"-o",
"dist/index.d.ts",
"src/index.ts",
"--no-check",
"--export-referenced-types",
"false",
],
{
stdout: "inherit",
stderr: "inherit",
async onExit(_, exitCode) {
if (exitCode !== 0) process.exit(exitCode);
},
},
);
2 changes: 1 addition & 1 deletion src/cbor/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function encode<Partial extends boolean = false>(

if (value instanceof Gap) {
if (fillsMap.has(value)) {
inner(fillsMap.get(value), w);
inner(fillsMap.get(value));
} else {
if (!options.partial) throw new CborPartialDisabled();
w.chunk(value);
Expand Down

0 comments on commit d645048

Please sign in to comment.