@forwardimpact/libcodegen
Advanced tools
+2
-2
| { | ||
| "name": "@forwardimpact/libcodegen", | ||
| "version": "0.1.55", | ||
| "version": "0.1.56", | ||
| "description": "Protobuf code generation — keep types in sync with proto definitions without hand-writing.", | ||
@@ -54,3 +54,3 @@ "keywords": [ | ||
| "mustache": "^4.2.0", | ||
| "protobufjs": "^7.5.8", | ||
| "protobufjs": "^7.6.1", | ||
| "protobufjs-cli": "1.2.2" | ||
@@ -57,0 +57,0 @@ }, |
+8
-0
@@ -61,2 +61,10 @@ import { createRequire } from "node:module"; | ||
| 'import $protobuf from "protobufjs/minimal.js";', | ||
| ) | ||
| // Statically bind protobufjs's $util.Long to the `long` package. Without | ||
| // this, `bun build --compile` tree-shakes `long` (only reached via | ||
| // protobufjs's lazy require) and module-init crashes on int64 prototype | ||
| // defaults like `Span.prototype.start_time_unix_nano = $util.Long.fromBits(...)`. | ||
| .replace( | ||
| /(import \$protobuf from "protobufjs\/minimal\.js";)/, | ||
| '$1\nimport Long from "long";\n$protobuf.util.Long = Long;\n$protobuf.configure();', | ||
| ); | ||
@@ -63,0 +71,0 @@ |
58367
0.87%1044
0.77%Updated