@nebula.js/cli 2.10.0 → 2.13.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.13.0](https://github.com/qlik-oss/nebula.js/compare/v2.12.0...v2.13.0) (2022-06-27)
7
+
8
+ **Note:** Version bump only for package @nebula.js/cli
9
+
10
+ # [2.12.0](https://github.com/qlik-oss/nebula.js/compare/v2.11.0...v2.12.0) (2022-06-14)
11
+
12
+ **Note:** Version bump only for package @nebula.js/cli
13
+
14
+ # [2.11.0](https://github.com/qlik-oss/nebula.js/compare/v2.10.0...v2.11.0) (2022-06-01)
15
+
16
+ **Note:** Version bump only for package @nebula.js/cli
17
+
6
18
  # [2.10.0](https://github.com/qlik-oss/nebula.js/compare/v2.9.0...v2.10.0) (2022-04-26)
7
19
 
8
20
  **Note:** Version bump only for package @nebula.js/cli
package/lib/index.js CHANGED
@@ -11,15 +11,21 @@ yargs.usage('nebula <command> [options]');
11
11
 
12
12
  const tryAddCommand = (m) => {
13
13
  let cmd;
14
+ let error;
14
15
  try {
15
16
  cmd = require(`${m}/command`); // eslint-disable-line
16
17
  } catch (e) {
18
+ error = e;
17
19
  cmd = importCwd.silent(`${m}/command`);
18
20
  }
19
21
 
20
22
  if (cmd) {
21
23
  yargs.command(cmd);
22
24
  } else {
25
+ // Print the error
26
+ if (error) {
27
+ console.log(`Error from import: ${error.message}`);
28
+ }
23
29
  // add dummy command in order to instruct user how to install missing package
24
30
  const comm = m.split('-')[1];
25
31
  yargs.command({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula.js/cli",
3
- "version": "2.10.0",
3
+ "version": "2.13.0",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "QlikTech International AB",
@@ -27,9 +27,9 @@
27
27
  "@nebula.js/cli-serve": "^2.x"
28
28
  },
29
29
  "dependencies": {
30
- "@nebula.js/cli-create": "^2.10.0",
30
+ "@nebula.js/cli-create": "^2.13.0",
31
31
  "import-cwd": "3.0.0",
32
- "yargs": "17.4.0"
32
+ "yargs": "17.4.1"
33
33
  },
34
- "gitHead": "efa1b83ca60b92cb07c8bd72e00758ce970250ac"
34
+ "gitHead": "11034b6b8f84dd453e66fcfa3a213e99d6b4b323"
35
35
  }