diff options
author | 2023-04-29 00:08:48 -0400 | |
---|---|---|
committer | 2023-04-28 21:08:48 -0700 | |
commit | 96e113f41c0dae1ccd58c6d1e3b6dd2c54769636 (patch) | |
tree | 1f8c0b88d2daa925abff610f4a458d744bc0bf36 /src/api/demo | |
parent | bc0c0f7d203567a5538f271a3bc37c450eeaee46 (diff) | |
download | bun-96e113f41c0dae1ccd58c6d1e3b6dd2c54769636.tar.gz bun-96e113f41c0dae1ccd58c6d1e3b6dd2c54769636.tar.zst bun-96e113f41c0dae1ccd58c6d1e3b6dd2c54769636.zip |
bundler tests: rest of default.test.ts and starting jsx tests (#2765)
Diffstat (limited to 'src/api/demo')
-rw-r--r-- | src/api/demo/schema.peechy | 6 | ||||
-rw-r--r-- | src/api/demo/schema.zig | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/api/demo/schema.peechy b/src/api/demo/schema.peechy index 59cb1edf5..09d3c1fac 100644 --- a/src/api/demo/schema.peechy +++ b/src/api/demo/schema.peechy @@ -107,7 +107,7 @@ smol ResolveMode { bundle = 4; } -smol Platform { +smol Target { browser = 1; node = 2; bun = 3; @@ -326,7 +326,7 @@ message TransformOptions { LoaderMap loaders = 13; string[] main_fields = 14; - Platform platform = 15; + Target target = 15; bool serve = 16; @@ -550,4 +550,4 @@ message BunInstall { bool disable_manifest_cache = 16; string global_dir = 17; string global_bin_dir = 18; -}
\ No newline at end of file +} diff --git a/src/api/demo/schema.zig b/src/api/demo/schema.zig index e4871b902..748422ed8 100644 --- a/src/api/demo/schema.zig +++ b/src/api/demo/schema.zig @@ -792,7 +792,7 @@ pub const Api = struct { } }; - pub const Platform = enum(u8) { + pub const Target = enum(u8) { _none, /// browser browser, @@ -1708,8 +1708,8 @@ pub const Api = struct { /// main_fields main_fields: []const []const u8, - /// platform - platform: ?Platform = null, + /// target + target: ?Target = null, /// serve serve: ?bool = null, @@ -1796,7 +1796,7 @@ pub const Api = struct { this.main_fields = try reader.readArray([]const u8); }, 15 => { - this.platform = try reader.readValue(Platform); + this.target = try reader.readValue(Target); }, 16 => { this.serve = try reader.readValue(bool); @@ -1896,9 +1896,9 @@ pub const Api = struct { try writer.writeFieldID(14); try writer.writeArray([]const u8, main_fields); } - if (this.platform) |platform| { + if (this.target) |target| { try writer.writeFieldID(15); - try writer.writeEnum(platform); + try writer.writeEnum(target); } if (this.serve) |serve| { try writer.writeFieldID(16); |