@emarketeer/ts-microservice-commons 2.11.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.eslintrc +4 -0
- package/dist/lib/webpack.config.js +26 -4
- package/dist/types/webpack.config.d.ts +1 -1
- package/package.json +14 -11
package/dist/.eslintrc
CHANGED
|
@@ -78,6 +78,10 @@
|
|
|
78
78
|
"prefer-destructuring": "off",
|
|
79
79
|
"sonarjs/no-duplicate-string": "off",
|
|
80
80
|
"arrow-body-style": "warn",
|
|
81
|
+
"no-useless-constructor": "off",
|
|
82
|
+
"@typescript-eslint/no-useless-constructor": ["error"],
|
|
83
|
+
"no-empty-function": "off",
|
|
84
|
+
"@typescript-eslint/no-empty-function": ["error"],
|
|
81
85
|
"@typescript-eslint/no-unused-vars": [
|
|
82
86
|
"error",
|
|
83
87
|
{
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
}
|
|
13
13
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
14
14
|
};
|
|
15
|
+
var TerserPlugin = require('terser-webpack-plugin');
|
|
15
16
|
var path = require('path');
|
|
16
17
|
var webpack = require('webpack');
|
|
17
|
-
var ESBuildPlugin = require('@emarketeer/esbuild-minimizer-webpack-plugin').default;
|
|
18
18
|
var optionalDependencies = ['pg', 'mysql2'];
|
|
19
19
|
var additionalExternals = [];
|
|
20
20
|
for (var _i = 0, optionalDependencies_1 = optionalDependencies; _i < optionalDependencies_1.length; _i++) {
|
|
@@ -40,7 +40,16 @@
|
|
|
40
40
|
'oracle',
|
|
41
41
|
'strong-oracle',
|
|
42
42
|
'oracledb',
|
|
43
|
-
'pg-query-stream'
|
|
43
|
+
'pg-query-stream',
|
|
44
|
+
'react-native-sqlite-storage',
|
|
45
|
+
'sql.js',
|
|
46
|
+
'better-sqlite3',
|
|
47
|
+
'ioredis',
|
|
48
|
+
'redis',
|
|
49
|
+
'typeorm-aurora-data-api-driver',
|
|
50
|
+
'hdb-pool',
|
|
51
|
+
'@sap/hana-client',
|
|
52
|
+
'mongodb'
|
|
44
53
|
], additionalExternals, true),
|
|
45
54
|
mode: 'production',
|
|
46
55
|
target: 'node',
|
|
@@ -58,11 +67,24 @@
|
|
|
58
67
|
node: {
|
|
59
68
|
__dirname: false
|
|
60
69
|
},
|
|
70
|
+
stats: { warnings: false },
|
|
71
|
+
cache: {
|
|
72
|
+
type: 'filesystem',
|
|
73
|
+
allowCollectingMemory: true
|
|
74
|
+
},
|
|
61
75
|
optimization: {
|
|
76
|
+
moduleIds: 'deterministic',
|
|
62
77
|
minimize: true,
|
|
63
|
-
minimizer: [
|
|
78
|
+
minimizer: [
|
|
79
|
+
new TerserPlugin({
|
|
80
|
+
minify: TerserPlugin.swcMinify,
|
|
81
|
+
terserOptions: {
|
|
82
|
+
minify: true
|
|
83
|
+
}
|
|
84
|
+
})
|
|
85
|
+
]
|
|
64
86
|
},
|
|
65
|
-
plugins: [new webpack.IgnorePlugin(/^pg-native$/)],
|
|
87
|
+
plugins: [new webpack.IgnorePlugin({ resourceRegExp: /^pg-native$/ })],
|
|
66
88
|
module: {
|
|
67
89
|
rules: [
|
|
68
90
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emarketeer/ts-microservice-commons",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"bin": {
|
|
@@ -93,20 +93,19 @@
|
|
|
93
93
|
"@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
|
94
94
|
"@babel/plugin-syntax-typescript": "^7.8.3",
|
|
95
95
|
"@babel/preset-env": "^7.7.4",
|
|
96
|
-
"@emarketeer/esbuild-minimizer-webpack-plugin": "^1.0.3",
|
|
97
96
|
"@recap.dev/babel-plugin": "^1.0.3",
|
|
98
97
|
"@recap.dev/serverless-plugin": "^1.1.2",
|
|
99
98
|
"@types/jest": "^26.0.15",
|
|
100
99
|
"@typescript-eslint/eslint-plugin": "^2.22.0",
|
|
101
100
|
"@typescript-eslint/parser": "^2.22.0",
|
|
102
|
-
"babel-loader": "^8.
|
|
101
|
+
"babel-loader": "^8.2.3",
|
|
103
102
|
"cross-env": "^6.0.0",
|
|
104
103
|
"cross-spawn": "^7.0.1",
|
|
105
|
-
"eslint": "^
|
|
106
|
-
"eslint-config-airbnb-base": "
|
|
104
|
+
"eslint": "^8.7.0",
|
|
105
|
+
"eslint-config-airbnb-base": "^15.0.0",
|
|
107
106
|
"eslint-plugin-import": "^2.18.2",
|
|
108
|
-
"eslint-plugin-jest": "^
|
|
109
|
-
"eslint-plugin-sonarjs": "^0.
|
|
107
|
+
"eslint-plugin-jest": "^26.0.0",
|
|
108
|
+
"eslint-plugin-sonarjs": "^0.11.0",
|
|
110
109
|
"jest": "^26.6.1",
|
|
111
110
|
"jest-circus": "^26.6.3",
|
|
112
111
|
"jest-extended": "^0.11.5",
|
|
@@ -115,11 +114,12 @@
|
|
|
115
114
|
"native-addon-loader": "^2.0.1",
|
|
116
115
|
"serverless": "^2.57.0",
|
|
117
116
|
"serverless-plugin-lambda-insights": "^1.0.8",
|
|
118
|
-
"serverless-webpack": "^5.6.
|
|
117
|
+
"serverless-webpack": "^5.6.1",
|
|
118
|
+
"terser-webpack-plugin": "^5.3.0",
|
|
119
119
|
"ts-jest": "^26.4.3",
|
|
120
|
-
"ts-loader": "
|
|
120
|
+
"ts-loader": "^9.2.6",
|
|
121
121
|
"typescript": "^4.4.2",
|
|
122
|
-
"webpack": "
|
|
122
|
+
"webpack": "^5.67.0",
|
|
123
123
|
"yaml": "^1.7.2"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
@@ -151,10 +151,13 @@
|
|
|
151
151
|
"rollup-plugin-json": "^3.1.0",
|
|
152
152
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
153
153
|
"rollup-plugin-typescript2": "^0.27.3",
|
|
154
|
-
"semantic-release": "^
|
|
154
|
+
"semantic-release": "^19.0.2",
|
|
155
155
|
"shelljs": "^0.8.3",
|
|
156
156
|
"travis-deploy-once": "^5.0.9",
|
|
157
157
|
"ts-node": "^10.0.0",
|
|
158
158
|
"typedoc": "^0.19.2"
|
|
159
|
+
},
|
|
160
|
+
"resolutions": {
|
|
161
|
+
"@types/estree": "0.0.47"
|
|
159
162
|
}
|
|
160
163
|
}
|