Berry: [Feature] Yarn unplug Xxx without adding any "dependenciesMeta"

Created on 27 Aug 2020  路  3Comments  路  Source: yarnpkg/berry

I very appreciated the effort in https://yarnpkg.com/advanced/editor-sdks#caveat. That helps me "Go to Definition" in VS code, which is huge help for me 馃憤

However, when I run the command as following _yarn unplug Xxx_

It will generate dependenciesMeta section in package.json. I considered it might be necessary for VS code to local .d.ts files. But it is not necessary as I removed the dependenciesMeta section and it still works very well. (Please correct me, if I am wrong)

Thus, if _yarn unplug Xxx_ does not generate any section in package.json as well as .png.js with yarn.lock, it will be great. I am sorry about being picky.

enhancement

Most helpful comment

Thank you very much for your comment @merceyz and @arcanis .

I got a brief idea what dependenciesMeta is doing. Thank you again. I am happy to close it as I have some idea to explain it to our team. :)

By the way, I am enjoying Yarn 2 with helpful document in official website . Thank you and your team for all effort.

All 3 comments

But it is not necessary as I removed the dependenciesMeta section and it still works very well. (Please correct me, if I am wrong)

When you remove it then on the next yarn install it wont be unplugged anymore

Thus, if _yarn unplug Xxx_ does not generate any section in package.json as well as .png.js with yarn.lock, it will be great. I am sorry about being picky.

That's something on my roadmap (local-only install settings), but there are some tricky parts that needs to be figured out, so it won't be the case for at least a few months.

Thank you very much for your comment @merceyz and @arcanis .

I got a brief idea what dependenciesMeta is doing. Thank you again. I am happy to close it as I have some idea to explain it to our team. :)

By the way, I am enjoying Yarn 2 with helpful document in official website . Thank you and your team for all effort.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kiprasmel picture kiprasmel  路  3Comments

chrisands picture chrisands  路  3Comments

juanpicado picture juanpicado  路  4Comments

eman1986 picture eman1986  路  4Comments

milichev picture milichev  路  3Comments