aboutsummaryrefslogtreecommitdiff
path: root/src/api/demo
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/demo')
-rw-r--r--src/api/demo/schema.peechy6
-rw-r--r--src/api/demo/schema.zig12
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);