Skip to content

Feature suggestion: alternate path separator to '.' #63

Description

@Offirmo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions