diff options
author | 2022-02-12 01:23:32 -0800 | |
---|---|---|
committer | 2022-02-12 01:23:32 -0800 | |
commit | 18b1a36d84593ea71bdae9f42d175b96eb7e99d4 (patch) | |
tree | ca08e59d4eba1795455a1c3816689f041da95be8 /src/api/schema.js | |
parent | 89c99700f664cb4e32f9af1bc4b18ef5064129da (diff) | |
download | bun-18b1a36d84593ea71bdae9f42d175b96eb7e99d4.tar.gz bun-18b1a36d84593ea71bdae9f42d175b96eb7e99d4.tar.zst bun-18b1a36d84593ea71bdae9f42d175b96eb7e99d4.zip |
[bun install] Make global bin dir configurable
Diffstat (limited to 'src/api/schema.js')
-rw-r--r-- | src/api/schema.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/api/schema.js b/src/api/schema.js index 2a1fd8c1d..d6dbfe1c3 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -2906,6 +2906,10 @@ function decodeBunInstall(bb) { result["global_dir"] = bb.readString(); break; + case 18: + result["global_bin_dir"] = bb.readString(); + break; + default: throw new Error("Attempted to parse invalid message"); } @@ -3020,6 +3024,12 @@ function encodeBunInstall(message, bb) { bb.writeByte(17); bb.writeString(value); } + + var value = message["global_bin_dir"]; + if (value != null) { + bb.writeByte(18); + bb.writeString(value); + } bb.writeByte(0); } |