@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 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 create a branch starting with the prefix "internal-testing-". When pushed the CI will release a new package with a pre-release version. It'll look a little something like `2.1.3-internal-testing-name-of-feature.3`. A serverless app using make-it-so can be modified to use this package version and then deployed to a dev environment to test that the make-it-so changes are functioning correctly. Once a change has been merged into main and there are no serverless apps using the pre-release package any more it's a good idea to [delete that version](https://docs.npmjs.com/unpublishing-packages-from-the-registry#unpublishing-a-single-version-of-a-package) to keep the [npm package version history clean](https://www.npmjs.com/package/@infoxchange/make-it-so?activeTab=versions).
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.
@@ -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
- (process.env.GITHUB_WORKFLOW !== "Publish" ||
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,EAAE,OAAO,EAAQ,MAAM,aAAa,CAAC;AAC5C,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;CAKvB"}
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 { Tags } from "aws-cdk-lib";
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
- Tags.of(node).add(key, value);
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,O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 +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.1-internal-testing-fix-smtp-not-set-dc4effb.1",
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, Tags } from "aws-cdk-lib";
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
- Tags.of(node).add(key, value);
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
  }
@@ -48,11 +48,6 @@ export function setupTags(
48
48
  currentTags: tags,
49
49
  })
50
50
  : tags;
51
-
52
- if (!tags.length) {
53
- // We return undefined so avoid applying the Tags aspect if there are no tags to apply.
54
- return undefined;
55
- }
56
51
  return tags;
57
52
  });
58
53