Skip to content

Commit

Permalink
#35 add shebang line
Browse files Browse the repository at this point in the history
  • Loading branch information
arekgotfryd committed Jun 17, 2023
1 parent e93fc7a commit 7b6ce9d
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ npm-debug.log
# env variables
.env
# pmarketcli ConfigService test dir
.pmarketcli
.pmarketcli
/dist/src
5 changes: 3 additions & 2 deletions dist/main.js

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pmarket-cli",
"version": "0.7.2",
"version": "0.7.3",
"description": "CLI tool to trade on Polymarket",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -61,6 +61,7 @@
"ts-jest": "28.0.5",
"ts-loader": "9.3.1",
"ts-node": "10.8.2",
"typescript": "4.7.4"
"typescript": "4.7.4",
"webpack-shebang-plugin": "^1.1.8"
}
}
22 changes: 12 additions & 10 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
const path = require('path');
const TerserPlugin = require('terser-webpack-plugin');
const path = require("path");
const TerserPlugin = require("terser-webpack-plugin");
const ShebangPlugin = require('webpack-shebang-plugin');

module.exports = {
entry: './src/main.ts',
mode: 'production',
target: 'node',
entry: "./src/main.ts",
mode: "production",
target: "node",
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.js',
path: path.resolve(__dirname, "dist"),
filename: "main.js",
},
resolve: {
extensions: ['.ts', '.js'],
extensions: [".ts", ".js"],
},
module: {
rules: [
{
test: /\.ts$/,
use: 'ts-loader',
use: "ts-loader",
exclude: /node_modules/,
},
],
Expand All @@ -31,4 +32,5 @@ module.exports = {
}),
],
},
};
plugins: [new ShebangPlugin()]
};

0 comments on commit 7b6ce9d

Please sign in to comment.