aboutsummaryrefslogtreecommitdiff
path: root/src/api/demo
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/demo')
-rw-r--r--src/api/demo/schema.d.ts1
-rw-r--r--src/api/demo/schema.js4
-rw-r--r--src/api/demo/schema.peechy1
-rw-r--r--src/api/demo/schema.zig10
4 files changed, 16 insertions, 0 deletions
diff --git a/src/api/demo/schema.d.ts b/src/api/demo/schema.d.ts
index 6f3949c77..e8a6994e7 100644
--- a/src/api/demo/schema.d.ts
+++ b/src/api/demo/schema.d.ts
@@ -681,6 +681,7 @@ export interface BunInstall {
disable_manifest_cache?: boolean;
global_dir?: string;
global_bin_dir?: string;
+ frozen_lockfile?: boolean;
}
export declare function encodeStackFrame(message: StackFrame, bb: ByteBuffer): void;
diff --git a/src/api/demo/schema.js b/src/api/demo/schema.js
index 7bdd13b65..d23d64a14 100644
--- a/src/api/demo/schema.js
+++ b/src/api/demo/schema.js
@@ -2992,6 +2992,10 @@ function decodeBunInstall(bb) {
result["global_bin_dir"] = bb.readString();
break;
+ case 19:
+ result["frozen-lockfile"] = !!bb.readByte();
+ break;
+
default:
throw new Error("Attempted to parse invalid message");
}
diff --git a/src/api/demo/schema.peechy b/src/api/demo/schema.peechy
index 09d3c1fac..e495bb9c0 100644
--- a/src/api/demo/schema.peechy
+++ b/src/api/demo/schema.peechy
@@ -550,4 +550,5 @@ message BunInstall {
bool disable_manifest_cache = 16;
string global_dir = 17;
string global_bin_dir = 18;
+ string frozen_lockfile = 19;
}
diff --git a/src/api/demo/schema.zig b/src/api/demo/schema.zig
index d57a5c725..a6de100de 100644
--- a/src/api/demo/schema.zig
+++ b/src/api/demo/schema.zig
@@ -2728,6 +2728,9 @@ pub const Api = struct {
/// global_bin_dir
global_bin_dir: ?[]const u8 = null,
+ /// frozen_lockfile
+ frozen_lockfile: ?bool = null,
+
pub fn decode(reader: anytype) anyerror!BunInstall {
var this = std.mem.zeroes(BunInstall);
@@ -2791,6 +2794,9 @@ pub const Api = struct {
18 => {
this.global_bin_dir = try reader.readValue([]const u8);
},
+ 19 => {
+ this.frozen_lockfile = try reader.readValue(bool);
+ },
else => {
return error.InvalidMessage;
},
@@ -2872,6 +2878,10 @@ pub const Api = struct {
try writer.writeFieldID(18);
try writer.writeValue(@TypeOf(global_bin_dir), global_bin_dir);
}
+ if (this.frozen_lockfile) |frozen_lockfile| {
+ try writer.writeFieldID(19);
+ try writer.writeInt(@as(u8, @boolToInt(frozen_lockfile)));
+ }
try writer.endMessage();
}
};