Skip to content

[BUG] 2 of 3 man page configuration options unsupported #25

@Zordrak

Description

@Zordrak

What / Why

Firstly please forgive any assertions I make that are completely wrong - I'm doing my best to understand something that is completely alien to me.

https://docs.npmjs.com/cli/v7/configuring-npm/package-json states 3 ways to add a man page in a package.json:

I do not know whether the intention is for directories.man to be supported by bin-links or as a process managed by npm or Arborist that would interrogate the directory and convert its contents into a man Array property before sending it to bin-links.

Giving the benefit of the doubt that it is the latter - I would expect per the documentation for bin-links to support either a String or an Array for a man property, however it currently only supports an Array:

if (manTarg && pkg.man && Array.isArray(pkg.man) && pkg.man.length) {

I do not know the progeny of this toolset and what begat what so as to know if this is a feature request for string support, or a bug request that expected string support is missing - but it seems to be missing either way.

References

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