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.
- package/bin/nsbp.js +4 -1
- 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(
|
|
18
|
+
.version(packageJson.version);
|
|
16
19
|
|
|
17
20
|
program
|
|
18
21
|
.command('create <project-name>')
|