Skip to content

Commit

Permalink
Add node shebang to single JS builds (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
eknkc authored and bestander committed Oct 13, 2016
1 parent c99ff4d commit ecbceeb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/build-webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const compiler = webpack({
loader: 'json',
}],
},
plugins: [
new webpack.BannerPlugin({
banner: "#!/usr/bin/env node",
raw: true
})
],
output: {
filename: `yarn-${version}.js`,
path: path.join(basedir, 'dist'),
Expand Down Expand Up @@ -58,6 +64,12 @@ const compilerLegacy = webpack({
loader: 'json',
}],
},
plugins: [
new webpack.BannerPlugin({
banner: "#!/usr/bin/env node",
raw: true
})
],
output: {
filename: `yarn-legacy-${version}.js`,
path: path.join(basedir, 'dist'),
Expand Down

0 comments on commit ecbceeb

Please sign in to comment.