MCPcopy Create free account
hub / github.com/continuedev/continue / bundleBinary

Function bundleBinary

binary/utils/bundle-binary.js:83–99  ·  view source on GitHub ↗

* @param {string} target the platform to bundle for

(target)

Source from the content-addressed store, hash-verified

81 * @param {string} target the platform to bundle for
82 */
83async function bundleBinary(target) {
84 const child = fork(__filename, { stdio: "inherit" });
85 child.send({
86 payload: {
87 target,
88 },
89 });
90 return new Promise((resolve, reject) => {
91 child.on("message", (msg) => {
92 if (msg.error) {
93 reject();
94 } else {
95 resolve();
96 }
97 });
98 });
99}
100
101module.exports = {
102 bundleBinary,

Callers 1

build.jsFile · 0.85

Calls 2

sendMethod · 0.65
onMethod · 0.65

Tested by

no test coverage detected