Skip to content

[RFC] Should there be an npm module for the dotslash executable? #50

@bolinfest

Description

@bolinfest

Should there be an npm module for DotSlash that contains the dotslash executable for multiple platforms (and/or the npm module fetches the platform-specific dotslash in postinstall, though that could fail in the presence of --ignore-scripts?) so that once that one-time cost is paid, it's easier for other modules in the Node.js ecosystem to distribute executables using DotSlash?

For example, suppose you have a DotSlash file for my-example-tool. Then perhaps the package.json for the my-example-tool module looks something like:

{
  "name": "my-example-tool",
  "bin": {
    "my-example-tool": "dotslash ./my-example-tool-dotslash-file"
  },
  "scripts": {
    "postinstall": "dotslash -- fetch ./my-example-tool-dotslash-file"
  },
  "dependencies": {
    "@meta/dotslash": "0.1.0"
  },
}

@zertosh curious to get your thoughts on this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions