@brainwav/diagram 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -313,12 +313,16 @@ jobs:
313
313
  - run: npm ci
314
314
  - run: npm test
315
315
  - run: npm run test:deep
316
- - run: node src/diagram.js test . --format junit --output architecture-results.xml
316
+ - run: npm run ci:artifacts
317
+ - uses: actions/upload-artifact@v4
318
+ with:
319
+ name: diagram-ci-artifacts
320
+ path: .diagram
317
321
  - uses: dorny/test-reporter@v1
318
322
  if: success() || failure()
319
323
  with:
320
324
  name: Architecture Tests
321
- path: architecture-results.xml
325
+ path: .diagram/architecture-results.xml
322
326
  reporter: java-junit
323
327
  ```
324
328
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainwav/diagram",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Generate architecture diagrams from codebases",
5
5
  "main": "src/diagram.js",
6
6
  "bin": {
@@ -9,6 +9,7 @@
9
9
  "scripts": {
10
10
  "test": "node src/diagram.js analyze .",
11
11
  "test:deep": "node scripts/deep-regression.js",
12
+ "ci:artifacts": "mkdir -p .diagram && node src/diagram.js all . --output-dir .diagram && node src/diagram.js test . --format junit --output .diagram/architecture-results.xml",
12
13
  "prepublishOnly": "npm test",
13
14
  "release:prepare": "bash scripts/release-npm.sh",
14
15
  "release:prepare:initial": "bash scripts/release-npm.sh --initial",