({ appRoot, target })
| 105 | } |
| 106 | |
| 107 | export async function collectWebAssets({ appRoot, target }) { |
| 108 | const buildCommand = |
| 109 | 'pnpm --filter @moonshot-ai/kimi-web run build && pnpm --filter @moonshot-ai/kimi-code run build'; |
| 110 | return collectAssetRoot({ |
| 111 | appRoot, |
| 112 | target, |
| 113 | root: WEB_ASSETS_DIR, |
| 114 | requiredFile: 'index.html', |
| 115 | missingMessage: `Kimi web build output was not found at ${resolve(appRoot, WEB_ASSETS_DIR)}. Run \`${buildCommand}\` before building native SEA assets. App root: ${appRoot}`, |
| 116 | assetKey: webAssetKey, |
| 117 | }); |
| 118 | } |
no test coverage detected