From 8629f863325d8d9af7a35ce2a832974113aa0583 Mon Sep 17 00:00:00 2001 From: rozetko Date: Fri, 19 Aug 2022 15:14:08 +0300 Subject: [PATCH] shabang to bin --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 2cd6b25..cee3958 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,3 +1,4 @@ +const webpack = require('webpack'); const path = require('path'); @@ -12,6 +13,9 @@ module.exports = { path: path.resolve(__dirname, './bin'), filename: 'tsdb-kit.js' }, + plugins: [ + new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true }), + ], resolve: { extensions: ['.ts', '.js'], },