Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hashbang/Shebang updated use env; Fixes #CLJS-385

  • Loading branch information...
commit 9ff4de297eba2c6af3f319f302c2c9382312e6fc 1 parent 6da149d
@ohpauleez ohpauleez authored David Nolen committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/clj/cljs/closure.clj
View
2  src/clj/cljs/closure.clj
@@ -856,7 +856,7 @@
(defn add-header [{:keys [hashbang target]} js]
(if (= :nodejs target)
- (str "#!" (or hashbang "/usr/bin/nodejs") "\n" js)
+ (str "#!" (or hashbang "/usr/bin/env node") "\n" js)
js))
(defn build

3 comments on commit 9ff4de2

@skrat

I disagree. What if I need to compile a node.js module to be published via npm? I don't want any shebang at all. Can't preamble be (ab)used for adding shebang for those that need it?

@swannodette
Collaborator

@skrat file an issue in JIRA thanks.

Please sign in to comment.
Something went wrong with that request. Please try again.