MCPcopy Create free account
hub / github.com/kentcdodds/kcd-scripts / go

Function go

src/scripts/pre-commit.js:20–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 : []
19
20function go() {
21 let result
22
23 result = spawn.sync(resolveBin('lint-staged'), [...config, ...args], {
24 stdio: 'inherit',
25 })
26
27 if (result.status !== 0) return result.status
28
29 result = spawn.sync('npm', ['run', 'validate'], {
30 stdio: 'inherit',
31 })
32
33 return result.status
34}
35
36process.exit(go())

Callers 1

pre-commit.jsFile · 0.85

Calls 1

resolveBinFunction · 0.85

Tested by

no test coverage detected