-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I'm trying to auto-generate package.json files:
The new "exports" syntax has dots .
in the key itself.
I tried using pathval
and obviously couldn't set a deep export entry: setPathValue(pkg_json, 'exports..', './index.js');
I ended up coding my own utility which allows an alternate separator |
and will automatically pick it if the key starts with it: setPathValue(pkg_json, '|exports|.', './index.js');
I understand that my use case may not be the one from this package.
This is a friendly sharing + helping future users. Feel free to mark this issue as resolved.
Metadata
Metadata
Assignees
Labels
No labels