MCPcopy Create free account
hub / github.com/TanStack/query / runBuild

Function runBuild

examples/lit/ssr/scripts/dev.mjs:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8const cwd = resolve(dirname(fileURLToPath(import.meta.url)), '..')
9
10function runBuild() {
11 const result = spawnSync(npmCommand, ['run', 'build'], {
12 cwd,
13 stdio: 'inherit',
14 })
15
16 if (result.status !== 0) {
17 process.exit(result.status ?? 1)
18 }
19}
20
21async function run() {
22 runBuild()

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected