I only noticed this today when changes in globby starting throwing path errors, so might have been there a while and I just didn't notice.
Under node v11, working in an app with the following pattern:
./project/app/
./project/shared-lib-1/
./project/shared-lib-2/
app-root-path is used in each shared lib. When these are installed with npm install, the libs correctly report the app's root path. In development, when the libs are linked with npm link, app-root-path reports the root path of the lib module, not the app.
I only noticed this today when changes in
globbystarting throwing path errors, so might have been there a while and I just didn't notice.Under node v11, working in an app with the following pattern:
app-root-pathis used in each shared lib. When these are installed withnpm install, the libs correctly report the app's root path. In development, when the libs are linked withnpm link,app-root-pathreports the root path of the lib module, not the app.