aboutsummaryrefslogtreecommitdiff
path: root/src/api/schema.js
diff options
context:
space:
mode:
authorGravatar Tiago Teixeira <tiagocmtex@gmail.com> 2023-06-26 01:43:39 +0200
committerGravatar GitHub <noreply@github.com> 2023-06-25 16:43:39 -0700
commitd8817c2d32a237440a7677622ba351aa95f47c22 (patch)
tree7dd24039b7c56f0e59b14e3b3f2a6debc2ed8985 /src/api/schema.js
parent15ac08474ef0b18b94bbf4863b2497e18e968379 (diff)
downloadbun-d8817c2d32a237440a7677622ba351aa95f47c22.tar.gz
bun-d8817c2d32a237440a7677622ba351aa95f47c22.tar.zst
bun-d8817c2d32a237440a7677622ba351aa95f47c22.zip
Add support for install with --frozen-lockfile (#3365)
* Add support for install with --frozen-lockfile * Add test * Add test for frozenLockfile in config file
Diffstat (limited to 'src/api/schema.js')
-rw-r--r--src/api/schema.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/schema.js b/src/api/schema.js
index c4f2400ed..270eb9a62 100644
--- a/src/api/schema.js
+++ b/src/api/schema.js
@@ -3044,6 +3044,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");
}
@@ -3164,6 +3168,12 @@ function encodeBunInstall(message, bb) {
bb.writeByte(18);
bb.writeString(value);
}
+
+ var value = message["frozen_lockfile"];
+ if (value != null) {
+ bb.writeByte(19);
+ bb.writeByte(value);
+ }
bb.writeByte(0);
}