aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-16 23:23:33 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-07-16 23:23:33 -0700
commit2a02f3d66922a04b376de0594d41b9d6f00247a6 (patch)
tree64a8b415f340277026734da5c6b155b6490cac00
parent75213aad37b4d5989be9bf06208573e1fe0c186a (diff)
downloadbun-2a02f3d66922a04b376de0594d41b9d6f00247a6.tar.gz
bun-2a02f3d66922a04b376de0594d41b9d6f00247a6.tar.zst
bun-2a02f3d66922a04b376de0594d41b9d6f00247a6.zip
Add `--smol` to bunfig
-rw-r--r--src/bunfig.zig12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/bunfig.zig b/src/bunfig.zig
index 1244f52b8..7302907d9 100644
--- a/src/bunfig.zig
+++ b/src/bunfig.zig
@@ -201,6 +201,13 @@ pub const Bunfig = struct {
}
}
+ if (comptime cmd == .RunCommand or cmd == .AutoCommand) {
+ if (json.get("smol")) |expr| {
+ try this.expect(expr, .e_boolean);
+ this.ctx.runtime_options.smol = expr.data.e_boolean.value;
+ }
+ }
+
if (comptime cmd == .DevCommand or cmd == .AutoCommand) {
if (json.get("dev")) |expr| {
if (expr.get("disableBunJS")) |disable| {
@@ -230,6 +237,11 @@ pub const Bunfig = struct {
if (test_.get("preload")) |expr| {
try this.loadPreload(allocator, expr);
}
+
+ if (test_.get("smol")) |expr| {
+ try this.expect(expr, .e_boolean);
+ this.ctx.runtime_options.smol = expr.data.e_boolean.value;
+ }
}
}