yarnpkg / website

Yarn package manager website
https://classic.yarnpkg.com
431 stars 974 forks source link

Modify the structure of the package.json file #1178

Closed jircdev closed 1 year ago

jircdev commented 1 year ago

Nowadays the package.json created by yarn generates the "main" entry point. I think could be a good (and necessary) idea to add "exports" entry.

The exports entry replaces/overwrites the "main" entry points and gives more control over what the package exposes or not. Also, the "exports" entry is used to define subpackage settings in different situations as environments or platforms to use. Nowadays the package.json created by yarn generates the "main" entry point. I think could be a good (and necessary) idea to add "exports" entry.

The exports entry replaces/overwrites the "main" entry points and gives more control over what the package exposes or not. Also, the "exports" entry is used to define subpackage settings in different situations as environments or platform

Haroenv commented 1 year ago

This is something that can be opened on the yarn/berry repository, not the website :)