@naturalcycles/backend-lib 4.8.1 → 4.8.2

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deployGae = void 0;
4
4
  const dev_lib_1 = require("@naturalcycles/dev-lib");
5
+ const js_lib_1 = require("@naturalcycles/js-lib");
5
6
  const exec_1 = require("@naturalcycles/nodejs-lib/dist/exec");
6
7
  const deployHealthCheck_1 = require("./deployHealthCheck");
7
8
  const deployPrepare_1 = require("./deployPrepare");
@@ -16,6 +17,11 @@ async function deployGae(opt = {}) {
16
17
  const targetDir = './tmp/deploy';
17
18
  const appYamlPath = `${targetDir}/app.yaml`;
18
19
  const { gaeProject, gaeService, gaeVersion, versionUrl, serviceUrl } = deployInfo;
20
+ (0, js_lib_1._objectAssign)(opt, {
21
+ gaeProject,
22
+ gaeService,
23
+ gaeVersion,
24
+ });
19
25
  // gcloud app deploy ./tmp/deploy/app.yaml --project $deployInfo_gaeProject --version $deployInfo_gaeVersion --quiet --no-promote
20
26
  await (0, exec_1.execCommand)(`gcloud app deploy ${appYamlPath} --project ${gaeProject} --version ${gaeVersion} --quiet --no-promote`).catch(async (err) => {
21
27
  if (logOnFailure) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/backend-lib",
3
- "version": "4.8.1",
3
+ "version": "4.8.2",
4
4
  "scripts": {
5
5
  "prepare": "husky install && patch-package",
6
6
  "serve": "APP_ENV=dev nodemon",
@@ -1,4 +1,5 @@
1
1
  import { buildProdCommand } from '@naturalcycles/dev-lib'
2
+ import { _objectAssign } from '@naturalcycles/js-lib'
2
3
  import { execCommand } from '@naturalcycles/nodejs-lib/dist/exec'
3
4
  import { deployHealthCheck, DeployHealthCheckOptions } from './deployHealthCheck'
4
5
  import { deployPrepare, DeployPrepareOptions } from './deployPrepare'
@@ -22,6 +23,11 @@ export async function deployGae(opt: DeployGaeOptions = {}): Promise<void> {
22
23
  const appYamlPath = `${targetDir}/app.yaml`
23
24
 
24
25
  const { gaeProject, gaeService, gaeVersion, versionUrl, serviceUrl } = deployInfo
26
+ _objectAssign(opt, {
27
+ gaeProject,
28
+ gaeService,
29
+ gaeVersion,
30
+ })
25
31
 
26
32
  // gcloud app deploy ./tmp/deploy/app.yaml --project $deployInfo_gaeProject --version $deployInfo_gaeVersion --quiet --no-promote
27
33
  await execCommand(