@catladder/cli 0.0.0-main-259d7c70 → 0.0.0-main-c009adef

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.
@@ -4021,7 +4021,7 @@ var createComponentContext = function (ctx) { return __awaiter(void 0, void 0, v
4021
4021
  if (!/^[a-z0-9-]+$/.test(ctx.componentName)) {
4022
4022
  throw new Error("componentName may only contain lower case letters, numbers and -");
4023
4023
  }
4024
- return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfo)(ctx.config, ctx.componentName)];
4024
+ return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfoForComponent)(ctx.config, ctx.componentName)];
4025
4025
  case 1:
4026
4026
  packageManagerInfo = _a.sent();
4027
4027
  envContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
@@ -5669,7 +5669,7 @@ var getServiceDeployScript = function (context, service, nameSuffix) {
5669
5669
  var fullServiceName = serviceName.concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "");
5670
5670
  var argsString = createArgsString_1.createArgsString.apply(void 0, __spreadArray([__assign(__assign({
5671
5671
  // command as empty string resets it to default (uses the image's entrypoint)
5672
- command: commandArray ? '"' + commandArray.join(",") + '"' : '""' }, commonDeployArgs), { labels: (0, common_1.makeLabelString)(__assign(__assign({}, (0, getLabels_1.getLabels)(context)), { "cloud-run-service-name": fullServiceName })), "env-vars-file": constants_1.ENV_VARS_FILENAME, "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0, "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100, "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true, cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu, memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory, "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true, ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all", "cpu-boost": true, "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
5672
+ command: commandArray ? '"' + commandArray.join(",") + '"' : '""' }, commonDeployArgs), { labels: (0, common_1.makeLabelString)(__assign(__assign({}, (0, getLabels_1.getLabels)(context)), { "cloud-run-service-name": fullServiceName })), "env-vars-file": constants_1.ENV_VARS_FILENAME, "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0, "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100, "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true, cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu, memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory, timeout: customConfig === null || customConfig === void 0 ? void 0 : customConfig.timeout, "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true, ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all", "cpu-boost": true, "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
5673
5673
  // volumes require beta
5674
5674
  var requiresBeta = (customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes) && Object.keys(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes).length > 0;
5675
5675
  return "".concat((0, common_1.gcloudRunCmd)(requiresBeta ? "beta" : undefined), " deploy ").concat(fullServiceName, " ").concat(argsString);
@@ -8545,12 +8545,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
8545
8545
  return to.concat(ar || Array.prototype.slice.call(from));
8546
8546
  };
8547
8547
  Object.defineProperty(exports, "__esModule", ({ value: true }));
8548
- exports.getPackageManagerInfo = void 0;
8548
+ exports.getPackageManagerInfoForComponent = void 0;
8549
8549
  var fs_1 = __nccwpck_require__(7147);
8550
8550
  var path_1 = __nccwpck_require__(1017);
8551
8551
  var path_equal_1 = __nccwpck_require__(4843);
8552
8552
  var yarnUtils_1 = __nccwpck_require__(7843);
8553
- var getPackageManagerInfo = function (config, componentName) { return __awaiter(void 0, void 0, void 0, function () {
8553
+ var getPackageManagerInfoForComponent = function (config, componentName) { return __awaiter(void 0, void 0, void 0, function () {
8554
8554
  var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths, currentWorkspaceDependencies, pathsToCopyInDocker;
8555
8555
  return __generator(this, function (_a) {
8556
8556
  switch (_a.label) {
@@ -8599,7 +8599,7 @@ var getPackageManagerInfo = function (config, componentName) { return __awaiter(
8599
8599
  }
8600
8600
  });
8601
8601
  }); };
8602
- exports.getPackageManagerInfo = getPackageManagerInfo;
8602
+ exports.getPackageManagerInfoForComponent = getPackageManagerInfoForComponent;
8603
8603
  //# sourceMappingURL=packageManager.js.map
8604
8604
 
8605
8605
  /***/ }),
@@ -11465,7 +11465,7 @@ var createComponentContext = function (ctx) { return __awaiter(void 0, void 0, v
11465
11465
  if (!/^[a-z0-9-]+$/.test(ctx.componentName)) {
11466
11466
  throw new Error("componentName may only contain lower case letters, numbers and -");
11467
11467
  }
11468
- return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfo)(ctx.config, ctx.componentName)];
11468
+ return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfoForComponent)(ctx.config, ctx.componentName)];
11469
11469
  case 1:
11470
11470
  packageManagerInfo = _a.sent();
11471
11471
  envContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
@@ -13113,7 +13113,7 @@ var getServiceDeployScript = function (context, service, nameSuffix) {
13113
13113
  var fullServiceName = serviceName.concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "");
13114
13114
  var argsString = createArgsString_1.createArgsString.apply(void 0, __spreadArray([__assign(__assign({
13115
13115
  // command as empty string resets it to default (uses the image's entrypoint)
13116
- command: commandArray ? '"' + commandArray.join(",") + '"' : '""' }, commonDeployArgs), { labels: (0, common_1.makeLabelString)(__assign(__assign({}, (0, getLabels_1.getLabels)(context)), { "cloud-run-service-name": fullServiceName })), "env-vars-file": constants_1.ENV_VARS_FILENAME, "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0, "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100, "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true, cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu, memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory, "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true, ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all", "cpu-boost": true, "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
13116
+ command: commandArray ? '"' + commandArray.join(",") + '"' : '""' }, commonDeployArgs), { labels: (0, common_1.makeLabelString)(__assign(__assign({}, (0, getLabels_1.getLabels)(context)), { "cloud-run-service-name": fullServiceName })), "env-vars-file": constants_1.ENV_VARS_FILENAME, "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0, "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100, "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true, cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu, memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory, timeout: customConfig === null || customConfig === void 0 ? void 0 : customConfig.timeout, "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true, ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all", "cpu-boost": true, "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
13117
13117
  // volumes require beta
13118
13118
  var requiresBeta = (customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes) && Object.keys(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes).length > 0;
13119
13119
  return "".concat((0, common_1.gcloudRunCmd)(requiresBeta ? "beta" : undefined), " deploy ").concat(fullServiceName, " ").concat(argsString);
@@ -15989,12 +15989,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
15989
15989
  return to.concat(ar || Array.prototype.slice.call(from));
15990
15990
  };
15991
15991
  Object.defineProperty(exports, "__esModule", ({ value: true }));
15992
- exports.getPackageManagerInfo = void 0;
15992
+ exports.getPackageManagerInfoForComponent = void 0;
15993
15993
  var fs_1 = __nccwpck_require__(57147);
15994
15994
  var path_1 = __nccwpck_require__(71017);
15995
15995
  var path_equal_1 = __nccwpck_require__(84843);
15996
15996
  var yarnUtils_1 = __nccwpck_require__(97843);
15997
- var getPackageManagerInfo = function (config, componentName) { return __awaiter(void 0, void 0, void 0, function () {
15997
+ var getPackageManagerInfoForComponent = function (config, componentName) { return __awaiter(void 0, void 0, void 0, function () {
15998
15998
  var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths, currentWorkspaceDependencies, pathsToCopyInDocker;
15999
15999
  return __generator(this, function (_a) {
16000
16000
  switch (_a.label) {
@@ -16043,7 +16043,7 @@ var getPackageManagerInfo = function (config, componentName) { return __awaiter(
16043
16043
  }
16044
16044
  });
16045
16045
  }); };
16046
- exports.getPackageManagerInfo = getPackageManagerInfo;
16046
+ exports.getPackageManagerInfoForComponent = getPackageManagerInfoForComponent;
16047
16047
  //# sourceMappingURL=packageManager.js.map
16048
16048
 
16049
16049
  /***/ }),
@@ -63,7 +63,7 @@ var createComponentContext = function (ctx) { return __awaiter(void 0, void 0, v
63
63
  if (!/^[a-z0-9-]+$/.test(ctx.componentName)) {
64
64
  throw new Error("componentName may only contain lower case letters, numbers and -");
65
65
  }
66
- return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfo)(ctx.config, ctx.componentName)];
66
+ return [4 /*yield*/, (0, packageManager_1.getPackageManagerInfoForComponent)(ctx.config, ctx.componentName)];
67
67
  case 1:
68
68
  packageManagerInfo = _a.sent();
69
69
  envContext = (0, getEnvironmentContext_1.getEnvironmentContext)(ctx);
@@ -1 +1 @@
1
- {"version":3,"file":"createComponentContext.js","sourceRoot":"","sources":["../../../../../pipeline/src/context/createComponentContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoC;AACpC,kCAAuC;AAEvC,oCAAyC;AAMzC,kCAAkD;AAClD,mDAAkD;AAClD,iEAAgE;AAChE,6DAAmE;AAU5D,IAAM,sBAAsB,GAAG,UACpC,GAAkC;;;;;gBAElC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa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R,aAAa,EAAE,GAAG,CAAC,aAAa;oBAChC,WAAW,aAAA;oBACX,kBAAkB,EAAE,kBAAkB;oBACtC,YAAY,EAAE,GAAG,CAAC,YAAY;oBAC9B,OAAO,EAAE,GAAG,CAAC,OAAO;iBACrB,CAAC;gBACI,kBAAkB,GAAG,IAAA,mBAAU,EAAC,UAAU,CAAC;oBAC/C,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;oBACrB,CAAC,CAAC,UAAU,CAAC;gBACf,4CACK,OAAO,KACV,UAAU,EAAE,kBAAkB,KAC9B;;;KACH,CAAC;AApEW,QAAA,sBAAsB,0BAoEjC;AAEF;;GAEG;AACU,QAAA,aAAa,GAAG,8BAAsB,CAAC"}
1
+ {"version":3,"file":"createComponentContext.js","sourceRoot":"","sources":["../../../../../pipeline/src/context/createComponentContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAoC;AACpC,kCAAuC;AAEvC,oCAAyC;AAMzC,kCAAkD;AAClD,mDAAkD;AAClD,iEAAgE;AAChE,6DAA+E;AAUxE,IAAM,sBAAsB,GAAG,UACpC,GAAkC;;;;;gBAElC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;oBAC5C,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;gBACJ,CAAC;gBAE0B,qBAAM,IAAA,kDAAiC,EAChE,GAAG,CAAC,MAAM,EACV,GAAG,CAAC,aAAa,CAClB,EAAA;;gBAHK,kBAAkB,GAAG,SAG1B;gBAEK,UAAU,GAAG,IAAA,6CAAqB,EAAC,GAAG,CAAC,CAAC;gBAExC,8BAA8B,GAAG,UAAU,CAAC,YAAY,CAAC;gBACzD,QAAQ,GAGV,8BAA8B,CAAC,MAAM;oBACvC,CAAC,CAAC;wBACE,KAAK,EACH,mBAAW,CACT,8BAA8B,CAAC,KAAK,CAAC,IAAuB,CAC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B,CAAC"}
@@ -59,7 +59,7 @@ var getServiceDeployScript = function (context, service, nameSuffix) {
59
59
  var fullServiceName = serviceName.concat(nameSuffix !== null && nameSuffix !== void 0 ? nameSuffix : "");
60
60
  var argsString = createArgsString_1.createArgsString.apply(void 0, __spreadArray([__assign(__assign({
61
61
  // command as empty string resets it to default (uses the image's entrypoint)
62
- command: commandArray ? '"' + commandArray.join(",") + '"' : '""' }, commonDeployArgs), { labels: (0, common_1.makeLabelString)(__assign(__assign({}, (0, getLabels_1.getLabels)(context)), { "cloud-run-service-name": fullServiceName })), "env-vars-file": constants_1.ENV_VARS_FILENAME, "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0, "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100, "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true, cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu, memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory, "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true, ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all", "cpu-boost": true, "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
62
+ command: commandArray ? '"' + commandArray.join(",") + '"' : '""' }, commonDeployArgs), { labels: (0, common_1.makeLabelString)(__assign(__assign({}, (0, getLabels_1.getLabels)(context)), { "cloud-run-service-name": fullServiceName })), "env-vars-file": constants_1.ENV_VARS_FILENAME, "min-instances": (_b = customConfig === null || customConfig === void 0 ? void 0 : customConfig.minInstances) !== null && _b !== void 0 ? _b : 0, "max-instances": (_c = customConfig === null || customConfig === void 0 ? void 0 : customConfig.maxInstances) !== null && _c !== void 0 ? _c : 100, "cpu-throttling": (customConfig === null || customConfig === void 0 ? void 0 : customConfig.noCpuThrottling) !== true, cpu: customConfig === null || customConfig === void 0 ? void 0 : customConfig.cpu, memory: customConfig === null || customConfig === void 0 ? void 0 : customConfig.memory, timeout: customConfig === null || customConfig === void 0 ? void 0 : customConfig.timeout, "allow-unauthenticated": (_d = customConfig === null || customConfig === void 0 ? void 0 : customConfig.allowUnauthenticated) !== null && _d !== void 0 ? _d : true, ingress: (_e = customConfig === null || customConfig === void 0 ? void 0 : customConfig.ingress) !== null && _e !== void 0 ? _e : "all", "cpu-boost": true, "execution-environment": customConfig === null || customConfig === void 0 ? void 0 : customConfig.executionEnvironment })], __read((0, volumes_1.createVolumeConfig)(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes, "service")), false));
63
63
  // volumes require beta
64
64
  var requiresBeta = (customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes) && Object.keys(customConfig === null || customConfig === void 0 ? void 0 : customConfig.volumes).length > 0;
65
65
  return "".concat((0, common_1.gcloudRunCmd)(requiresBeta ? "beta" : undefined), " deploy ").concat(fullServiceName, " ").concat(argsString);
@@ -1 +1 @@
1
- {"version":3,"file":"cloudRunServices.js","sourceRoot":"","sources":["../../../../../../../pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAuD;AAIvD,8DAA6D;AAC7D,0DAAyD;AACzD,mCAKkB;AAClB,yCAAgD;AAChD,qCAA+C;AAExC,IAAM,sBAAsB,GAAG,UACpC,OAAyB,EACzB,OAAuD,EACvD,UAAmB;;IAEnB,IAAM,gBAAgB,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;IAEtD,IAAM,WAAW,GAAG,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC;IAE5C,IAAM,YAA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J,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC"}
1
+ {"version":3,"file":"cloudRunServices.js","sourceRoot":"","sources":["../../../../../../../pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wDAAuD;AAIvD,8DAA6D;AAC7D,0DAAyD;AACzD,mCAKkB;AAClB,yCAAgD;AAChD,qCAA+C;AAExC,IAAM,sBAAsB,GAAG,UACpC,OAAyB,EACzB,OAAuD,EACvD,UAAmB;;IAEnB,IAAM,gBAAgB,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;IAEtD,IAAM,WAAW,GAAG,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC;IAE5C,IAAM,YAAY,GAAG,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5D,IAAM,OAAO,GACX,OAAO,KAAK,IAAI;QACd,CAAC,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY;QACvD,CAAC,CAAC,SAAS,CAAC;IAEhB,IAAM,YAAY,GAAG,OAAO;QAC1B,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;YACtB,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;QACtB,CAAC,CAAC,SAAS,CAAC;IACd,IAAM,eAAe,GAAG,WAAW,CAAC,MAAM,CAAC,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE,CAAC,CAAC;IAC7D,IAAM,UAAU,GAAG,mCAAgB;YAE/B,6EAA6E;YAC7E,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,GAAG,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,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AM,CAAC,CAAC,CAAC,SAAS,CAClC,qBAAW,eAAe,cAAI,UAAU,CAAE,CAAC;AAC9C,CAAC,CAAC;AAnDW,QAAA,sBAAsB,0BAmDjC;AAEK,IAAM,sBAAsB,GAAG,UACpC,OAAyB,EACzB,aAAsB;IAEtB,IAAM,UAAU,GAAG,IAAA,8BAAqB,EAAC,OAAO,CAAC,CAAC;IAElD,IAAM,gBAAgB,GAAG,IAAA,mCAAgB,EAAC,UAAU,CAAC,CAAC;IAEtD,IAAM,WAAW,GAAG,IAAA,+BAAc,EAAC,OAAO,CAAC,CAAC;IAE5C,IAAM,eAAe,GAAG,aAAa;QACnC,CAAC,CAAC,UAAG,WAAW,cAAI,aAAa,CAAE;QACnC,CAAC,CAAC,WAAW,CAAC;IAEhB,OAAO;QACL,UAAG,IAAA,qBAAY,GAAE,8BAAoB,eAAe,cAAI,gBAAgB,CAAE;KAC3E,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC"}
@@ -89,6 +89,14 @@ export type DeployConfigCloudRunService = {
89
89
  * memory limit. Defaults to 512MB
90
90
  */
91
91
  memory?: Memory;
92
+ /**
93
+ * timeout of the service, defaults to 5 minutes.
94
+ *
95
+ * you can specify something like 10m30s. if its just a number, it will be interpreted as seconds
96
+ *
97
+ * max supported is 60min
98
+ */
99
+ timeout?: string;
92
100
  /**
93
101
  *
94
102
  * set the execution environment.
@@ -1,2 +1,2 @@
1
- import type { Config, PackageManagerInfo } from "../types";
2
- export declare const getPackageManagerInfo: (config: Config, componentName: string) => Promise<PackageManagerInfo>;
1
+ import type { Config, PackageManagerInfoComponent } from "../types";
2
+ export declare const getPackageManagerInfoForComponent: (config: Config, componentName: string) => Promise<PackageManagerInfoComponent>;
@@ -61,12 +61,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
61
61
  return to.concat(ar || Array.prototype.slice.call(from));
62
62
  };
63
63
  Object.defineProperty(exports, "__esModule", { value: true });
64
- exports.getPackageManagerInfo = void 0;
64
+ exports.getPackageManagerInfoForComponent = void 0;
65
65
  var fs_1 = require("fs");
66
66
  var path_1 = require("path");
67
67
  var path_equal_1 = require("path-equal");
68
68
  var yarnUtils_1 = require("./yarn/yarnUtils");
69
- var getPackageManagerInfo = function (config, componentName) { return __awaiter(void 0, void 0, void 0, function () {
69
+ var getPackageManagerInfoForComponent = function (config, componentName) { return __awaiter(void 0, void 0, void 0, function () {
70
70
  var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths, currentWorkspaceDependencies, pathsToCopyInDocker;
71
71
  return __generator(this, function (_a) {
72
72
  switch (_a.label) {
@@ -115,5 +115,5 @@ var getPackageManagerInfo = function (config, componentName) { return __awaiter(
115
115
  }
116
116
  });
117
117
  }); };
118
- exports.getPackageManagerInfo = getPackageManagerInfo;
118
+ exports.getPackageManagerInfoForComponent = getPackageManagerInfoForComponent;
119
119
  //# sourceMappingURL=packageManager.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageManager.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/packageManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yBAAgC;AAChC,6BAA4B;AAC5B,yCAAuC;AAEvC,8CAI0B;AAEnB,IAAM,qBAAqB,GAAG,UACnC,MAAc,EACd,aAAqB;;;;oBAGL,qBAAM,IAAA,0BAAc,GAAE,EAAA;;gBAAhC,OAAO,GAAG,SAAsB;gBACtC,IAAI,CAAC,OAAO;oBAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;gBACtD,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBAEpC,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;gBAChC,qBAAM,IAAA,yBAAa,EAAC,SAAS,CAAC,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EAAE,CAAC;oBACvD,QAAQ;kCACL,eAAe,kBACf,4BAA4B,SAChC,CAAC;gBACF,sBAAO;wBACL,IAAI,EAAE,MAAM;wBACZ,UAAU,YAAA;wBACV,OAAO,SAAA;wBACP,SAAS,WAAA;wBACT,gBAAgB,kBAAA;wBAChB,4BAA4B,8BAAA;wBAC5B,sBAAsB,wBAAA;wBACtB,mBAAmB,qBAAA;qBACpB,EAAC;;;KACH,CAAC;AAvDW,QAAA,qBAAqB,yBAuDhC"}
1
+ {"version":3,"file":"packageManager.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/packageManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yBAAgC;AAChC,6BAA4B;AAC5B,yCAAuC;AAEvC,8CAI0B;AAEnB,IAAM,iCAAiC,GAAG,UAC/C,MAAc,EACd,aAAqB;;;;oBAGL,qBAAM,IAAA,0BAAc,GAAE,EAAA;;gBAAhC,OAAO,GAAG,SAAsB;gBACtC,IAAI,CAAC,OAAO;oBAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;gBACtD,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBAEpC,SAAS,GAAG,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;gBAChC,qBAAM,IAAA,yBAAa,EAAC,SAAS,CAAC,EAAA;;gBAA3C,UAAU,GAAG,SAA8B;gBAC3C,gBAAgB,GAAG,UAAU,CAAC,IAAI,CAAC,UAAC,CAAC;oBACzC,OAAA,IAAA,sBAAS,EAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC;gBAApC,CAAoC,CACrC,CAAC;gBACI,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;gBACnD,aAAa,GAAG,GAAG,CAAC;gBACpB,WAAW,GAAG,IAAA,WAAI,EAAC,SAAS,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
1
  import memoizee from "memoizee";
2
- import type { PackageManagerInfo, YarnWorkspace } from "../../types";
2
+ import type { YarnWorkspace } from "../../types";
3
3
  export declare const getYarnVersion: (() => Promise<string>) & memoizee.Memoized<() => Promise<string>>;
4
- export declare const getWorkspaces: ((isClassic: boolean) => Promise<PackageManagerInfo["workspaces"]>) & memoizee.Memoized<(isClassic: boolean) => Promise<PackageManagerInfo["workspaces"]>>;
4
+ export declare const getWorkspaces: ((isClassic: boolean) => Promise<Array<YarnWorkspace>>) & memoizee.Memoized<(isClassic: boolean) => Promise<Array<YarnWorkspace>>>;
5
5
  export declare const getWorkspaceDependencies: (ws: YarnWorkspace, allWorkspaces: YarnWorkspace[]) => string[];
@@ -49,7 +49,7 @@ export type YarnWorkspace = {
49
49
  workspaceDependencies: string[];
50
50
  mismatchedWorkspaceDependencies: string[];
51
51
  };
52
- export type YarnPackageManagerInfo = {
52
+ export type YarnPackageManagerInfoComponent = {
53
53
  type: "yarn";
54
54
  version: string;
55
55
  workspaces: YarnWorkspace[];
@@ -59,17 +59,18 @@ export type YarnPackageManagerInfo = {
59
59
  pathsToCopyInDocker: string[];
60
60
  currentWorkspaceDependencies: string[];
61
61
  };
62
- export type PackageManagerInfo = YarnPackageManagerInfo;
62
+ export type PackageManagerInfoComponent = YarnPackageManagerInfoComponent;
63
63
  export type ContextBeforeConfig = {
64
64
  componentName: string;
65
65
  fullConfig: Config;
66
- packageManagerInfo?: PackageManagerInfo;
66
+ packageManagerInfo?: PackageManagerInfoComponent;
67
67
  };
68
- export type BuildContext = {
68
+ export type BuildContextComponent = {
69
69
  dir: string;
70
- packageManagerInfo: PackageManagerInfo;
70
+ packageManagerInfo: PackageManagerInfoComponent;
71
71
  config: BuildConfig;
72
72
  };
73
+ export type BuildContext = BuildContextComponent;
73
74
  export type DeployContext = {
74
75
  config: DeployConfig;
75
76
  };
@@ -82,7 +83,7 @@ export type ComponentContext = {
82
83
  *
83
84
  */
84
85
  componentConfig: ComponentConfig;
85
- build: BuildContext;
86
+ build: BuildContextComponent;
86
87
  deploy?: DeployContext | null;
87
88
  fullConfig: Config;
88
89
  environment: Environment;
@@ -91,7 +92,7 @@ export type ComponentContext = {
91
92
  /**
92
93
  * @deprecated use buildContext.packageManagerInfo instead
93
94
  */
94
- packageManagerInfo: PackageManagerInfo;
95
+ packageManagerInfo: PackageManagerInfoComponent;
95
96
  customJobs?: CatladderJob[];
96
97
  };
97
98
  /**