nsbp-cli 0.1.1 → 0.1.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/bin/nsbp.js +4 -1
  2. package/package.json +1 -1
package/bin/nsbp.js CHANGED
@@ -7,12 +7,15 @@ const path = require('path');
7
7
  const { execSync } = require('child_process');
8
8
  const inquirer = require('inquirer');
9
9
 
10
+ // Read version from package.json dynamically
11
+ const packageJson = require('../package.json');
12
+
10
13
  const program = new Command();
11
14
 
12
15
  program
13
16
  .name('nsbp')
14
17
  .description('CLI tool to create NSBP (Node React SSR by Webpack) projects')
15
- .version('0.1.0');
18
+ .version(packageJson.version);
16
19
 
17
20
  program
18
21
  .command('create <project-name>')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nsbp-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "CLI tool for creating NSBP (Node React SSR by Webpack) projects",
5
5
  "main": "index.js",
6
6
  "files": [