@catladder/cli 0.0.0-inventory-14f548ef → 0.0.0-inventory-8c6dd3ed

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.
@@ -38708,11 +38708,12 @@ var constants_1 = __nccwpck_require__(1542);
38708
38708
  var getBuildInfo_1 = __nccwpck_require__(9197);
38709
38709
 
38710
38710
  var createBuildJob = function (context, _a) {
38711
- var _b, _c;
38711
+ var _b, _c, _d;
38712
38712
 
38713
38713
  var script = _a.script,
38714
38714
  variables = _a.variables,
38715
- def = __rest(_a, ["script", "variables"]);
38715
+ artifacts = _a.artifacts,
38716
+ def = __rest(_a, ["script", "variables", "artifacts"]);
38716
38717
 
38717
38718
  return (0, lodash_1.merge)({
38718
38719
  name: constants_1.APP_BUILD_JOB_NAME,
@@ -38724,7 +38725,7 @@ var createBuildJob = function (context, _a) {
38724
38725
  variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
38725
38726
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
38726
38727
  artifacts: {
38727
- paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR]
38728
+ paths: __spreadArray([context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR], __read((_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.paths) !== null && _d !== void 0 ? _d : []), false)
38728
38729
  }
38729
38730
  }, def);
38730
38731
  };
@@ -39090,13 +39091,13 @@ var createNodeBuildJobs = function (context) {
39090
39091
 
39091
39092
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
39092
39093
  var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
39093
- var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl";
39094
+ var yarnReportDependenciesCommand = ["mkdir -p ".concat(reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES), yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl"];
39094
39095
  var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
39095
39096
  variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
39096
39097
  cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
39097
- script: __spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_b = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _b !== void 0 ? _b : []), false), [yarnReportDependenciesCommand], false),
39098
+ script: __spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_b = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _b !== void 0 ? _b : []), false), __read(yarnReportDependenciesCommand), false),
39098
39099
  artifacts: {
39099
- paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_d = (_c = buildConfig.artifactsPaths) === null || _c === void 0 ? void 0 : _c.map(function (path) {
39100
+ paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_d = (_c = buildConfig.artifactsPaths) === null || _c === void 0 ? void 0 : _c.map(function (path) {
39100
39101
  return (0, path_1.join)(context.componentConfig.dir, path);
39101
39102
  })) !== null && _d !== void 0 ? _d : []), false)
39102
39103
  }
@@ -39831,7 +39832,7 @@ exports.readConfigSync = readConfigSync;
39831
39832
 
39832
39833
  exports.__esModule = true;
39833
39834
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
39834
- exports.PIPELINE_IMAGE_TAG = "inventory-14f548ef" || 0;
39835
+ exports.PIPELINE_IMAGE_TAG = "inventory-8c6dd3ed" || 0;
39835
39836
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
39836
39837
 
39837
39838
  /***/ }),
@@ -349478,11 +349478,12 @@ var constants_1 = __nccwpck_require__(11542);
349478
349478
  var getBuildInfo_1 = __nccwpck_require__(9197);
349479
349479
 
349480
349480
  var createBuildJob = function (context, _a) {
349481
- var _b, _c;
349481
+ var _b, _c, _d;
349482
349482
 
349483
349483
  var script = _a.script,
349484
349484
  variables = _a.variables,
349485
- def = __rest(_a, ["script", "variables"]);
349485
+ artifacts = _a.artifacts,
349486
+ def = __rest(_a, ["script", "variables", "artifacts"]);
349486
349487
 
349487
349488
  return (0, lodash_1.merge)({
349488
349489
  name: constants_1.APP_BUILD_JOB_NAME,
@@ -349494,7 +349495,7 @@ var createBuildJob = function (context, _a) {
349494
349495
  variables: __assign(__assign(__assign(__assign({}, constants_1.RUNNER_BUILD_RESOURCE_VARIABLES), variables !== null && variables !== void 0 ? variables : {}), context.environment.envVars), (_b = context.componentConfig.build.extraVars) !== null && _b !== void 0 ? _b : {}),
349495
349496
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read((0, getBuildInfo_1.getBuildInfo)(context)), false), __read((0, yarn_1.ensureNodeVersion)(context)), false), ["cd ".concat(context.componentConfig.dir)], false), __read((_c = (0, utils_1.ensureArray)(script)) !== null && _c !== void 0 ? _c : []), false),
349496
349497
  artifacts: {
349497
- paths: [context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR]
349498
+ paths: __spreadArray([context.componentConfig.dir + "/__build_info.json", context.componentConfig.dir + "/" + reportingJob_1.INVENTORY_ARTIFACTS_DIR], __read((_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.paths) !== null && _d !== void 0 ? _d : []), false)
349498
349499
  }
