@mbc-cqrs-serverless/cli 0.1.31-beta.0 → 0.1.32-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbc-cqrs-serverless/cli",
3
- "version": "0.1.31-beta.0",
3
+ "version": "0.1.32-beta.0",
4
4
  "description": "a CLI to get started with MBC CQRS serverless framework",
5
5
  "keywords": [
6
6
  "mbc",
@@ -49,5 +49,5 @@
49
49
  "devDependencies": {
50
50
  "@faker-js/faker": "^8.3.1"
51
51
  },
52
- "gitHead": "ad5316db04ea32de8151f20a1b53499cda0f1caf"
52
+ "gitHead": "3acb7fb1b6a2df99034ea00560412294dc980b09"
53
53
  }
@@ -1,3 +1,3 @@
1
1
  module.exports = {
2
- outdir: 'graph',
2
+ outdir: '../report/infra',
3
3
  }
@@ -6,7 +6,4 @@ node_modules
6
6
 
7
7
  # CDK asset staging directory
8
8
  .cdk.staging
9
- cdk.out
10
-
11
- #
12
- graph
9
+ cdk.out
@@ -48,11 +48,16 @@ export class PipelineStack extends Stack {
48
48
  const testStep = new CodeBuildStep(`${prefix}Test`, {
49
49
  projectName: `${prefix}Test`,
50
50
  installCommands: [
51
+ 'apt install graphviz -y',
51
52
  'npm i -g pnpm',
52
53
  'npm ci',
53
54
  'pnpm --dir ./infra install --frozen-lockfile',
54
55
  ],
55
- commands: ['npm run test', 'npm --prefix ./infra run test'],
56
+ commands: [
57
+ 'npm run test', // source test
58
+ 'npm --prefix ./infra run test', // infra snapshot test
59
+ 'npm --prefix ./infra run cdk synth', // generate infra diagram
60
+ ],
56
61
  primaryOutputDirectory: 'report',
57
62
  partialBuildSpec: BuildSpec.fromObject({
58
63
  reports: {