@catladder/cli 0.0.0-main-8bf99edf → 0.0.0-main-1f9c0121
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.
|
@@ -2207,9 +2207,10 @@ const getYarnCache = (context, policy = "pull-push") => {
|
|
|
2207
2207
|
};
|
|
2208
2208
|
exports.getYarnCache = getYarnCache;
|
|
2209
2209
|
const getNodeModulesCache = (context, policy = "pull-push") => {
|
|
2210
|
-
var _a;
|
|
2210
|
+
var _a, _b;
|
|
2211
2211
|
const componentIsInWorkspace = context.type === "component" &&
|
|
2212
2212
|
context.packageManagerInfo.componentIsInWorkspace;
|
|
2213
|
+
const { isClassic } = context.packageManagerInfo;
|
|
2213
2214
|
// We intentionally do not use the contents of yarn.lock as a cache key, as yarn install should always guarantee that the files are updated, but it can still use part of the cache if not all packages are up-to-date.
|
|
2214
2215
|
// It would slow down all pipelines whenever one adds a new dependency as it will need to download all node_modules again.
|
|
2215
2216
|
return [
|
|
@@ -2226,8 +2227,19 @@ const getNodeModulesCache = (context, policy = "pull-push") => {
|
|
|
2226
2227
|
? (0, lodash_1.uniq)([
|
|
2227
2228
|
"node_modules",
|
|
2228
2229
|
...((_a = context.packageManagerInfo.workspaces.map((w) => (0, path_1.join)(w.location, "node_modules"))) !== null && _a !== void 0 ? _a : []),
|
|
2230
|
+
...(!isClassic
|
|
2231
|
+
? [
|
|
2232
|
+
".yarn/install-state.gz",
|
|
2233
|
+
...((_b = context.packageManagerInfo.workspaces.map((w) => (0, path_1.join)(w.location, ".yarn/install-state.gz"))) !== null && _b !== void 0 ? _b : []),
|
|
2234
|
+
]
|
|
2235
|
+
: []),
|
|
2229
2236
|
])
|
|
2230
|
-
: [
|
|
2237
|
+
: [
|
|
2238
|
+
(0, path_1.join)(context.build.dir, "node_modules"),
|
|
2239
|
+
...(!isClassic
|
|
2240
|
+
? [(0, path_1.join)(context.build.dir, ".yarn/install-state.gz")]
|
|
2241
|
+
: []),
|
|
2242
|
+
]),
|
|
2231
2243
|
],
|
|
2232
2244
|
},
|
|
2233
2245
|
];
|
|
@@ -5418,9 +5418,10 @@ const getYarnCache = (context, policy = "pull-push") => {
|
|
|
5418
5418
|
};
|
|
5419
5419
|
exports.getYarnCache = getYarnCache;
|
|
5420
5420
|
const getNodeModulesCache = (context, policy = "pull-push") => {
|
|
5421
|
-
var _a;
|
|
5421
|
+
var _a, _b;
|
|
5422
5422
|
const componentIsInWorkspace = context.type === "component" &&
|
|
5423
5423
|
context.packageManagerInfo.componentIsInWorkspace;
|
|
5424
|
+
const { isClassic } = context.packageManagerInfo;
|
|
5424
5425
|
// We intentionally do not use the contents of yarn.lock as a cache key, as yarn install should always guarantee that the files are updated, but it can still use part of the cache if not all packages are up-to-date.
|
|
5425
5426
|
// It would slow down all pipelines whenever one adds a new dependency as it will need to download all node_modules again.
|
|
5426
5427
|
return [
|
|
@@ -5437,8 +5438,19 @@ const getNodeModulesCache = (context, policy = "pull-push") => {
|
|
|
5437
5438
|
? (0, lodash_1.uniq)([
|
|
5438
5439
|
"node_modules",
|
|
5439
5440
|
...((_a = context.packageManagerInfo.workspaces.map((w) => (0, path_1.join)(w.location, "node_modules"))) !== null && _a !== void 0 ? _a : []),
|
|
5441
|
+
...(!isClassic
|
|
5442
|
+
? [
|
|
5443
|
+
".yarn/install-state.gz",
|
|
5444
|
+
...((_b = context.packageManagerInfo.workspaces.map((w) => (0, path_1.join)(w.location, ".yarn/install-state.gz"))) !== null && _b !== void 0 ? _b : []),
|
|
5445
|
+
]
|
|
5446
|
+
: []),
|
|
5440
5447
|
])
|
|
5441
|
-
: [
|
|
5448
|
+
: [
|
|
5449
|
+
(0, path_1.join)(context.build.dir, "node_modules"),
|
|
5450
|
+
...(!isClassic
|
|
5451
|
+
? [(0, path_1.join)(context.build.dir, ".yarn/install-state.gz")]
|
|
5452
|
+
: []),
|
|
5453
|
+
]),
|
|
5442
5454
|
],
|
|
5443
5455
|
},
|
|
5444
5456
|
];
|
|
@@ -22,9 +22,10 @@ const getYarnCache = (context, policy = "pull-push") => {
|
|
|
22
22
|
};
|
|
23
23
|
exports.getYarnCache = getYarnCache;
|
|
24
24
|
const getNodeModulesCache = (context, policy = "pull-push") => {
|
|
25
|
-
var _a;
|
|
25
|
+
var _a, _b;
|
|
26
26
|
const componentIsInWorkspace = context.type === "component" &&
|
|
27
27
|
context.packageManagerInfo.componentIsInWorkspace;
|
|
28
|
+
const { isClassic } = context.packageManagerInfo;
|
|
28
29
|
// We intentionally do not use the contents of yarn.lock as a cache key, as yarn install should always guarantee that the files are updated, but it can still use part of the cache if not all packages are up-to-date.
|
|
29
30
|
// It would slow down all pipelines whenever one adds a new dependency as it will need to download all node_modules again.
|
|
30
31
|
return [
|
|
@@ -41,8 +42,19 @@ const getNodeModulesCache = (context, policy = "pull-push") => {
|
|
|
41
42
|
? (0, lodash_1.uniq)([
|
|
42
43
|
"node_modules",
|
|
43
44
|
...((_a = context.packageManagerInfo.workspaces.map((w) => (0, path_1.join)(w.location, "node_modules"))) !== null && _a !== void 0 ? _a : []),
|
|
45
|
+
...(!isClassic
|
|
46
|
+
? [
|
|
47
|
+
".yarn/install-state.gz",
|
|
48
|
+
...((_b = context.packageManagerInfo.workspaces.map((w) => (0, path_1.join)(w.location, ".yarn/install-state.gz"))) !== null && _b !== void 0 ? _b : []),
|
|
49
|
+
]
|
|
50
|
+
: []),
|
|
44
51
|
])
|
|
45
|
-
: [
|
|
52
|
+
: [
|
|
53
|
+
(0, path_1.join)(context.build.dir, "node_modules"),
|
|
54
|
+
...(!isClassic
|
|
55
|
+
? [(0, path_1.join)(context.build.dir, ".yarn/install-state.gz")]
|
|
56
|
+
: []),
|
|
57
|
+
]),
|
|
46
58
|
],
|
|
47
59
|
},
|
|
48
60
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../../../../pipeline/src/build/node/cache.ts"],"names":[],"mappings":";;;;;;AAAA,mCAA8B;AAC9B,+BAA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