349499
349500
  }, def);
349500
349501
  };
@@ -349860,13 +349861,13 @@ var createNodeBuildJobs = function (context) {
349860
349861
 
349861
349862
  var yarnInstall = (0, yarn_1.getYarnInstall)(context);
349862
349863
  var yarnReportDependenciesListCommand = ((_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.isClassic) ? "npm ls --depth 0 --json | jq '.dependencies | to_entries | .[] | {artifact: .key, version: .value.version, type: \"npm\"}'" : "yarn info --json -A| jq '{version: .children.Version, artifact: .value, type: \"npm\" }'";
349863
- var yarnReportDependenciesCommand = yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl";
349864
+ var yarnReportDependenciesCommand = ["mkdir -p ".concat(reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES), yarnReportDependenciesListCommand + " | jq -n '. |= [inputs]' > " + reportingJob_1.INVENTORY_ARTIFACTS_DIR_DEPENDENCIES + "/app.jsonl"];
349864
349865
  var appBuildJob = buildConfig.buildCommand !== null ? (0, createBuildJob_1.createBuildJob)(context, {
349865
349866
  variables: __assign({}, constants_2.NODE_RUNNER_BUILD_VARIABLES),
349866
349867
  cache: __spreadArray(__spreadArray([], __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
349867
- script: __spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_b = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _b !== void 0 ? _b : []), false), [yarnReportDependenciesCommand], false),
349868
+ script: __spreadArray(__spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_b = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _b !== void 0 ? _b : []), false), __read(yarnReportDependenciesCommand), false),
349868
349869
  artifacts: {
349869
- paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "__build_info.json"), (0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_d = (_c = buildConfig.artifactsPaths) === null || _c === void 0 ? void 0 : _c.map(function (path) {
349870
+ paths: __spreadArray([(0, path_1.join)(context.componentConfig.dir, "dist"), (0, path_1.join)(context.componentConfig.dir, ".next")], __read((_d = (_c = buildConfig.artifactsPaths) === null || _c === void 0 ? void 0 : _c.map(function (path) {
349870
349871
  return (0, path_1.join)(context.componentConfig.dir, path);
349871
349872
  })) !== null && _d !== void 0 ? _d : []), false)
349872
349873
  }
@@ -350601,7 +350602,7 @@ exports.readConfigSync = readConfigSync;
350601
350602
 
350602
350603
  exports.__esModule = true;
350603
350604
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
350604
- exports.PIPELINE_IMAGE_TAG = "inventory-14f548ef" || 0;
350605
+ exports.PIPELINE_IMAGE_TAG = "inventory-8c6dd3ed" || 0;
350605
350606
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
350606
350607
 
350607
350608
  /***/ }),
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "node": ">=12.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@catladder/pipeline": "0.0.0-inventory-14f548ef",
27
+ "@catladder/pipeline": "0.0.0-inventory-8c6dd3ed",
28
28
  "@kubernetes/client-node": "^0.16.2",
29
29
  "@tsconfig/node14": "^1.0.1",
30
30
  "@types/common-tags": "^1.8.0",
@@ -57,6 +57,6 @@
57
57
  "typescript": "^4.5.4",
58
58
  "vorpal": "^1.12.0"
59
59
  },
60
- "version": "0.0.0-inventory-14f548ef",
60
+ "version": "0.0.0-inventory-8c6dd3ed",
61
61
  "stableVersion": "0.0.0"
62
62
  }