-
Notifications
You must be signed in to change notification settings - Fork 10
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
Can't run as a binary #44
Comments
Good idea. Originally, the primary integration use-case for this Right now the NodeJS CLI is invoked from an NPM task/script, or a Procfile script (depending on the target cloud/build service): r2-streamer-js/package-scripts.cson Lines 263 to 265 in 04d02a0
Line 1 in 04d02a0
There are variants of the NPM script to automatically setup debug verbosity, and various other environment variables: r2-streamer-js/package-scripts.cson Lines 267 to 285 in 04d02a0
The main code entry point is this TypeScript file: ...which gets transpiled to the supported ECMAScript variants (e.g. |
...alternatively the build system could patch the generated |
Same issue with |
Here's an example of a project where the Note that the |
I'm trying to use this in the webpub-viewer project to replace the in-tree copy.
I added
r2-streamer-js
as adevDependency
and thought I could use it as a binary in one of my project's scripts.It is not working unfortunately.
I believe you need to prepend the declared "bin" script with a node "shebang".
Example: https://github.com/isaacs/rimraf/blob/master/bin.js (Line 1)
After manually adding
#!/usr/bin/env node
to the dist bin script it works as expected.The text was updated successfully, but these errors were encountered: