carlin 1.16.2 → 1.17.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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CICD_FOLDER_NAME = exports.PIPELINE_ECS_TASK_EXECUTION_MANUAL_APPROVAL_ACTION_NAME = exports.PIPELINE_ECS_TASK_EXECUTION_STAGE_NAME = exports.ECS_TASK_DEFAULT_MEMORY = exports.ECS_TASK_DEFAULT_CPU = void 0;
|
|
4
4
|
exports.ECS_TASK_DEFAULT_CPU = '2048';
|
|
5
5
|
exports.ECS_TASK_DEFAULT_MEMORY = '4096';
|
|
6
6
|
exports.PIPELINE_ECS_TASK_EXECUTION_STAGE_NAME = `PipelineRunECSTasksStage`;
|
|
7
7
|
exports.PIPELINE_ECS_TASK_EXECUTION_MANUAL_APPROVAL_ACTION_NAME = `PipelineRunECSTasksApproval`;
|
|
8
|
-
exports.
|
|
8
|
+
exports.CICD_FOLDER_NAME = '.cicd';
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getTagCommands = exports.getMainCommands = exports.getClosedPrCommands = exports.getPrCommands = exports.getCommandFileDir = exports.pipelines = void 0;
|
|
4
4
|
const config_1 = require("./config");
|
|
5
5
|
exports.pipelines = ['pr', 'main', 'tag'];
|
|
6
|
-
const getCommandFileDir = (pipeline) => `./${config_1.
|
|
6
|
+
const getCommandFileDir = (pipeline) => `./${config_1.CICD_FOLDER_NAME}/commands/${pipeline}`;
|
|
7
7
|
exports.getCommandFileDir = getCommandFileDir;
|
|
8
8
|
const getPrCommands = ({ branch }) => [
|
|
9
9
|
'set -e',
|
|
@@ -33,7 +33,7 @@ const getClosedPrCommands = ({ branch }) => [
|
|
|
33
33
|
/**
|
|
34
34
|
* Exit without error if `closed-pr` does not exist.
|
|
35
35
|
*/
|
|
36
|
-
`[ -f "${(0, exports.getCommandFileDir)('closed-pr')}" ] && sh ${(0, exports.getCommandFileDir)('closed-pr')}
|
|
36
|
+
`[ ! -f "${(0, exports.getCommandFileDir)('closed-pr')}" ] && echo 'closed-pr command not found' || sh ${(0, exports.getCommandFileDir)('closed-pr')}`,
|
|
37
37
|
];
|
|
38
38
|
exports.getClosedPrCommands = getClosedPrCommands;
|
|
39
39
|
const getMainCommands = () => [
|
|
@@ -14,7 +14,7 @@ const path_1 = tslib_1.__importDefault(require("path"));
|
|
|
14
14
|
const logPrefix = 'cloudformation';
|
|
15
15
|
npmlog_1.default.addLevel('event', 10000, { fg: 'yellow' });
|
|
16
16
|
npmlog_1.default.addLevel('output', 10000, { fg: 'blue' });
|
|
17
|
-
exports.defaultTemplatePaths = ['ts', 'js', 'yaml', 'yml', 'json'].map((extension) =>
|
|
17
|
+
exports.defaultTemplatePaths = ['ts', 'js', 'yaml', 'yml', 'json'].map((extension) => `.src/cloudformation.${extension}`);
|
|
18
18
|
const findAndReadCloudFormationTemplate = ({ templatePath: defaultTemplatePath, }) => {
|
|
19
19
|
const templatePath = defaultTemplatePath ||
|
|
20
20
|
exports.defaultTemplatePaths
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "carlin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"yargs": "^17.4.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@ttoss/test-utils": "^1.16.
|
|
54
|
+
"@ttoss/test-utils": "^1.16.5",
|
|
55
55
|
"@types/adm-zip": "^0.5.0",
|
|
56
56
|
"@types/aws-lambda": "^8.10.95",
|
|
57
57
|
"@types/deep-equal": "^1.0.1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"engines": {
|
|
76
76
|
"node": ">=14.0.0"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "4645ed91bc0591e24a8ad78a81344ac04d19c442"
|
|
79
79
|
}
|