yalc icon indicating copy to clipboard operation
yalc copied to clipboard

Search for package.json in parent directories

Open RedHatter opened this issue 6 years ago • 4 comments

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.

RedHatter avatar Nov 22 '18 17:11 RedHatter

I don't get the rationale for this? Not sure why the npm/yarn do this?

wclr avatar Nov 22 '18 19:11 wclr

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.

RedHatter avatar Nov 22 '18 19:11 RedHatter

Ok, will add ASAP, if you want to contribute it can be done /src/index.ts readPackageManifest No... it will be more complicated. ;)

wclr avatar Nov 22 '18 19:11 wclr

This will be fixed once #62 is merged. 🎉

aleclarson avatar Dec 30 '18 03:12 aleclarson