observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 153 forks source link

How to make pre-commit works just with npm ci? #154

Open DiegoFelipe opened 3 years ago

DiegoFelipe commented 3 years ago

For me it only works if I install with

npm install --save-dev pre-commit

If I remove node_modules folder and my package.json file is with pre-commit under dev dependecies it just doesn't work if I run npm ci again

 "devDependencies": {
    "pre-commit": "^1.2.2",
}