Update logger
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
"build": "tsc -p tsconfig.build.json && cp ./out/packages/logger/src/* ./out && rm -rf out/packages && ../../node_modules/.bin/webpack --config ./webpack.config.js",
|
||||
"postinstall": "if [ ! -d out ];then npm run build; fi"
|
||||
},
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.3",
|
||||
"main": "out/main.js",
|
||||
"types": "out/index.d.ts",
|
||||
"author": "Coder",
|
||||
|
@ -1,16 +1,34 @@
|
||||
const path = require("path");
|
||||
const merge = require("webpack-merge");
|
||||
|
||||
module.exports = merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
|
||||
devtool: "none",
|
||||
mode: "production",
|
||||
target: "node",
|
||||
output: {
|
||||
path: path.join(__dirname, "out"),
|
||||
filename: "main.js",
|
||||
libraryTarget: "commonjs",
|
||||
},
|
||||
entry: [
|
||||
"./packages/logger/src/index.ts"
|
||||
],
|
||||
});
|
||||
module.exports = [
|
||||
merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
|
||||
devtool: "none",
|
||||
mode: "production",
|
||||
target: "node",
|
||||
output: {
|
||||
path: path.join(__dirname, "out"),
|
||||
filename: "main.js",
|
||||
libraryTarget: "commonjs",
|
||||
},
|
||||
entry: [
|
||||
"./packages/logger/src/index.ts"
|
||||
],
|
||||
}),
|
||||
merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
|
||||
devtool: "none",
|
||||
mode: "production",
|
||||
target: "node",
|
||||
output: {
|
||||
path: path.join(__dirname, "out"),
|
||||
filename: "extender.js",
|
||||
libraryTarget: "commonjs",
|
||||
},
|
||||
externals: {
|
||||
"@google-cloud/logging": "commonjs @google-cloud/logging",
|
||||
},
|
||||
entry: [
|
||||
"./packages/logger/src/extender.ts"
|
||||
],
|
||||
}),
|
||||
];
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user