vercel / pkg

Package your Node.js project into an executable
https://npmjs.com/pkg
MIT License
24.29k stars 1.01k forks source link

Multiple entry points #1917

Closed rightaway closed 8 months ago

rightaway commented 1 year ago

https://github.com/vercel/pkg/issues/481 was automatically closed by github actions but there were a lot of people interested in it. Can we have a command line option to specify which entry point to use?

{
    "bin": {
        "entry1": "src/entry1",
        "entry2": "src/entry2"
    }
}
robertsLando commented 1 year ago

PR?

robertsLando commented 1 year ago

BTW what I suggest is to create a src/pkg entrypoint that based on args passed starts entry1 or entry2

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

github-actions[bot] commented 1 year ago

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

rightaway commented 1 year ago

@robertsLando Why is this closed

robertsLando commented 1 year ago

I didn't closed this, it's an automated stale action that does this

VelynM commented 9 months ago

Linking https://github.com/vercel/pkg/issues/805 (Get the output bin name from pkg.bin[name] instead of pkg.name) for relatedness