From 359d2726ca603857911e20f73c562a94888e09ad Mon Sep 17 00:00:00 2001 From: Samuel Kopp <62482066+boywithkeyboard@users.noreply.github.com> Date: Sun, 20 Aug 2023 02:46:00 +0200 Subject: [PATCH] fix(cli): bundle cmd (#188) --- cli/commands/bundle.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/commands/bundle.ts b/cli/commands/bundle.ts index 1575754..c52a9d9 100644 --- a/cli/commands/bundle.ts +++ b/cli/commands/bundle.ts @@ -6,6 +6,7 @@ import { brightYellow, gray, } from 'https://deno.land/std@0.198.0/fmt/colors.ts' +import { ensureFile } from 'https://deno.land/std@0.198.0/fs/ensure_file.ts' import { join } from 'https://deno.land/std@0.198.0/path/mod.ts' import byte from 'https://deno.land/x/byte@v3.3.0/byte.ts' import * as esbuild from 'https://deno.land/x/esbuild@v0.19.2/mod.js' @@ -118,8 +119,10 @@ async function bundle({ options = ['--import-map', 'imports.json'] } + ensureFile(output) + const cmd = new Deno.Command('deno', { - args: ['bundle', '-q', ...options, input, output], + args: ['bundle', '-q', '--unstable', ...options, input, output], cwd, })