folke / ultra-runner

🏃⛰ Ultra fast monorepo script runner and build tool
https://www.npmjs.com/package/ultra-runner
Apache License 2.0
1.2k stars 32 forks source link

Packages Without a Build Script Shouldn't Account for Changed Dependencies #234

Open GermainBergeron opened 3 years ago

GermainBergeron commented 3 years ago

Hello,

First of all, thanks for the awesome project! It will probably saves us hours of compilation every month 🎉

I have a monorepo that includes some "helpers" packages, installed by all my other packages. Those helpers don't have any build scripts. At first when I ran ultra-runner it detected that those packages had changed even if I didn't modify anything in them so I never hit the cache.

As soon as I added this empty script in my packages, I was able to hit the cache.


"scripts": {
  "build": ""
}

Shouldn't the packages without build script be ignored by dependent packages?