@brainwav/diagram 1.0.7 → 1.0.8

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/package.json +1 -1
  2. package/src/diagram.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brainwav/diagram",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Generate architecture diagrams from codebases",
5
5
  "main": "src/diagram.js",
6
6
  "bin": {
package/src/diagram.js CHANGED
@@ -11,6 +11,9 @@ const crypto = require('crypto');
11
11
  const zlib = require('zlib');
12
12
  const { getOpenCommand, getNpxCommandCandidates } = require('./utils/commands');
13
13
 
14
+ // Read version from package.json
15
+ const packageJson = require('../package.json');
16
+
14
17
  // Video generation (lazy loaded)
15
18
  let videoModule;
16
19
  function getVideoModule() {
@@ -1294,7 +1297,7 @@ function validateExistingPathInRoot(targetPath, rootPath, label = 'path') {
1294
1297
  program
1295
1298
  .name('diagram')
1296
1299
  .description('Generate architecture diagrams from code')
1297
- .version('1.0.0');
1300
+ .version(packageJson.version);
1298
1301
 
1299
1302
  program
1300
1303
  .command('analyze [path]')