MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / runBundleStep

Function runBundleStep

apps/kimi-code/scripts/native/01-bundle.mjs:11–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const buildVisAssetPath = resolve(import.meta.dirname, '..', 'build-vis-asset.mjs');
10
11export async function runBundleStep() {
12 // Generate the embedded `kimi vis` web asset before bundling. The native
13 // tsdown run here never goes through the npm `prebuild` lifecycle, so the
14 // generated module must be produced explicitly first or the bundle would
15 // miss it (npm builds get it via the `prebuild` script).
16 await run(process.execPath, [buildVisAssetPath]);
17 await run(process.execPath, [tsdownCliPath, '--config', 'tsdown.native.config.ts']);
18 await run(process.execPath, [checkBundlePath]);
19}
20
21if (import.meta.url === `file://${process.argv[1]}`) {
22 await runBundleStep();

Callers 2

build.mjsFile · 0.90
01-bundle.mjsFile · 0.85

Calls 1

runFunction · 0.90

Tested by

no test coverage detected