berry icon indicating copy to clipboard operation
berry copied to clipboard

[Feature] Better way to link, only for development?

Open kevin-lindsay-1 opened this issue 4 years ago β€’ 1 comments

Wondering if there's a way to link packages during local development that doesn't update the package.json, so that I could .gitignore it, preferably without affecting the existing lockfile.

I'd prefer not to break CI by accidentally having anyone modify resolutions, but there's also the fact that if it the file is ignored by git, it may end up making it hard to know whether or not you're using a linked instance or the published instance.

Maybe this option already exists, but my intuition tells me that a .yarnlinks.yml or something would be easy enough to add to .gitignore, and a command like yarn link list would make it easy to tell what's linked right now, perhaps hiding the workspace links by default.

kevin-lindsay-1 avatar May 08 '20 20:05 kevin-lindsay-1

@kevin-lindsay-1 Any progress/idea on this? I have the exact same problem here. Want to link just for development, but having resolutions hard set to a local folder in package.json breaks yarn install in other environments different than dev env. Maybe it should be a way to β€œignore” resolutions or having a way to conditionally set the resolution (if the the folder in portal:/path/to/local/folder exists).

brunomacf avatar Jul 05 '22 00:07 brunomacf

npm init @shopify/app@latest

4847832013056622 avatar Apr 28 '23 00:04 4847832013056622