MCPcopy Create free account
hub / github.com/bilibili/http-service / build

Function build

scripts/init.ts:9–16  ·  view source on GitHub ↗
(pkg: string)

Source from the content-addressed store, hash-verified

7const rootDir = 'packages/'
8
9function build(pkg: string) {
10 try {
11 execSync(`pnpm run build`, { stdio: 'inherit', cwd: resolve(rootDir, pkg) })
12 console.log(chalk.green(`构建成功: ${pkg}`))
13 } catch (error) {
14 console.log(chalk.red(`构建失败: ${pkg}`))
15 }
16}
17
18async function main() {
19 const { install } = await inquirer.prompt([

Callers 1

mainFunction · 0.85

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected