Skip to content

Commit

Permalink
write bundle path to file.
Browse files Browse the repository at this point in the history
  • Loading branch information
haikyuu committed Mar 6, 2024
1 parent b5f4833 commit eaea5f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/imba/bin/imba.imba
Expand Up @@ -273,6 +273,9 @@ def run entry, o, extras
let out
out = await bundle.build! unless o.vite

if const p = o.writeBundlePathTo
try nfs.writeFileSync(p, bundle.outdir)

if o.vite
let Vite = await import("vite")
if o.command == 'preview'
Expand Down Expand Up @@ -435,6 +438,7 @@ def common cmd
.option("--assets-dir <url>", "Base dir for assets","assets")
.option("--web","Build entrypoints for the browser")
.option("--esm","Output module files")
.option("--writeBundlePathTo <url>", "Write bundle path to a file")

common(cli.command('run [script]', { isDefault: true }).description('Imba'))
.option("-i, --instances [count]", "Number of instances to start",fmt.i,1)
Expand Down

0 comments on commit eaea5f5

Please sign in to comment.