@infoxchange/make-it-so 2.19.1-internal-testing-fix-smtp-not-set-dc4effb.1 → 2.19.2
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/README.md +2 -1
- package/commitlint.config.ts +1 -3
- package/dist/lib/tags/ConditionalTags.d.ts.map +1 -1
- package/dist/lib/tags/ConditionalTags.js +4 -2
- package/dist/lib/tags/setupTags.d.ts.map +1 -1
- package/dist/lib/tags/setupTags.js +0 -4
- package/package.json +3 -2
- package/src/lib/tags/ConditionalTags.ts +4 -2
- package/src/lib/tags/setupTags.ts +0 -5
package/README.md
CHANGED
|
@@ -488,4 +488,5 @@ Commit messages must be formatted in the [Conventional Commits](https://www.conv
|
|
|
488
488
|
|
|
489
489
|
If adding a new construct the easiest way to develop it maybe by building it in whatever app repo it is intended to be used in. When it appears to be working correctly it can be moved into make-it-so and the app can be updated to import that construct from make-it-so.
|
|
490
490
|
|
|
491
|
-
To test change a change in make-it-so
|
|
491
|
+
To test change a change in make-it-so run `npx git-publish`. This will build then pushed the built files into a
|
|
492
|
+
new branch. That branch can then be used as a package.json dependency directly.
|
package/commitlint.config.ts
CHANGED
|
@@ -5,9 +5,7 @@ export default {
|
|
|
5
5
|
(message) =>
|
|
6
6
|
// Allow "wip" commits except when publishing a production release or on PR CI jobs
|
|
7
7
|
process.env.GITHUB_EVENT_NAME !== "pull_request" &&
|
|
8
|
-
|
|
9
|
-
(process.env.GITHUB_REF_NAME?.startsWith("internal-testing-") ??
|
|
10
|
-
true)) &&
|
|
8
|
+
process.env.GITHUB_WORKFLOW !== "Publish" &&
|
|
11
9
|
(message === "wip" || message.startsWith("wip:")),
|
|
12
10
|
],
|
|
13
11
|
extends: ["@commitlint/config-conventional"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionalTags.d.ts","sourceRoot":"","sources":["../../../src/lib/tags/ConditionalTags.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ConditionalTags.d.ts","sourceRoot":"","sources":["../../../src/lib/tags/ConditionalTags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,OAAO,EAAO,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,qBAAa,eAAgB,YAAW,OAAO;IAE3C,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,CACf,IAAI,EAAE,UAAU,KACb,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,GAAG,IAAI;IAG/D,KAAK,CAAC,IAAI,EAAE,UAAU;CAOvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Aspects, Tag } from "aws-cdk-lib";
|
|
2
2
|
export class ConditionalTags {
|
|
3
3
|
getTags;
|
|
4
4
|
constructor(getTags) {
|
|
@@ -6,7 +6,9 @@ export class ConditionalTags {
|
|
|
6
6
|
}
|
|
7
7
|
visit(node) {
|
|
8
8
|
this.getTags(node)?.forEach(({ key, value }) => {
|
|
9
|
-
|
|
9
|
+
// We need to use a priority greater than 500 avoid a conflict that occurs with some aspects created by SST.
|
|
10
|
+
// Since cdk's Tags aspect doesn't let us set a priority we have to use the slightly lower level Tag aspect here.
|
|
11
|
+
Aspects.of(node).add(new Tag(key, value), { priority: 600 });
|
|
10
12
|
});
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupTags.d.ts","sourceRoot":"","sources":["../../../src/lib/tags/setupTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKxC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,CACX,KAAK,EAAE,eAAe,KACnB,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,SAAS,CACvB,KAAK,EAAE,UAAU,EACjB,EAAE,UAAU,EAAE,GAAE,gBAAqB,
|
|
1
|
+
{"version":3,"file":"setupTags.d.ts","sourceRoot":"","sources":["../../../src/lib/tags/setupTags.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAKxC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,UAAU,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,UAAU,CAAC,EAAE,CACX,KAAK,EAAE,eAAe,KACnB,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC5C,CAAC;AAEF,wBAAgB,SAAS,CACvB,KAAK,EAAE,UAAU,EACjB,EAAE,UAAU,EAAE,GAAE,gBAAqB,QAiCtC"}
|
|
@@ -27,10 +27,6 @@ export function setupTags(scope, { modifyTags } = {}) {
|
|
|
27
27
|
currentTags: tags,
|
|
28
28
|
})
|
|
29
29
|
: tags;
|
|
30
|
-
if (!tags.length) {
|
|
31
|
-
// We return undefined so avoid applying the Tags aspect if there are no tags to apply.
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
30
|
return tags;
|
|
35
31
|
});
|
|
36
32
|
Aspects.of(scope).add(conditionalTags);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infoxchange/make-it-so",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.2",
|
|
4
4
|
"description": "Makes deploying services to IX infra easy",
|
|
5
5
|
"repository": "github:infoxchange/make-it-so",
|
|
6
6
|
"publishConfig": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"lint": "eslint . --fix && prettier . --write && tsc --noEmit",
|
|
14
14
|
"lint:check": "eslint . && prettier . --check && tsc --noEmit",
|
|
15
15
|
"prepare": "husky",
|
|
16
|
-
"commit": "lint-staged && commit"
|
|
16
|
+
"commit": "lint-staged && commit",
|
|
17
|
+
"prepack": "npm run build"
|
|
17
18
|
},
|
|
18
19
|
"author": "Infoxchange Vic Dev Team <vicdevs@infoxchange.org>",
|
|
19
20
|
"license": "MIT",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAspect,
|
|
1
|
+
import { Aspects, IAspect, Tag } from "aws-cdk-lib";
|
|
2
2
|
import { IConstruct } from "constructs";
|
|
3
3
|
|
|
4
4
|
export class ConditionalTags implements IAspect {
|
|
@@ -10,7 +10,9 @@ export class ConditionalTags implements IAspect {
|
|
|
10
10
|
|
|
11
11
|
visit(node: IConstruct) {
|
|
12
12
|
this.getTags(node)?.forEach(({ key, value }) => {
|
|
13
|
-
|
|
13
|
+
// We need to use a priority greater than 500 avoid a conflict that occurs with some aspects created by SST.
|
|
14
|
+
// Since cdk's Tags aspect doesn't let us set a priority we have to use the slightly lower level Tag aspect here.
|
|
15
|
+
Aspects.of(node).add(new Tag(key, value), { priority: 600 });
|
|
14
16
|
});
|
|
15
17
|
}
|
|
16
18
|
}
|