MCPcopy Index your code
hub / github.com/continuedev/continue / buildConfigTsWithBinary

Function buildConfigTsWithBinary

core/config/load.ts:721–738  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

719}
720
721async function buildConfigTsWithBinary() {
722 const cmd = [
723 escapeSpacesInPath(getEsbuildBinaryPath()),
724 escapeSpacesInPath(getConfigTsPath()),
725 "--bundle",
726 `--outfile=${escapeSpacesInPath(getConfigJsPath())}`,
727 "--platform=node",
728 "--format=cjs",
729 "--sourcemap",
730 "--external:fetch",
731 "--external:fs",
732 "--external:path",
733 "--external:os",
734 "--external:child_process",
735 ].join(" ");
736
737 execSync(cmd);
738}
739
740async function buildConfigTsWithNodeModule() {
741 const { build } = await import("esbuild");

Callers 1

tryBuildConfigTsFunction · 0.85

Calls 4

getEsbuildBinaryPathFunction · 0.90
getConfigTsPathFunction · 0.90
getConfigJsPathFunction · 0.90
escapeSpacesInPathFunction · 0.85

Tested by

no test coverage detected