Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does node_deb.entrypoints.cli support more than 1 file? #107

Open
gyDBD opened this issue Jan 12, 2021 · 1 comment
Open

Does node_deb.entrypoints.cli support more than 1 file? #107

gyDBD opened this issue Jan 12, 2021 · 1 comment

Comments

@gyDBD
Copy link

gyDBD commented Jan 12, 2021

My node js package has two clis, which is in lib/cli/a-commend.js and lib/cli/b-commend.js
However I didn't find any docs about who to define two files for node_deb.entrypoints.cli
I've tried

  "node_deb": {
    "init": "none",
    "package_name": "name",
    "executable_name": "name",
    "entrypoints": {
      "cli": "./lib/cli/*.js"
    }
  }

and

  "node_deb": {
    "init": "none",
    "package_name": "name",
    "executable_name": "name",
    "entrypoints": {
      "cli": ["./lib/cli/a-commend.js", "./lib/cli/b-commend.js"] 
    }
  }

Both not working. Could you help answer whether two clis are supported. And if yes, how to config that?

@heartsucker
Copy link
Owner

Both are not supported. Realistically this project needs to be converted to being node a native because the tremendous headache of doing this in bash makes this very difficult.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants