Skip to content

Commit 5bf0a78

Browse files
committed
fix: unblock standalone npm package verification
1 parent 90e5a87 commit 5bf0a78

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"packageManager": "bun@1.3.10",
77
"bin": {
8-
"hunk": "./dist/npm/main.js"
8+
"hunk": "dist/npm/main.js"
99
},
1010
"files": [
1111
"dist/npm",

scripts/check-pack.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bun
22

3+
import { existsSync } from "node:fs";
4+
35
interface PackedFile {
46
path: string;
57
size: number;
@@ -71,4 +73,8 @@ if (pack.name !== "hunkdiff") {
7173
throw new Error(`Expected npm package name to be hunkdiff, got ${pack.name}.`);
7274
}
7375

76+
console.log(`Verified npm pack output for ${pack.name}@${pack.version} (${pack.entryCount} files).`);
77+
npm package name to be hunkdiff, got ${pack.name}.`);
78+
}
79+
7480
console.log(`Verified npm pack output for ${pack.name}@${pack.version} (${pack.entryCount} files).`);

0 commit comments

Comments
 (0)