Document exports
in package.json's (for the regular use and for within publishConfig
)
#6243
Open
1 of 2 tasks
Labels
documentation
This issue or pull request is about the documentation
enhancement
New feature or request
Describe the user story
publishConfig
can be used to override some top level fields on publish.According to https://yarnpkg.com/configuration/manifest#publishConfig, you can only set in it:
access
bin
browser
executableFiles
main
module
registry
type
But not
exports
. To note:exports
field replacesmain
,module
, andtype
so it'd make sense to support itAccording to #5874,
exports
does work in here, but I haven't tested it myself.Describe the solution you'd like
Support
exports
inpublishConfig
And if it's already supported, document it
Describe the drawbacks of your solution
None
Describe alternatives you've considered
None
The text was updated successfully, but these errors were encountered: