@emarketeer/ts-microservice-commons 7.0.2 → 7.0.4
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 +1 -0
- package/dist/lib/em-commons.js +7 -7
- package/package.json +1 -1
package/dist/.eslintrc
CHANGED
package/dist/lib/em-commons.js
CHANGED
|
@@ -3034,11 +3034,11 @@ var generateServerlessConfig = function () {
|
|
|
3034
3034
|
var serviceConfig = YAML.parse(fs.readFileSync('./serverless.yml', 'utf8'));
|
|
3035
3035
|
var commonConfig = YAML.parse(config);
|
|
3036
3036
|
var generatedConfig = mergeWith(commonConfig, serviceConfig, mergeCustomizer);
|
|
3037
|
-
fs.writeFileSync('./generated.serverless.
|
|
3037
|
+
fs.writeFileSync('./generated.serverless.json', JSON.stringify(generatedConfig, null, 2));
|
|
3038
3038
|
};
|
|
3039
3039
|
var cleanup = function () {
|
|
3040
|
-
if (fs.existsSync('./generated.serverless.
|
|
3041
|
-
fs.unlinkSync('./generated.serverless.
|
|
3040
|
+
if (fs.existsSync('./generated.serverless.json')) {
|
|
3041
|
+
fs.unlinkSync('./generated.serverless.json');
|
|
3042
3042
|
}
|
|
3043
3043
|
};
|
|
3044
3044
|
var runCommand = function (command, additionalArgs) {
|
|
@@ -3065,15 +3065,15 @@ try {
|
|
|
3065
3065
|
}
|
|
3066
3066
|
if (script === 'deploy') {
|
|
3067
3067
|
generateServerlessConfig();
|
|
3068
|
-
result = runCommand('npx cross-env AWS_SDK_LOAD_CONFIG=1 NODE_OPTIONS=--max_old_space_size=4096 npx serverless deploy --config generated.serverless.
|
|
3068
|
+
result = runCommand('npx cross-env AWS_SDK_LOAD_CONFIG=1 NODE_OPTIONS=--max_old_space_size=4096 npx serverless deploy --config generated.serverless.json', scriptArgs);
|
|
3069
3069
|
}
|
|
3070
3070
|
if (script === 'dev') {
|
|
3071
3071
|
generateServerlessConfig();
|
|
3072
|
-
result = runCommand('npx cross-env AWS_SDK_LOAD_CONFIG=1 NODE_OPTIONS=--max_old_space_size=4096 npx serverless dev --config generated.serverless.
|
|
3072
|
+
result = runCommand('npx cross-env AWS_SDK_LOAD_CONFIG=1 NODE_OPTIONS=--max_old_space_size=4096 npx serverless dev --config generated.serverless.json', scriptArgs);
|
|
3073
3073
|
}
|
|
3074
3074
|
if (script === 'invoke-local') {
|
|
3075
3075
|
generateServerlessConfig();
|
|
3076
|
-
result = runCommand('npx cross-env DISABLE_EPSAGON=TRUE NODE_OPTIONS=--max_old_space_size=4096 npx serverless invoke local --config generated.serverless.
|
|
3076
|
+
result = runCommand('npx cross-env DISABLE_EPSAGON=TRUE NODE_OPTIONS=--max_old_space_size=4096 npx serverless invoke local --config generated.serverless.json', scriptArgs);
|
|
3077
3077
|
}
|
|
3078
3078
|
if (script === 'tsc') {
|
|
3079
3079
|
result = runCommand('npx tsc --noEmit', scriptArgs);
|
|
@@ -3083,7 +3083,7 @@ try {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
if (!supportedCommands.includes(script)) {
|
|
3085
3085
|
generateServerlessConfig();
|
|
3086
|
-
result = runCommand('npx cross-env NODE_OPTIONS=--max_old_space_size=4096 npx serverless --config generated.serverless.
|
|
3086
|
+
result = runCommand('npx cross-env NODE_OPTIONS=--max_old_space_size=4096 npx serverless --config generated.serverless.json', scriptArgs);
|
|
3087
3087
|
}
|
|
3088
3088
|
}
|
|
3089
3089
|
finally {
|