observing/pre-commit

Can we suppress the npm run output ?

Raynos opened this issue · 3 comments

Some IDEs that do commits will break if git commit outputs random NPM related output.

We could fix this in IDEs but its simpler to fix here.

@Raynos Do you want to suppress the full output and just have it return an exit code instead? I could implement an:

{
  "pre-commit-silence": true 
}

option in the package.json

@3rd-Eden

i'd be nice to suppress stdout & stderr if exit code is 0 and only suppress stdout if exit code is 1.

I think printing to stderr if the pre-commit hook fails is fair game.

Closing this as it's now possible to silence the output