Use Lerna? Want to run tests for only the package you’re working on, but with shared dev dependencies? BEHOLD MY BEAUTIFUL ONE LINER!

lerna run --scope "${PWD##*/}" test

Be sure to escape your quotes in JSON!

  • 0
  • 1