@catladder/cli 0.0.0-main-d9bfb4f5 → 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.
- package/dist/bundles/catenv/index.js +4 -4
- package/dist/bundles/cli/index.js +4 -4
- package/dist/pipeline/src/context/createComponentContext.js +1 -1
- package/dist/pipeline/src/context/createComponentContext.js.map +1 -1
- package/dist/pipeline/src/pipeline/packageManager.d.ts +2 -2
- package/dist/pipeline/src/pipeline/packageManager.js +3 -3
- package/dist/pipeline/src/pipeline/packageManager.js.map +1 -1
- package/dist/pipeline/src/pipeline/yarn/yarnUtils.d.ts +2 -2
- package/dist/pipeline/src/types/context.d.ts +8 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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);
|
|
@@ -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.
|
|
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
|
|
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.
|
|
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.
|
|
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);
|
|
@@ -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.
|
|
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
|
|
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.
|
|
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.
|
|
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,
|
|
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,CAC7D,CAAC,QAAQ,CAAC,UAAU,CAAC;wBACxB,MAAM,EAAE,qBAAY,CAClB,8BAA8B,CAAC,MAAM,CAAC,IAAwB,CAC/D,CAAC,QAAQ,CAAC,UAAiB,CAAC;qBAC9B;oBACH,CAAC,CAAC;wBACE,KAAK,EAAE,EAAE;wBACT,MAAM,EAAE,EAAE;qBACX,CAAC;gBACA,eAAe,GAAG,IAAA,8BAAsB,EAC5C,QAAQ,EACR,8BAA8B,CAC/B,CAAC;gBAEkB,qBAAM,IAAA,+BAAc,EAAC,GAAG,CAAC,EAAA;;gBAAvC,WAAW,GAAG,SAAyB;gBACrC,MAAM,GAA6B,eAAe,OAA5C,EAAE,KAAK,GAAsB,eAAe,MAArC,EAAE,UAAU,GAAU,eAAe,WAAzB,EAAE,GAAG,GAAK,eAAe,IAApB,CAAqB;gBACrD,OAAO,GAAyC;oBACpD,UAAU,EAAE,GAAG,CAAC,MAAM;oBACtB,eAAe,iBAAA;oBAEf,KAAK,EAAE;wBACL,GAAG,EAAE,GAAG;wBACR,kBAAkB,EAAE,kBAAkB;wBACtC,MAAM,EAAE,KAAK;qBACd;oBACD,MAAM,EAAE,MAAM;wBACZ,CAAC,CAAC;4BACE,MAAM,EAAE,MAAM;yBACf;wBACH,CAAC,CAAC,IAAI;oBACR,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,2 +1,2 @@
|
|
|
1
|
-
import type { Config,
|
|
2
|
-
export declare const
|
|
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.
|
|
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
|
|
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.
|
|
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,
|
|
1
|
+
{"version":3,"file":"packageManager.js","sourceRoot":"","sources":["../../../../../pipeline/src/pipeline/packageManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yBAAgC;AAChC,6BAA4B;AAC5B,yCAAuC;AAEvC,8CAI0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GAAG,EAAE,CAAC,CAAC,EAAtB,CAAsB,CAAC,UACjD,MAAM,CAAC,UAAC,CAAC,IAAK,OAAA,IAAA,eAAU,EAAC,CAAC,CAAC,EAAb,CAAa,CAAC,CAAC;gBAIzB,4BAA4B,GAAG,gBAAgB;oBACnD,CAAC,CAAC,IAAA,oCAAwB,EAAC,gBAAgB,EAAE,UAAU,CAAC;oBACxD,CAAC,CAAC,EAAE,CAAC;gBAED,mBAAmB;oBACvB,WAAW;0BACR,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,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,iCAAiC,qCAuD5C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import memoizee from "memoizee";
|
|
2
|
-
import type {
|
|
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<
|
|
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
|
|
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
|
|
62
|
+
export type PackageManagerInfoComponent = YarnPackageManagerInfoComponent;
|
|
63
63
|
export type ContextBeforeConfig = {
|
|
64
64
|
componentName: string;
|
|
65
65
|
fullConfig: Config;
|
|
66
|
-
packageManagerInfo?:
|
|
66
|
+
packageManagerInfo?: PackageManagerInfoComponent;
|
|
67
67
|
};
|
|
68
|
-
export type
|
|
68
|
+
export type BuildContextComponent = {
|
|
69
69
|
dir: string;
|
|
70
|
-
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:
|
|
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:
|
|
95
|
+
packageManagerInfo: PackageManagerInfoComponent;
|
|
95
96
|
customJobs?: CatladderJob[];
|
|
96
97
|
};
|
|
97
98
|
/**
|