@catladder/cli 0.0.0-next-36ae84bc → 0.0.0-next-d3840b21
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 +8 -2
- package/dist/bundles/cli/index.js +8 -2
- package/dist/pipeline/src/build/cache/createJobCache.js +5 -1
- package/dist/pipeline/src/build/cache/createJobCache.js.map +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +2 -0
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1299,14 +1299,18 @@ exports.componentContextNeedsBuildTimeDotEnv = componentContextNeedsBuildTimeDot
|
|
|
1299
1299
|
/***/ }),
|
|
1300
1300
|
|
|
1301
1301
|
/***/ 340:
|
|
1302
|
-
/***/ ((__unused_webpack_module, exports, __nccwpck_require__)
|
|
1302
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
1303
1303
|
|
|
1304
1304
|
"use strict";
|
|
1305
1305
|
|
|
1306
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1307
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
1308
|
+
};
|
|
1306
1309
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1307
1310
|
exports.createJobCacheFromConfig = exports.createJobCacheFromCacheConfigs = void 0;
|
|
1308
1311
|
const path_1 = __nccwpck_require__(1017);
|
|
1309
1312
|
const getAllCacheConfigsFromConfig_1 = __nccwpck_require__(673);
|
|
1313
|
+
const slugify_1 = __importDefault(__nccwpck_require__(4035));
|
|
1310
1314
|
const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
1311
1315
|
if (caches.length === 0)
|
|
1312
1316
|
return undefined;
|
|
@@ -1335,7 +1339,7 @@ const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
|
1335
1339
|
? key
|
|
1336
1340
|
: typeof key === "string"
|
|
1337
1341
|
? (scope === "buildDir" // really edge case...
|
|
1338
|
-
? baseDir
|
|
1342
|
+
? (0, slugify_1.default)(baseDir)
|
|
1339
1343
|
: context.name) +
|
|
1340
1344
|
"-" +
|
|
1341
1345
|
key
|
|
@@ -1379,6 +1383,8 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
|
|
|
1379
1383
|
...(0, index_1.ensureArray)(configWithCache.cache),
|
|
1380
1384
|
...(context.type === "workspace"
|
|
1381
1385
|
? // also add cache configs of the components of that workspace
|
|
1386
|
+
// FIXNME: this only works currently for the build config
|
|
1387
|
+
// we would probably need to introduce a path to the right config property (build-->test or so)
|
|
1382
1388
|
context.components.flatMap((componentContext) => {
|
|
1383
1389
|
var _a;
|
|
1384
1390
|
return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
|
|
@@ -4465,14 +4465,18 @@ exports.componentContextNeedsBuildTimeDotEnv = componentContextNeedsBuildTimeDot
|
|
|
4465
4465
|
/***/ }),
|
|
4466
4466
|
|
|
4467
4467
|
/***/ 10340:
|
|
4468
|
-
/***/ ((__unused_webpack_module, exports, __nccwpck_require__)
|
|
4468
|
+
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
|
4469
4469
|
|
|
4470
4470
|
"use strict";
|
|
4471
4471
|
|
|
4472
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4473
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4474
|
+
};
|
|
4472
4475
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4473
4476
|
exports.createJobCacheFromConfig = exports.createJobCacheFromCacheConfigs = void 0;
|
|
4474
4477
|
const path_1 = __nccwpck_require__(71017);
|
|
4475
4478
|
const getAllCacheConfigsFromConfig_1 = __nccwpck_require__(30673);
|
|
4479
|
+
const slugify_1 = __importDefault(__nccwpck_require__(44035));
|
|
4476
4480
|
const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
4477
4481
|
if (caches.length === 0)
|
|
4478
4482
|
return undefined;
|
|
@@ -4501,7 +4505,7 @@ const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
|
4501
4505
|
? key
|
|
4502
4506
|
: typeof key === "string"
|
|
4503
4507
|
? (scope === "buildDir" // really edge case...
|
|
4504
|
-
? baseDir
|
|
4508
|
+
? (0, slugify_1.default)(baseDir)
|
|
4505
4509
|
: context.name) +
|
|
4506
4510
|
"-" +
|
|
4507
4511
|
key
|
|
@@ -4545,6 +4549,8 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
|
|
|
4545
4549
|
...(0, index_1.ensureArray)(configWithCache.cache),
|
|
4546
4550
|
...(context.type === "workspace"
|
|
4547
4551
|
? // also add cache configs of the components of that workspace
|
|
4552
|
+
// FIXNME: this only works currently for the build config
|
|
4553
|
+
// we would probably need to introduce a path to the right config property (build-->test or so)
|
|
4548
4554
|
context.components.flatMap((componentContext) => {
|
|
4549
4555
|
var _a;
|
|
4550
4556
|
return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.createJobCacheFromConfig = exports.createJobCacheFromCacheConfigs = void 0;
|
|
4
7
|
const path_1 = require("path");
|
|
5
8
|
const getAllCacheConfigsFromConfig_1 = require("./getAllCacheConfigsFromConfig");
|
|
9
|
+
const slugify_1 = __importDefault(require("slugify"));
|
|
6
10
|
const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
7
11
|
if (caches.length === 0)
|
|
8
12
|
return undefined;
|
|
@@ -31,7 +35,7 @@ const createJobCacheFromCacheConfigs = (context, caches) => {
|
|
|
31
35
|
? key
|
|
32
36
|
: typeof key === "string"
|
|
33
37
|
? (scope === "buildDir" // really edge case...
|
|
34
|
-
? baseDir
|
|
38
|
+
? (0, slugify_1.default)(baseDir)
|
|
35
39
|
: context.name) +
|
|
36
40
|
"-" +
|
|
37
41
|
key
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createJobCache.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/cache/createJobCache.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createJobCache.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/cache/createJobCache.ts"],"names":[],"mappings":";;;;;;AAAA,+BAA4B;AAK5B,iFAA8E;AAC9E,sDAA8B;AAEvB,MAAM,8BAA8B,GAAG,CAC5C,OAAgB,EAChB,MAAqB,EACY,EAAE;IACnC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAE1C,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CACnC,CAAC,CAAC,EAA0B,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAC7C,CAAC;IACF,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,CACrC,CAAC,CAAC,EAA4B,EAAE,CAAC,KAAK,IAAI,CAAC,CAC5C,CAAC;IACF,4JAA4J;IAC5J,MAAM,YAAY,GAChB,eAAe,CAAC,MAAM,GAAG,CAAC;QACxB,CAAC,CAAC;YACE;gBACE,GAAG,EAAE,OAAO,CAAC,IAAI,GAAG,UAAU;gBAC9B,MAAM,EAAE,WAAW;gBACnB,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CACnC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;;oBAChB,MAAM,OAAO,GACX,CAAC,CAAC,QAAQ,KAAK,UAAU;wBACvB,CAAC,CAAC,EAAE;wBACJ,CAAC,CAAC,MAAA,CAAC,CAAC,OAAO,mCAAI,OAAO,CAAC,KAAK,CAAC,GAA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,CAAC,EAAE,EAAE,CAAC,IAAA,WAAI,EAAC,OAAO,EAAE,CAAC,CAAC,CAAC;YACvE,GAAG,IAAI;SACR,CAAC;IACJ,CAAC,CACF,CAAC;IAEF,OAAO,CAAC,GAAG,cAAc,EAAE,GAAG,YAAY,CAAC,CAAC;AAC9C,CAAC,CAAC;AA/DW,QAAA,8BAA8B,kCA+DzC;AAEF,yCAAyC;AAClC,MAAM,wBAAwB,GAAG,CACtC,OAAgB,EAChB,eAAgC,EAChC,EAAE;IACF,OAAO,IAAA,sCAA8B,EACnC,OAAO,EACP,IAAA,2DAA4B,EAAC,OAAO,EAAE,eAAe,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,wBAAwB,4BAQnC"}
|
|
@@ -11,6 +11,8 @@ const getAllCacheConfigsFromConfig = (context, configWithCache) => {
|
|
|
11
11
|
...(0, index_1.ensureArray)(configWithCache.cache),
|
|
12
12
|
...(context.type === "workspace"
|
|
13
13
|
? // also add cache configs of the components of that workspace
|
|
14
|
+
// FIXNME: this only works currently for the build config
|
|
15
|
+
// we would probably need to introduce a path to the right config property (build-->test or so)
|
|
14
16
|
context.components.flatMap((componentContext) => {
|
|
15
17
|
var _a;
|
|
16
18
|
return (_a = (0, index_1.ensureArray)(componentContext.build.config.cache).map((c) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAllCacheConfigsFromConfig.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/cache/getAllCacheConfigsFromConfig.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAEhD,uEAAoE;AAE7D,MAAM,4BAA4B,GAAG,CAC1C,OAAgB,EAChB,eAAgC,EACjB,EAAE;IACjB,OAAO;QACL,GAAG,CAAC,UAAU,IAAI,eAAe;YAC/B,CAAC,CAAC,IAAA,iDAAuB,EAAC,eAAe,CAAC,QAAQ,CAAC;YACnD,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,IAAA,mBAAW,EAAC,eAAe,CAAC,KAAK,CAAC;QACrC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;YAC9B,CAAC,CAAC,6DAA6D;gBAC7D,OAAO,CAAC,UAAU,CAAC,OAAO,CACxB,CAAC,gBAAgB,EAAE,EAAE;;oBACnB,OAAA,MAAA,IAAA,mBAAW,EAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wBAC3D,GAAG,CAAC;wBACJ,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG;qBACpC,CAAC,CAAC,mCAAI,EAAE,CAAA;iBAAA,CACZ;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"getAllCacheConfigsFromConfig.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/cache/getAllCacheConfigsFromConfig.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAEhD,uEAAoE;AAE7D,MAAM,4BAA4B,GAAG,CAC1C,OAAgB,EAChB,eAAgC,EACjB,EAAE;IACjB,OAAO;QACL,GAAG,CAAC,UAAU,IAAI,eAAe;YAC/B,CAAC,CAAC,IAAA,iDAAuB,EAAC,eAAe,CAAC,QAAQ,CAAC;YACnD,CAAC,CAAC,EAAE,CAAC;QACP,GAAG,IAAA,mBAAW,EAAC,eAAe,CAAC,KAAK,CAAC;QACrC,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW;YAC9B,CAAC,CAAC,6DAA6D;gBAC7D,yDAAyD;gBACzD,+FAA+F;gBAC/F,OAAO,CAAC,UAAU,CAAC,OAAO,CACxB,CAAC,gBAAgB,EAAE,EAAE;;oBACnB,OAAA,MAAA,IAAA,mBAAW,EAAC,gBAAgB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;wBAC3D,GAAG,CAAC;wBACJ,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAAG;qBACpC,CAAC,CAAC,mCAAI,EAAE,CAAA;iBAAA,CACZ;YACH,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,4BAA4B,gCAsBvC"}
|