@catladder/cli 0.0.0-main-022bac09 → 0.0.0-main-52820683
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/bundles/catenv/index.js +60 -15
- package/dist/bundles/cli/index.js +60 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -39947,9 +39947,12 @@ var createNodeBuildJobs = function (context) {
|
|
|
39947
39947
|
cache: __spreadArray(__spreadArray(__spreadArray([], __read((_b = (0, utils_1.ensureArray)(buildConfig.jobCache)) !== null && _b !== void 0 ? _b : []), false), __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
39948
39948
|
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_c = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _c !== void 0 ? _c : []), false),
|
|
39949
39949
|
artifacts: {
|
|
39950
|
-
paths: __spreadArray([
|
|
39951
|
-
|
|
39952
|
-
|
|
39950
|
+
paths: __spreadArray([context.componentConfig.dir], __read((_e = (_d = context.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.currentWorkspaceDependencies) !== null && _e !== void 0 ? _e : []), false).flatMap(function (dir) {
|
|
39951
|
+
var _a, _b;
|
|
39952
|
+
return __spreadArray([(0, path_1.join)(dir, "__build_info.json"), (0, path_1.join)(dir, "dist"), (0, path_1.join)(dir, ".next")], __read((_b = (_a = buildConfig.artifactsPaths) === null || _a === void 0 ? void 0 : _a.map(function (path) {
|
|
39953
|
+
return (0, path_1.join)(dir, path);
|
|
39954
|
+
})) !== null && _b !== void 0 ? _b : []), false);
|
|
39955
|
+
}),
|
|
39953
39956
|
expire_in: "1 day"
|
|
39954
39957
|
},
|
|
39955
39958
|
jobTags: buildConfig.jobTags
|
|
@@ -40017,6 +40020,7 @@ exports.__esModule = true;
|
|
|
40017
40020
|
exports.getNextCache = exports.getNodeCache = exports.getNodeModulesCache = exports.getYarnCache = void 0;
|
|
40018
40021
|
var path_1 = __nccwpck_require__(1017);
|
|
40019
40022
|
var slugify_1 = __importDefault(__nccwpck_require__(4035));
|
|
40023
|
+
var lodash_1 = __nccwpck_require__(3255);
|
|
40020
40024
|
var getYarnCache = function (context, policy) {
|
|
40021
40025
|
var _a;
|
|
40022
40026
|
if (policy === void 0) {
|
|
@@ -40046,9 +40050,9 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
40046
40050
|
// if component is in a shared workspace, use workspace cache. use individual cache else
|
|
40047
40051
|
key: componentIsInWorkspace ? "node-modules-workspace" : (0, slugify_1["default"])(context.componentConfig.dir) + "-node-modules",
|
|
40048
40052
|
policy: policy,
|
|
40049
|
-
paths: __spreadArray([], __read(componentIsInWorkspace ? __spreadArray(["node_modules"], __read((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
40053
|
+
paths: __spreadArray([], __read(componentIsInWorkspace ? (0, lodash_1.uniq)(__spreadArray(["node_modules"], __read((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
40050
40054
|
return (0, path_1.join)(w.location, "node_modules");
|
|
40051
|
-
})) !== null && _c !== void 0 ? _c : []), false) : [(0, path_1.join)(context.componentConfig.dir, "node_modules")]), false)
|
|
40055
|
+
})) !== null && _c !== void 0 ? _c : []), false)) : [(0, path_1.join)(context.componentConfig.dir, "node_modules")]), false)
|
|
40052
40056
|
}];
|
|
40053
40057
|
};
|
|
40054
40058
|
exports.getNodeModulesCache = getNodeModulesCache;
|
|
@@ -40865,7 +40869,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
40865
40869
|
|
|
40866
40870
|
exports.__esModule = true;
|
|
40867
40871
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
40868
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
40872
|
+
exports.PIPELINE_IMAGE_TAG = "main-52820683" || 0;
|
|
40869
40873
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
40870
40874
|
|
|
40871
40875
|
/***/ }),
|
|
@@ -45626,7 +45630,7 @@ var path_equal_1 = __nccwpck_require__(4843);
|
|
|
45626
45630
|
var yarnUtils_1 = __nccwpck_require__(1369);
|
|
45627
45631
|
var getPackageManagerInfo = function (config, componentName) {
|
|
45628
45632
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
45629
|
-
var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths,
|
|
45633
|
+
var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths, currentWorkspaceDependencies, pathsToCopyInDocker;
|
|
45630
45634
|
return __generator(this, function (_a) {
|
|
45631
45635
|
switch (_a.label) {
|
|
45632
45636
|
case 0:
|
|
@@ -45653,19 +45657,15 @@ var getPackageManagerInfo = function (config, componentName) {
|
|
|
45653
45657
|
})), false).filter(function (f) {
|
|
45654
45658
|
return (0, fs_1.existsSync)(f);
|
|
45655
45659
|
});
|
|
45656
|
-
|
|
45657
|
-
|
|
45658
|
-
return (_a = workspaces.find(function (w) {
|
|
45659
|
-
return w.name === name;
|
|
45660
|
-
})) === null || _a === void 0 ? void 0 : _a.location;
|
|
45661
|
-
}).filter(Boolean) : [];
|
|
45662
|
-
pathsToCopyInDocker = __spreadArray(__spreadArray(__spreadArray(__spreadArray([packageJson], __read(workspacePackageJson ? [workspacePackageJson] : []), false), [lockFile], false), __read(configFilePaths), false), __read(workspaceDependencies), false);
|
|
45660
|
+
currentWorkspaceDependencies = currentWorkspace ? (0, yarnUtils_1.getWorkspaceDependencies)(currentWorkspace, workspaces) : [];
|
|
45661
|
+
pathsToCopyInDocker = __spreadArray(__spreadArray(__spreadArray(__spreadArray([packageJson], __read(workspacePackageJson ? [workspacePackageJson] : []), false), [lockFile], false), __read(configFilePaths), false), __read(currentWorkspaceDependencies), false);
|
|
45663
45662
|
return [2 /*return*/, {
|
|
45664
45663
|
type: "yarn",
|
|
45665
45664
|
workspaces: workspaces,
|
|
45666
45665
|
version: version,
|
|
45667
45666
|
isClassic: isClassic,
|
|
45668
45667
|
currentWorkspace: currentWorkspace,
|
|
45668
|
+
currentWorkspaceDependencies: currentWorkspaceDependencies,
|
|
45669
45669
|
componentIsInWorkspace: componentIsInWorkspace,
|
|
45670
45670
|
pathsToCopyInDocker: pathsToCopyInDocker
|
|
45671
45671
|
}];
|
|
@@ -45798,13 +45798,44 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
45798
45798
|
};
|
|
45799
45799
|
}
|
|
45800
45800
|
};
|
|
45801
|
+
var __read = this && this.__read || function (o, n) {
|
|
45802
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
45803
|
+
if (!m) return o;
|
|
45804
|
+
var i = m.call(o),
|
|
45805
|
+
r,
|
|
45806
|
+
ar = [],
|
|
45807
|
+
e;
|
|
45808
|
+
try {
|
|
45809
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
45810
|
+
} catch (error) {
|
|
45811
|
+
e = {
|
|
45812
|
+
error: error
|
|
45813
|
+
};
|
|
45814
|
+
} finally {
|
|
45815
|
+
try {
|
|
45816
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
45817
|
+
} finally {
|
|
45818
|
+
if (e) throw e.error;
|
|
45819
|
+
}
|
|
45820
|
+
}
|
|
45821
|
+
return ar;
|
|
45822
|
+
};
|
|
45823
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
45824
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45825
|
+
if (ar || !(i in from)) {
|
|
45826
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
45827
|
+
ar[i] = from[i];
|
|
45828
|
+
}
|
|
45829
|
+
}
|
|
45830
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
45831
|
+
};
|
|
45801
45832
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
45802
45833
|
return mod && mod.__esModule ? mod : {
|
|
45803
45834
|
"default": mod
|
|
45804
45835
|
};
|
|
45805
45836
|
};
|
|
45806
45837
|
exports.__esModule = true;
|
|
45807
|
-
exports.getWorkspaces = exports.getYarnVersion = void 0;
|
|
45838
|
+
exports.getWorkspaceDependencies = exports.getWorkspaces = exports.getYarnVersion = void 0;
|
|
45808
45839
|
var child_process_promise_1 = __nccwpck_require__(5763);
|
|
45809
45840
|
var memoizee_1 = __importDefault(__nccwpck_require__(5839));
|
|
45810
45841
|
var execOrFail = function (cmd, onFail) {
|
|
@@ -45874,6 +45905,20 @@ exports.getWorkspaces = (0, memoizee_1["default"])(function (isClassic) {
|
|
|
45874
45905
|
}, {
|
|
45875
45906
|
promise: true
|
|
45876
45907
|
});
|
|
45908
|
+
// recursivly get all workspace dependencies
|
|
45909
|
+
var getWorkspaceDependencies = function (ws, allWorkspaces) {
|
|
45910
|
+
return ws ? __spreadArray(__spreadArray([], __read(ws.workspaceDependencies), false), __read(ws.mismatchedWorkspaceDependencies), false).flatMap(function (location) {
|
|
45911
|
+
// we have to do this recursivly
|
|
45912
|
+
var otherWorkspace = allWorkspaces.find(function (w) {
|
|
45913
|
+
return w.location === location;
|
|
45914
|
+
});
|
|
45915
|
+
if (otherWorkspace) {
|
|
45916
|
+
return __spreadArray(__spreadArray([], __read((0, exports.getWorkspaceDependencies)(otherWorkspace, allWorkspaces)), false), [otherWorkspace.location], false);
|
|
45917
|
+
}
|
|
45918
|
+
return [];
|
|
45919
|
+
}).filter(Boolean) : [];
|
|
45920
|
+
};
|
|
45921
|
+
exports.getWorkspaceDependencies = getWorkspaceDependencies;
|
|
45877
45922
|
|
|
45878
45923
|
/***/ }),
|
|
45879
45924
|
|
|
@@ -354066,9 +354066,12 @@ var createNodeBuildJobs = function (context) {
|
|
|
354066
354066
|
cache: __spreadArray(__spreadArray(__spreadArray([], __read((_b = (0, utils_1.ensureArray)(buildConfig.jobCache)) !== null && _b !== void 0 ? _b : []), false), __read((0, cache_1.getNodeCache)(context)), false), __read((0, cache_1.getNextCache)(context)), false),
|
|
354067
354067
|
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_c = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _c !== void 0 ? _c : []), false),
|
|
354068
354068
|
artifacts: {
|
|
354069
|
-
paths: __spreadArray([
|
|
354070
|
-
|
|
354071
|
-
|
|
354069
|
+
paths: __spreadArray([context.componentConfig.dir], __read((_e = (_d = context.packageManagerInfo) === null || _d === void 0 ? void 0 : _d.currentWorkspaceDependencies) !== null && _e !== void 0 ? _e : []), false).flatMap(function (dir) {
|
|
354070
|
+
var _a, _b;
|
|
354071
|
+
return __spreadArray([(0, path_1.join)(dir, "__build_info.json"), (0, path_1.join)(dir, "dist"), (0, path_1.join)(dir, ".next")], __read((_b = (_a = buildConfig.artifactsPaths) === null || _a === void 0 ? void 0 : _a.map(function (path) {
|
|
354072
|
+
return (0, path_1.join)(dir, path);
|
|
354073
|
+
})) !== null && _b !== void 0 ? _b : []), false);
|
|
354074
|
+
}),
|
|
354072
354075
|
expire_in: "1 day"
|
|
354073
354076
|
},
|
|
354074
354077
|
jobTags: buildConfig.jobTags
|
|
@@ -354136,6 +354139,7 @@ exports.__esModule = true;
|
|
|
354136
354139
|
exports.getNextCache = exports.getNodeCache = exports.getNodeModulesCache = exports.getYarnCache = void 0;
|
|
354137
354140
|
var path_1 = __nccwpck_require__(71017);
|
|
354138
354141
|
var slugify_1 = __importDefault(__nccwpck_require__(44035));
|
|
354142
|
+
var lodash_1 = __nccwpck_require__(23255);
|
|
354139
354143
|
var getYarnCache = function (context, policy) {
|
|
354140
354144
|
var _a;
|
|
354141
354145
|
if (policy === void 0) {
|
|
@@ -354165,9 +354169,9 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
354165
354169
|
// if component is in a shared workspace, use workspace cache. use individual cache else
|
|
354166
354170
|
key: componentIsInWorkspace ? "node-modules-workspace" : (0, slugify_1["default"])(context.componentConfig.dir) + "-node-modules",
|
|
354167
354171
|
policy: policy,
|
|
354168
|
-
paths: __spreadArray([], __read(componentIsInWorkspace ? __spreadArray(["node_modules"], __read((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
354172
|
+
paths: __spreadArray([], __read(componentIsInWorkspace ? (0, lodash_1.uniq)(__spreadArray(["node_modules"], __read((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
354169
354173
|
return (0, path_1.join)(w.location, "node_modules");
|
|
354170
|
-
})) !== null && _c !== void 0 ? _c : []), false) : [(0, path_1.join)(context.componentConfig.dir, "node_modules")]), false)
|
|
354174
|
+
})) !== null && _c !== void 0 ? _c : []), false)) : [(0, path_1.join)(context.componentConfig.dir, "node_modules")]), false)
|
|
354171
354175
|
}];
|
|
354172
354176
|
};
|
|
354173
354177
|
exports.getNodeModulesCache = getNodeModulesCache;
|
|
@@ -354984,7 +354988,7 @@ exports.readConfigSync = readConfigSync;
|
|
|
354984
354988
|
|
|
354985
354989
|
exports.__esModule = true;
|
|
354986
354990
|
exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
|
|
354987
|
-
exports.PIPELINE_IMAGE_TAG = "main-
|
|
354991
|
+
exports.PIPELINE_IMAGE_TAG = "main-52820683" || 0;
|
|
354988
354992
|
exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
|
|
354989
354993
|
|
|
354990
354994
|
/***/ }),
|
|
@@ -359745,7 +359749,7 @@ var path_equal_1 = __nccwpck_require__(84843);
|
|
|
359745
359749
|
var yarnUtils_1 = __nccwpck_require__(51369);
|
|
359746
359750
|
var getPackageManagerInfo = function (config, componentName) {
|
|
359747
359751
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
359748
|
-
var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths,
|
|
359752
|
+
var version, isClassic, component, workspaces, currentWorkspace, componentIsInWorkspace, workspaceRoot, packageJson, workspacePackageJson, lockFile, configFiles, configFilePaths, currentWorkspaceDependencies, pathsToCopyInDocker;
|
|
359749
359753
|
return __generator(this, function (_a) {
|
|
359750
359754
|
switch (_a.label) {
|
|
359751
359755
|
case 0:
|
|
@@ -359772,19 +359776,15 @@ var getPackageManagerInfo = function (config, componentName) {
|
|
|
359772
359776
|
})), false).filter(function (f) {
|
|
359773
359777
|
return (0, fs_1.existsSync)(f);
|
|
359774
359778
|
});
|
|
359775
|
-
|
|
359776
|
-
|
|
359777
|
-
return (_a = workspaces.find(function (w) {
|
|
359778
|
-
return w.name === name;
|
|
359779
|
-
})) === null || _a === void 0 ? void 0 : _a.location;
|
|
359780
|
-
}).filter(Boolean) : [];
|
|
359781
|
-
pathsToCopyInDocker = __spreadArray(__spreadArray(__spreadArray(__spreadArray([packageJson], __read(workspacePackageJson ? [workspacePackageJson] : []), false), [lockFile], false), __read(configFilePaths), false), __read(workspaceDependencies), false);
|
|
359779
|
+
currentWorkspaceDependencies = currentWorkspace ? (0, yarnUtils_1.getWorkspaceDependencies)(currentWorkspace, workspaces) : [];
|
|
359780
|
+
pathsToCopyInDocker = __spreadArray(__spreadArray(__spreadArray(__spreadArray([packageJson], __read(workspacePackageJson ? [workspacePackageJson] : []), false), [lockFile], false), __read(configFilePaths), false), __read(currentWorkspaceDependencies), false);
|
|
359782
359781
|
return [2 /*return*/, {
|
|
359783
359782
|
type: "yarn",
|
|
359784
359783
|
workspaces: workspaces,
|
|
359785
359784
|
version: version,
|
|
359786
359785
|
isClassic: isClassic,
|
|
359787
359786
|
currentWorkspace: currentWorkspace,
|
|
359787
|
+
currentWorkspaceDependencies: currentWorkspaceDependencies,
|
|
359788
359788
|
componentIsInWorkspace: componentIsInWorkspace,
|
|
359789
359789
|
pathsToCopyInDocker: pathsToCopyInDocker
|
|
359790
359790
|
}];
|
|
@@ -359917,13 +359917,44 @@ var __generator = this && this.__generator || function (thisArg, body) {
|
|
|
359917
359917
|
};
|
|
359918
359918
|
}
|
|
359919
359919
|
};
|
|
359920
|
+
var __read = this && this.__read || function (o, n) {
|
|
359921
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
359922
|
+
if (!m) return o;
|
|
359923
|
+
var i = m.call(o),
|
|
359924
|
+
r,
|
|
359925
|
+
ar = [],
|
|
359926
|
+
e;
|
|
359927
|
+
try {
|
|
359928
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
359929
|
+
} catch (error) {
|
|
359930
|
+
e = {
|
|
359931
|
+
error: error
|
|
359932
|
+
};
|
|
359933
|
+
} finally {
|
|
359934
|
+
try {
|
|
359935
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
359936
|
+
} finally {
|
|
359937
|
+
if (e) throw e.error;
|
|
359938
|
+
}
|
|
359939
|
+
}
|
|
359940
|
+
return ar;
|
|
359941
|
+
};
|
|
359942
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
359943
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
359944
|
+
if (ar || !(i in from)) {
|
|
359945
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
359946
|
+
ar[i] = from[i];
|
|
359947
|
+
}
|
|
359948
|
+
}
|
|
359949
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
359950
|
+
};
|
|
359920
359951
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
359921
359952
|
return mod && mod.__esModule ? mod : {
|
|
359922
359953
|
"default": mod
|
|
359923
359954
|
};
|
|
359924
359955
|
};
|
|
359925
359956
|
exports.__esModule = true;
|
|
359926
|
-
exports.getWorkspaces = exports.getYarnVersion = void 0;
|
|
359957
|
+
exports.getWorkspaceDependencies = exports.getWorkspaces = exports.getYarnVersion = void 0;
|
|
359927
359958
|
var child_process_promise_1 = __nccwpck_require__(75763);
|
|
359928
359959
|
var memoizee_1 = __importDefault(__nccwpck_require__(85839));
|
|
359929
359960
|
var execOrFail = function (cmd, onFail) {
|
|
@@ -359993,6 +360024,20 @@ exports.getWorkspaces = (0, memoizee_1["default"])(function (isClassic) {
|
|
|
359993
360024
|
}, {
|
|
359994
360025
|
promise: true
|
|
359995
360026
|
});
|
|
360027
|
+
// recursivly get all workspace dependencies
|
|
360028
|
+
var getWorkspaceDependencies = function (ws, allWorkspaces) {
|
|
360029
|
+
return ws ? __spreadArray(__spreadArray([], __read(ws.workspaceDependencies), false), __read(ws.mismatchedWorkspaceDependencies), false).flatMap(function (location) {
|
|
360030
|
+
// we have to do this recursivly
|
|
360031
|
+
var otherWorkspace = allWorkspaces.find(function (w) {
|
|
360032
|
+
return w.location === location;
|
|
360033
|
+
});
|
|
360034
|
+
if (otherWorkspace) {
|
|
360035
|
+
return __spreadArray(__spreadArray([], __read((0, exports.getWorkspaceDependencies)(otherWorkspace, allWorkspaces)), false), [otherWorkspace.location], false);
|
|
360036
|
+
}
|
|
360037
|
+
return [];
|
|
360038
|
+
}).filter(Boolean) : [];
|
|
360039
|
+
};
|
|
360040
|
+
exports.getWorkspaceDependencies = getWorkspaceDependencies;
|
|
359996
360041
|
|
|
359997
360042
|
/***/ }),
|
|
359998
360043
|
|