()
| 9 | const buildVisAssetPath = resolve(import.meta.dirname, '..', 'build-vis-asset.mjs'); |
| 10 | |
| 11 | export 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 | |
| 21 | if (import.meta.url === `file://${process.argv[1]}`) { |
| 22 | await runBundleStep(); |
no test coverage detected