MCPcopy
hub / github.com/vuejs/core / run

Function run

scripts/build.js:85–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83run()
84
85async function run() {
86 if (writeSize) fs.mkdirSync(sizeDir, { recursive: true })
87 const removeCache = scanEnums()
88 try {
89 const resolvedTargets = targets.length
90 ? fuzzyMatchTarget(targets, buildAllMatching)
91 : allTargets
92 await buildAll(resolvedTargets)
93 await checkAllSizes(resolvedTargets)
94 if (buildTypes) {
95 await exec(
96 'pnpm',
97 [
98 'run',
99 'build-dts',
100 ...(targets.length
101 ? ['--environment', `TARGETS:${resolvedTargets.join(',')}`]
102 : []),
103 ],
104 {
105 stdio: 'inherit',
106 },
107 )
108 }
109 } finally {
110 removeCache()
111 }
112}
113
114/**
115 * Builds all the targets in parallel.

Callers 1

build.jsFile · 0.70

Calls 5

scanEnumsFunction · 0.90
fuzzyMatchTargetFunction · 0.90
execFunction · 0.90
buildAllFunction · 0.85
checkAllSizesFunction · 0.85

Tested by

no test coverage detected