build(proxy_server): cleanup dependencies, add bin entry (#3137)
This commit is contained in:
@ -26,9 +26,7 @@
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"joi": "^14.3.1",
|
||||
"morgan": "^1.9.1",
|
||||
"netlify-cms-lib-util": "^2.6.2",
|
||||
"simple-git": "^1.129.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -40,6 +38,7 @@
|
||||
"@types/node": "^13.1.7",
|
||||
"@types/vfile-message": "^2.0.0",
|
||||
"jest": "^24.9.0",
|
||||
"netlify-cms-lib-util": "^2.6.2",
|
||||
"nodemon": "^2.0.2",
|
||||
"ts-jest": "^24.3.0",
|
||||
"ts-loader": "^6.2.1",
|
||||
@ -50,5 +49,8 @@
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=v10"
|
||||
},
|
||||
"bin": {
|
||||
"netlify-cms-proxy-server": "./dist/index.js"
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
const path = require('path');
|
||||
const webpack = require('webpack');
|
||||
const nodeExternals = require('webpack-node-externals');
|
||||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||
const { NODE_ENV = 'production' } = process.env;
|
||||
@ -33,4 +34,5 @@ module.exports = {
|
||||
modulesDir: path.resolve(__dirname, path.join('..', '..', 'node_modules')),
|
||||
}),
|
||||
],
|
||||
plugins: [new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true })],
|
||||
};
|
||||
|
Reference in New Issue
Block a user