@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 CHANGED
@@ -104,6 +104,7 @@
104
104
  "no-empty-function": "off",
105
105
  "@typescript-eslint/no-empty-function": ["error"],
106
106
  "default-param-last": "off",
107
+ "no-plusplus": "off",
107
108
  "@typescript-eslint/no-unused-vars": [
108
109
  "error",
109
110
  {
@@ -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.yml', YAML.stringify(generatedConfig));
3037
+ fs.writeFileSync('./generated.serverless.json', JSON.stringify(generatedConfig, null, 2));
3038
3038
  };
3039
3039
  var cleanup = function () {
3040
- if (fs.existsSync('./generated.serverless.yml')) {
3041
- fs.unlinkSync('./generated.serverless.yml');
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.yml', scriptArgs);
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.yml', scriptArgs);
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.yml', scriptArgs);
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.yml', scriptArgs);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emarketeer/ts-microservice-commons",
3
- "version": "7.0.2",
3
+ "version": "7.0.4",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "bin": {