aboutsummaryrefslogtreecommitdiff
path: root/src/cli/build_command.zig
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-04-10 11:14:30 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-04-10 11:58:19 -0700
commitce89372ebdb4ead337b32975886735a44e857b7a (patch)
treedb7c0e89724be8a8eb1ee82f305e8adb4cf57638 /src/cli/build_command.zig
parent7a310b4c310bb727e455bc82a51d26d5a29ec621 (diff)
downloadbun-ce89372ebdb4ead337b32975886735a44e857b7a.tar.gz
bun-ce89372ebdb4ead337b32975886735a44e857b7a.tar.zst
bun-ce89372ebdb4ead337b32975886735a44e857b7a.zip
run files with non-js extensions
Diffstat (limited to 'src/cli/build_command.zig')
-rw-r--r--src/cli/build_command.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli/build_command.zig b/src/cli/build_command.zig
index 1b8e5c632..6b2a6761e 100644
--- a/src/cli/build_command.zig
+++ b/src/cli/build_command.zig
@@ -54,6 +54,12 @@ pub const BuildCommand = struct {
this_bundler.options.code_splitting = ctx.bundler_options.code_splitting;
this_bundler.resolver.opts.code_splitting = ctx.bundler_options.code_splitting;
+ if (this_bundler.options.entry_points.len > 1 and ctx.bundler_options.outdir.len == 0) {
+ Output.prettyErrorln("<red>error<r>: must use \"outdir\" when there are multiple input files", .{});
+ Global.exit(1);
+ return;
+ }
+
this_bundler.configureLinker();
// This step is optional