@catladder/pipeline 1.117.2 → 1.119.0
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/build/node/buildJob.js +8 -4
- package/dist/build/node/cache.js +3 -2
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/pipeline/packageManager.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/context.d.ts +1 -0
- package/examples/__snapshots__/cloud-run-memory-limit.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-no-cpu-throttling.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-non-public.ts.snap +4 -0
- package/examples/__snapshots__/cloud-run-with-sql-reuse-db.ts.snap +8 -0
- package/examples/__snapshots__/cloud-run-with-sql.ts.snap +8 -0
- package/examples/__snapshots__/custom-deploy.ts.snap +4 -0
- package/examples/__snapshots__/custom-envs.ts.snap +6 -0
- package/examples/__snapshots__/kubernetes-application-customization.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql-legacy.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-with-cloud-sql.ts.snap +4 -0
- package/examples/__snapshots__/kubernetes-with-jobs.ts.snap +8 -0
- package/examples/__snapshots__/kubernetes-with-mongodb.ts.snap +4 -0
- package/examples/__snapshots__/native-app.ts.snap +8 -0
- package/examples/__snapshots__/node-build-with-custom-image.ts.snap +4 -0
- package/examples/__snapshots__/wait-for-other-deploy.ts.snap +8 -0
- package/package.json +1 -1
- package/src/build/node/buildJob.ts +12 -6
- package/src/build/node/cache.ts +3 -2
- package/src/pipeline/packageManager.ts +1 -0
- package/src/types/context.ts +1 -0
|
@@ -67,10 +67,14 @@ var createNodeBuildJobs = function (context) {
|
|
|
67
67
|
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),
|
|
68
68
|
script: __spreadArray(__spreadArray([], __read(yarnInstall), false), __read((_c = (0, utils_1.ensureArray)(buildConfig.buildCommand)) !== null && _c !== void 0 ? _c : []), false),
|
|
69
69
|
artifacts: {
|
|
70
|
-
paths: __spreadArray([
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
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) {
|
|
71
|
+
var _a, _b;
|
|
72
|
+
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) {
|
|
73
|
+
return (0, path_1.join)(dir, path);
|
|
74
|
+
})) !== null && _b !== void 0 ? _b : []), false);
|
|
75
|
+
}),
|
|
76
|
+
expire_in: "1 day",
|
|
77
|
+
when: "always"
|
|
74
78
|
},
|
|
75
79
|
jobTags: buildConfig.jobTags
|
|
76
80
|
} : undefined,
|
package/dist/build/node/cache.js
CHANGED
|
@@ -40,6 +40,7 @@ exports.__esModule = true;
|
|
|
40
40
|
exports.getNextCache = exports.getNodeCache = exports.getNodeModulesCache = exports.getYarnCache = void 0;
|
|
41
41
|
var path_1 = require("path");
|
|
42
42
|
var slugify_1 = __importDefault(require("slugify"));
|
|
43
|
+
var lodash_1 = require("lodash");
|
|
43
44
|
var getYarnCache = function (context, policy) {
|
|
44
45
|
var _a;
|
|
45
46
|
if (policy === void 0) {
|
|
@@ -69,9 +70,9 @@ var getNodeModulesCache = function (context, policy) {
|
|
|
69
70
|
// if component is in a shared workspace, use workspace cache. use individual cache else
|
|
70
71
|
key: componentIsInWorkspace ? "node-modules-workspace" : (0, slugify_1["default"])(context.componentConfig.dir) + "-node-modules",
|
|
71
72
|
policy: policy,
|
|
72
|
-
paths: __spreadArray([], __read(componentIsInWorkspace ? __spreadArray(["node_modules"], __read((_c = (_b = context.packageManagerInfo) === null || _b === void 0 ? void 0 : _b.workspaces.map(function (w) {
|
|
73
|
+
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) {
|
|
73
74
|
return (0, path_1.join)(w.location, "node_modules");
|
|
74
|
-
})) !== null && _c !== void 0 ? _c : []), false) : [(0, path_1.join)(context.componentConfig.dir, "node_modules")]), false)
|
|
75
|
+
})) !== null && _c !== void 0 ? _c : []), false)) : [(0, path_1.join)(context.componentConfig.dir, "node_modules")]), false)
|
|
75
76
|
}];
|
|
76
77
|
};
|
|
77
78
|
exports.getNodeModulesCache = getNodeModulesCache;
|