0

I have a python app and angular app in my lerna monorepo. I have husky precommit hook (legacy) set up for the angular app as well as a python precommit hook. The precommit hook runs my command npm run lint:fix. After I committed, while it was running I pressed ctrl + c. It printed out a number of errors. Now when I try to commit I get the following error:

✖ npm run lint:fix: ERR! lerna Unknown argument: C:/Work/sandbox/migrations/cyto-explorer/packages/plots-explorer/projects/feature-manager/src/lib/services/api/features-api/features-api.service.ts

Here is my script in the parent directory's package.json "lint:fix": "lerna run --scope @myorg/mpyrpoj lint:fix"

Here is the script in the child package: "lint:fix": "ng lint -- --fix && npm run prettier:fix"

I tried searching for cache to delete but didn't find anything useful. Why did this break my precommit and how do I fix it?

afriedman111
  • 1,925
  • 4
  • 25
  • 42

0 Answers0