Comparing version 4.0.0 to 4.0.1
{ | ||
"name": "envinfo", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Info about your dev environment for debugging purposes", | ||
@@ -8,5 +8,5 @@ "repository": "https://github.com/tabrindle/envinfo", | ||
"license": "MIT", | ||
"main": "src/envinfo.js", | ||
"main": "dist/envinfo.js", | ||
"bin": { | ||
"envinfo": "dist/bundle.js" | ||
"envinfo": "dist/cli.js" | ||
}, | ||
@@ -13,0 +13,0 @@ "engines": { |
@@ -1,2 +0,1 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
@@ -6,12 +5,16 @@ const UglifyJSPlugin = require('uglifyjs-webpack-plugin'); | ||
module.exports = { | ||
entry: './src/cli.js', | ||
entry: { | ||
envinfo: './src/envinfo.js', | ||
cli: './src/cli.js', | ||
}, | ||
target: 'node', | ||
output: { | ||
filename: 'bundle.js', | ||
path: path.resolve(__dirname, 'dist'), | ||
libraryTarget: 'commonjs2', | ||
filename: '[name].js', | ||
path: __dirname + '/dist', | ||
}, | ||
plugins: [ | ||
new UglifyJSPlugin(), | ||
new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true }), | ||
new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true, include: 'cli' }), | ||
], | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
394066
18
992
3
71
6