cyber-elx 1.1.1 → 1.1.2

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/index.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyber-elx",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "CyberOcean CLI tool to upload/download ELX custom pages",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/index.js CHANGED
@@ -2,6 +2,7 @@ const { program } = require('commander');
2
2
  const chalk = require('chalk');
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
+ const packageJson = require('../package.json');
5
6
  const { readConfig, writeConfig, validateConfig, configExists } = require('./config');
6
7
  const { readCache, writeCache, getPageTimestamp, setPageTimestamp, getSpaTimestamp, setSpaTimestamp } = require('./cache');
7
8
  const { createApiClient } = require('./api');
@@ -12,7 +13,7 @@ const { compileComponentTemplates, componentObjectToJsCode, parseComponentJsCode
12
13
  program
13
14
  .name('cyber-elx')
14
15
  .description('CLI tool to upload/download ELX custom pages')
15
- .version('1.1.0');
16
+ .version(packageJson.version, '-v, -V, --version');
16
17
 
17
18
  program
18
19
  .command('init')