You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
622 B

2 years ago
const webpack = require('webpack');
2 years ago
const path = require('path');
module.exports = {
mode: 'development',
target: 'node',
devtool: 'inline-source-map',
entry: {
main: './src/tsdb-kit/index.ts',
},
output: {
path: path.resolve(__dirname, './bin'),
filename: 'tsdb-kit.js'
},
2 years ago
plugins: [
new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true }),
],
2 years ago
resolve: {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /.ts$/,
2 years ago
loader: 'ts-loader',
options: {
configFile: 'bin.tsconfig.json'
}
}
]
}
};