MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / ensureDist

Function ensureDist

scripts/deploy-prepare.js:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16function ensureDist() {
17 const indexPath = path.join(distDir, 'index.html');
18 if (!fs.existsSync(indexPath)) {
19 throw new Error('dist 目录缺少 index.html,请先运行 npm run build。');
20 }
21}
22
23(function main() {
24 BuildLogger.log('🔧 检查部署前置条件...');

Callers 1

deploy-prepare.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected