Skip to content

Commit be2d91f

Browse files
committed
Update logger
1 parent a3c05cf commit be2d91f

File tree

4 files changed

+1363
-14
lines changed

4 files changed

+1363
-14
lines changed

packages/logger/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"build": "tsc -p tsconfig.build.json && cp ./out/packages/logger/src/* ./out && rm -rf out/packages && ../../node_modules/.bin/webpack --config ./webpack.config.js",
66
"postinstall": "if [ ! -d out ];then npm run build; fi"
77
},
8-
"version": "1.1.0",
8+
"version": "1.1.3",
99
"main": "out/main.js",
1010
"types": "out/index.d.ts",
1111
"author": "Coder",

packages/logger/webpack.config.js

+31-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
11
const path = require("path");
22
const merge = require("webpack-merge");
33

4-
module.exports = merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
5-
devtool: "none",
6-
mode: "production",
7-
target: "node",
8-
output: {
9-
path: path.join(__dirname, "out"),
10-
filename: "main.js",
11-
libraryTarget: "commonjs",
12-
},
13-
entry: [
14-
"./packages/logger/src/index.ts"
15-
],
16-
});
4+
module.exports = [
5+
merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
6+
devtool: "none",
7+
mode: "production",
8+
target: "node",
9+
output: {
10+
path: path.join(__dirname, "out"),
11+
filename: "main.js",
12+
libraryTarget: "commonjs",
13+
},
14+
entry: [
15+
"./packages/logger/src/index.ts"
16+
],
17+
}),
18+
merge(require(path.join(__dirname, "../../scripts", "webpack.general.config.js"))(), {
19+
devtool: "none",
20+
mode: "production",
21+
target: "node",
22+
output: {
23+
path: path.join(__dirname, "out"),
24+
filename: "extender.js",
25+
libraryTarget: "commonjs",
26+
},
27+
externals: {
28+
"@google-cloud/logging": "commonjs @google-cloud/logging",
29+
},
30+
entry: [
31+
"./packages/logger/src/extender.ts"
32+
],
33+
}),
34+
];

0 commit comments

Comments
 (0)