@catladder/pipeline 1.55.1 → 1.56.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/bin/catladder-gitlab-dev.js +3 -0
- package/dist/build/node/cache.js +8 -1
- package/dist/build/node/yarn.js +1 -1
- package/dist/bundles/catladder-gitlab/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/deploy/cloudRun/deployJob.js +19 -5
- package/dist/deploy/cloudRun/index.js +5 -5
- package/dist/deploy/types/googleCloudRun.d.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/context.d.ts +6 -0
- package/dist/utils/gitlab.d.ts +1 -0
- package/dist/utils/gitlab.js +46 -0
- package/examples/test.catladder.ts +26 -0
- package/package.json +1 -1
- package/src/build/node/cache.ts +13 -5
- package/src/build/node/yarn.ts +1 -1
- package/src/deploy/cloudRun/deployJob.ts +9 -5
- package/src/deploy/cloudRun/index.ts +2 -1
- package/src/deploy/types/googleCloudRun.ts +1 -1
- package/src/types/context.ts +8 -0
- package/src/utils/gitlab.ts +5 -0
package/dist/build/node/cache.js
CHANGED
|
@@ -41,14 +41,21 @@ exports.getNextCache = exports.getNodeCache = exports.getNodeModulesCache = expo
|
|
|
41
41
|
var path_1 = require("path");
|
|
42
42
|
|
|
43
43
|
var getYarnCache = function (context, policy) {
|
|
44
|
+
var _a;
|
|
45
|
+
|
|
44
46
|
if (policy === void 0) {
|
|
45
47
|
policy = "pull-push";
|
|
46
48
|
}
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
var componentIsInWorkspace = (_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.componentIsInWorkspace;
|
|
51
|
+
return [componentIsInWorkspace ? {
|
|
49
52
|
key: "yarn",
|
|
50
53
|
policy: policy,
|
|
51
54
|
paths: [".yarn"]
|
|
55
|
+
} : {
|
|
56
|
+
key: context.componentConfig.dir + "-yarn",
|
|
57
|
+
policy: policy,
|
|
58
|
+
paths: [(0, path_1.join)(context.componentConfig.dir, ".yarn")]
|
|
52
59
|
}];
|
|
53
60
|
};
|
|
54
61
|
|
package/dist/build/node/yarn.js
CHANGED
|
@@ -53,7 +53,7 @@ var getYarnInstallCommand = function (context, options) {
|
|
|
53
53
|
|
|
54
54
|
return (_a = context.packageManagerInfo) === null || _a === void 0 ? void 0 : _a.version.startsWith(v);
|
|
55
55
|
});
|
|
56
|
-
return (options === null || options === void 0 ? void 0 : options.prodOnly) ? "".concat((options === null || options === void 0 ? void 0 : options.noScripts) ? "YARN_ENABLE_SCRIPTS=false " : "").concat(doesNotShipWithBuiltInPlugins ? "yarn plugin import workspace-tools && " : " ", "yarn workspaces focus --production") // needs yarn plugin import workspace-tools
|
|
56
|
+
return (options === null || options === void 0 ? void 0 : options.prodOnly) ? "".concat((options === null || options === void 0 ? void 0 : options.noScripts) ? "YARN_ENABLE_SCRIPTS=false " : "").concat(doesNotShipWithBuiltInPlugins ? "yarn plugin import workspace-tools && " : " ", "yarn workspaces focus --production && yarn rebuild") // needs yarn plugin import workspace-tools
|
|
57
57
|
: "".concat((options === null || options === void 0 ? void 0 : options.noScripts) ? "YARN_ENABLE_SCRIPTS=false " : "", "yarn install --immutable");
|
|
58
58
|
};
|
|
59
59
|
|