yalc
yalc copied to clipboard
Search for package.json in parent directories
Both yarn and npm will search for a package.json in parent directories if not found in the cwd. Yalc should follow this same practice.
Say I'm in myproject/src, yarn build will execute fine but yalc push will throw Could not read myproject/src/package.json.
I don't get the rationale for this? Not sure why the npm/yarn do this?
So that if your doing things deep inside of your source tree you don't have to cd all the way back to the root to build, then cd all the way back down to continue.
Ok, will add ASAP, if you want to contribute it can be done /src/index.ts readPackageManifest No... it will be more complicated. ;)
This will be fixed once #62 is merged. 🎉