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

Single JS file release has no shebang line #888

Closed
rjmunro opened this issue Oct 12, 2016 · 1 comment
Closed

Single JS file release has no shebang line #888

rjmunro opened this issue Oct 12, 2016 · 1 comment

Comments

@rjmunro
Copy link
Contributor

rjmunro commented Oct 12, 2016

Feature request:

What is the current behavior?

No shebang line (like #!/usr/bin/env node) is added to yarn-[version].js build, e.g. yarn-0.15.0.js from https://github.com/yarnpkg/yarn/releases

What is the expected behavior?

There should be a shebang line so that the file can be run directly from a terminal after setting appropriate permissions (e.g. chmod +x yarn.js).

This was inspired by #878 - it would enable a very minimal install for things like docker containers:

curl https://github.com/yarnpkg/yarn/releases/download/v0.15.0/yarn-0.15.0.js > /usr/local/bin/yarn
chmod +x /usr/local/bin/yarn

It would also be good if the file was available minified.

@Daniel15
Copy link
Member

The bundle is built here: https://github.com/yarnpkg/yarn/blob/master/scripts/build-webpack.js. Would you like to try and add this and send a pull request? 😄

it would enable a very minimal install for things like docker containers

There's an issue talking about Docker here: #749. I'd suggest using the Debian or CentOS package if possible in your environment, it's almost as easy as using the combined .js file.

curl https://github.com/yarnpkg/yarn/releases/download/v0.15.0/yarn-0.15.0.js > /usr/local/bin/yarn
Please use https://yarnpkg.com/downloads/0.15.0/yarn-0.15.0.js as the URL.

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