Skip to content

Commit 3737f7a

Browse files
committed
feat(bundleConfigPack): now returns { data, hash }
1 parent d9b7d30 commit 3737f7a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rocket/bundle.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ export async function bundleConfigPack(options: bundleConfigPackOptions) {
7676
fuelDir,
7777
referencedFuels,
7878
})
79+
const hash = await createSha256(data)
7980
await mkdir(dirname(outputPath), { recursive: true })
8081
await writeFile(outputPath, data)
8182

82-
logger.success(`🚀 Bundled: "${outputPath}", sha256: "${await createSha256(data)}"`)
83+
logger.success(`🚀 Bundled: "${outputPath}", sha256: "${hash}"`)
84+
return { data, hash }
8385
}
8486

8587
interface createZipBundleOptions {

0 commit comments

Comments
 (0)