@catladder/cli 5.1.1 → 5.1.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.
- package/dist/bundles/catenv/index.js +19 -4
- package/dist/bundles/cli/index.js +19 -4
- package/dist/bundles/skills/catladder-pipelines/SKILL.md +3 -2
- package/dist/packages/pipeline/src/catci/shippedCatci.d.ts +8 -0
- package/dist/packages/pipeline/src/catci/shippedCatci.js +19 -4
- package/dist/packages/pipeline/src/catci/shippedCatci.js.map +1 -1
- package/dist/skills/catladder-pipelines/SKILL.md +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -7169,7 +7169,7 @@ exports.isOfBuildType = isOfBuildType;
|
|
|
7169
7169
|
"use strict";
|
|
7170
7170
|
|
|
7171
7171
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7172
|
-
exports.getCatciGeneratedFiles = exports.GENERATED_CATCI_FOLDER = void 0;
|
|
7172
|
+
exports.getCatciGeneratedFiles = exports.makeCatciGeneratedFiles = exports.GENERATED_CATCI_FOLDER = void 0;
|
|
7173
7173
|
const fs_1 = __nccwpck_require__(79896);
|
|
7174
7174
|
const path_1 = __nccwpck_require__(16928);
|
|
7175
7175
|
exports.GENERATED_CATCI_FOLDER = ".catladder-generated/catci";
|
|
@@ -7197,14 +7197,29 @@ const getShippedCatciBundle = () => {
|
|
|
7197
7197
|
return found;
|
|
7198
7198
|
};
|
|
7199
7199
|
/**
|
|
7200
|
-
* the
|
|
7200
|
+
* the files that make up the materialized catci folder for a given
|
|
7201
|
+
* bundle content
|
|
7201
7202
|
*/
|
|
7202
|
-
const
|
|
7203
|
+
const makeCatciGeneratedFiles = (bundle) => [
|
|
7203
7204
|
{
|
|
7204
7205
|
path: (0, path_1.join)(exports.GENERATED_CATCI_FOLDER, "index.js"),
|
|
7205
|
-
content:
|
|
7206
|
+
content: bundle,
|
|
7207
|
+
},
|
|
7208
|
+
{
|
|
7209
|
+
// the bundle is commonjs (ncc output using `__dirname`), but node
|
|
7210
|
+
// resolves the module format from the nearest package.json: a
|
|
7211
|
+
// consumer whose root package.json declares `"type": "module"`
|
|
7212
|
+
// would parse the bundle as ESM and crash on the first `__dirname`.
|
|
7213
|
+
// a sibling package.json pins the folder to commonjs regardless.
|
|
7214
|
+
path: (0, path_1.join)(exports.GENERATED_CATCI_FOLDER, "package.json"),
|
|
7215
|
+
content: `${JSON.stringify({ type: "commonjs" }, null, 2)}\n`,
|
|
7206
7216
|
},
|
|
7207
7217
|
];
|
|
7218
|
+
exports.makeCatciGeneratedFiles = makeCatciGeneratedFiles;
|
|
7219
|
+
/**
|
|
7220
|
+
* the catci files to materialize into the generated folder
|
|
7221
|
+
*/
|
|
7222
|
+
const getCatciGeneratedFiles = () => (0, exports.makeCatciGeneratedFiles)((0, fs_1.readFileSync)(getShippedCatciBundle(), "utf-8"));
|
|
7208
7223
|
exports.getCatciGeneratedFiles = getCatciGeneratedFiles;
|
|
7209
7224
|
//# sourceMappingURL=shippedCatci.js.map
|
|
7210
7225
|
|
|
@@ -13620,7 +13620,7 @@ exports.isOfBuildType = isOfBuildType;
|
|
|
13620
13620
|
"use strict";
|
|
13621
13621
|
|
|
13622
13622
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
13623
|
-
exports.getCatciGeneratedFiles = exports.GENERATED_CATCI_FOLDER = void 0;
|
|
13623
|
+
exports.getCatciGeneratedFiles = exports.makeCatciGeneratedFiles = exports.GENERATED_CATCI_FOLDER = void 0;
|
|
13624
13624
|
const fs_1 = __nccwpck_require__(79896);
|
|
13625
13625
|
const path_1 = __nccwpck_require__(16928);
|
|
13626
13626
|
exports.GENERATED_CATCI_FOLDER = ".catladder-generated/catci";
|
|
@@ -13648,14 +13648,29 @@ const getShippedCatciBundle = () => {
|
|
|
13648
13648
|
return found;
|
|
13649
13649
|
};
|
|
13650
13650
|
/**
|
|
13651
|
-
* the
|
|
13651
|
+
* the files that make up the materialized catci folder for a given
|
|
13652
|
+
* bundle content
|
|
13652
13653
|
*/
|
|
13653
|
-
const
|
|
13654
|
+
const makeCatciGeneratedFiles = (bundle) => [
|
|
13654
13655
|
{
|
|
13655
13656
|
path: (0, path_1.join)(exports.GENERATED_CATCI_FOLDER, "index.js"),
|
|
13656
|
-
content:
|
|
13657
|
+
content: bundle,
|
|
13658
|
+
},
|
|
13659
|
+
{
|
|
13660
|
+
// the bundle is commonjs (ncc output using `__dirname`), but node
|
|
13661
|
+
// resolves the module format from the nearest package.json: a
|
|
13662
|
+
// consumer whose root package.json declares `"type": "module"`
|
|
13663
|
+
// would parse the bundle as ESM and crash on the first `__dirname`.
|
|
13664
|
+
// a sibling package.json pins the folder to commonjs regardless.
|
|
13665
|
+
path: (0, path_1.join)(exports.GENERATED_CATCI_FOLDER, "package.json"),
|
|
13666
|
+
content: `${JSON.stringify({ type: "commonjs" }, null, 2)}\n`,
|
|
13657
13667
|
},
|
|
13658
13668
|
];
|
|
13669
|
+
exports.makeCatciGeneratedFiles = makeCatciGeneratedFiles;
|
|
13670
|
+
/**
|
|
13671
|
+
* the catci files to materialize into the generated folder
|
|
13672
|
+
*/
|
|
13673
|
+
const getCatciGeneratedFiles = () => (0, exports.makeCatciGeneratedFiles)((0, fs_1.readFileSync)(getShippedCatciBundle(), "utf-8"));
|
|
13659
13674
|
exports.getCatciGeneratedFiles = getCatciGeneratedFiles;
|
|
13660
13675
|
//# sourceMappingURL=shippedCatci.js.map
|
|
13661
13676
|
|
|
@@ -70,8 +70,9 @@ jobs). Their definitions are materialized into
|
|
|
70
70
|
`.catladder-generated/images/` and built in the project's own registry
|
|
71
71
|
under `catladder/` (content-hashed, rebuilt only on change).
|
|
72
72
|
`.catladder-generated/catci/` holds a small bundled CI companion used by
|
|
73
|
-
generated jobs (e.g. the release security audit)
|
|
74
|
-
|
|
73
|
+
generated jobs (e.g. the release security audit) plus a `package.json`
|
|
74
|
+
pinning the folder to CommonJS (needed when the project's root
|
|
75
|
+
`package.json` has `"type": "module"`) — all generated, never edit.
|
|
75
76
|
|
|
76
77
|
Projects can declare their own job images under `images` in
|
|
77
78
|
`catladder.ts` (`🐳 image <name>` build jobs, pushed to `job-images/` in
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export declare const GENERATED_CATCI_FOLDER = ".catladder-generated/catci";
|
|
2
|
+
/**
|
|
3
|
+
* the files that make up the materialized catci folder for a given
|
|
4
|
+
* bundle content
|
|
5
|
+
*/
|
|
6
|
+
export declare const makeCatciGeneratedFiles: (bundle: string) => Array<{
|
|
7
|
+
path: string;
|
|
8
|
+
content: string;
|
|
9
|
+
}>;
|
|
2
10
|
/**
|
|
3
11
|
* the catci files to materialize into the generated folder
|
|
4
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getCatciGeneratedFiles = exports.GENERATED_CATCI_FOLDER = void 0;
|
|
3
|
+
exports.getCatciGeneratedFiles = exports.makeCatciGeneratedFiles = exports.GENERATED_CATCI_FOLDER = void 0;
|
|
4
4
|
const fs_1 = require("fs");
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
exports.GENERATED_CATCI_FOLDER = ".catladder-generated/catci";
|
|
@@ -28,13 +28,28 @@ const getShippedCatciBundle = () => {
|
|
|
28
28
|
return found;
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
31
|
-
* the
|
|
31
|
+
* the files that make up the materialized catci folder for a given
|
|
32
|
+
* bundle content
|
|
32
33
|
*/
|
|
33
|
-
const
|
|
34
|
+
const makeCatciGeneratedFiles = (bundle) => [
|
|
34
35
|
{
|
|
35
36
|
path: (0, path_1.join)(exports.GENERATED_CATCI_FOLDER, "index.js"),
|
|
36
|
-
content:
|
|
37
|
+
content: bundle,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
// the bundle is commonjs (ncc output using `__dirname`), but node
|
|
41
|
+
// resolves the module format from the nearest package.json: a
|
|
42
|
+
// consumer whose root package.json declares `"type": "module"`
|
|
43
|
+
// would parse the bundle as ESM and crash on the first `__dirname`.
|
|
44
|
+
// a sibling package.json pins the folder to commonjs regardless.
|
|
45
|
+
path: (0, path_1.join)(exports.GENERATED_CATCI_FOLDER, "package.json"),
|
|
46
|
+
content: `${JSON.stringify({ type: "commonjs" }, null, 2)}\n`,
|
|
37
47
|
},
|
|
38
48
|
];
|
|
49
|
+
exports.makeCatciGeneratedFiles = makeCatciGeneratedFiles;
|
|
50
|
+
/**
|
|
51
|
+
* the catci files to materialize into the generated folder
|
|
52
|
+
*/
|
|
53
|
+
const getCatciGeneratedFiles = () => (0, exports.makeCatciGeneratedFiles)((0, fs_1.readFileSync)(getShippedCatciBundle(), "utf-8"));
|
|
39
54
|
exports.getCatciGeneratedFiles = getCatciGeneratedFiles;
|
|
40
55
|
//# sourceMappingURL=shippedCatci.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shippedCatci.js","sourceRoot":"","sources":["../../../../../../../packages/pipeline/src/catci/shippedCatci.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAA4B;AAEf,QAAA,sBAAsB,GAAG,4BAA4B,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,qBAAqB,GAAG,GAAW,EAAE;IACzC,MAAM,UAAU,GAAG;QACjB,8EAA8E;QAC9E,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC;QAC1C,oFAAoF;QACpF,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;QACvE,+EAA+E;QAC/E,IAAA,WAAI,EACF,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,CACX;KACF,CAAC;IACF,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,eAAU,EAAC,SAAS,CAAC,CAAC,CAAC;IACpE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"shippedCatci.js","sourceRoot":"","sources":["../../../../../../../packages/pipeline/src/catci/shippedCatci.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,+BAA4B;AAEf,QAAA,sBAAsB,GAAG,4BAA4B,CAAC;AAEnE;;;;;;;GAOG;AACH,MAAM,qBAAqB,GAAG,GAAW,EAAE;IACzC,MAAM,UAAU,GAAG;QACjB,8EAA8E;QAC9E,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,CAAC;QAC1C,oFAAoF;QACpF,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,CAAC;QACvE,+EAA+E;QAC/E,IAAA,WAAI,EACF,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,CACX;KACF,CAAC;IACF,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,eAAU,EAAC,SAAS,CAAC,CAAC,CAAC;IACpE,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,kFAAkF,CACnF,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACI,MAAM,uBAAuB,GAAG,CACrC,MAAc,EAC4B,EAAE,CAAC;IAC7C;QACE,IAAI,EAAE,IAAA,WAAI,EAAC,8BAAsB,EAAE,UAAU,CAAC;QAC9C,OAAO,EAAE,MAAM;KAChB;IACD;QACE,kEAAkE;QAClE,8DAA8D;QAC9D,+DAA+D;QAC/D,oEAAoE;QACpE,iEAAiE;QACjE,IAAI,EAAE,IAAA,WAAI,EAAC,8BAAsB,EAAE,cAAc,CAAC;QAClD,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;KAC9D;CACF,CAAC;AAhBW,QAAA,uBAAuB,2BAgBlC;AAEF;;GAEG;AACI,MAAM,sBAAsB,GAAG,GAGnC,EAAE,CAAC,IAAA,+BAAuB,EAAC,IAAA,iBAAY,EAAC,qBAAqB,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AAHjE,QAAA,sBAAsB,0BAG2C"}
|
|
@@ -70,8 +70,9 @@ jobs). Their definitions are materialized into
|
|
|
70
70
|
`.catladder-generated/images/` and built in the project's own registry
|
|
71
71
|
under `catladder/` (content-hashed, rebuilt only on change).
|
|
72
72
|
`.catladder-generated/catci/` holds a small bundled CI companion used by
|
|
73
|
-
generated jobs (e.g. the release security audit)
|
|
74
|
-
|
|
73
|
+
generated jobs (e.g. the release security audit) plus a `package.json`
|
|
74
|
+
pinning the folder to CommonJS (needed when the project's root
|
|
75
|
+
`package.json` has `"type": "module"`) — all generated, never edit.
|
|
75
76
|
|
|
76
77
|
Projects can declare their own job images under `images` in
|
|
77
78
|
`catladder.ts` (`🐳 image <name>` build jobs, pushed to `job-images/` in
|