@anansi/cli 2.0.27 → 2.0.29

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 (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/package.json +2 -2
  3. package/run.mjs +4 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
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.0.29](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.28...@anansi/cli@2.0.29) (2023-02-26)
7
+
8
+ **Note:** Version bump only for package @anansi/cli
9
+
10
+ ### [2.0.28](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.27...@anansi/cli@2.0.28) (2023-02-26)
11
+
12
+ ### 💅 Enhancement
13
+
14
+ * Improve debuggability of cli errors ([bfae447](https://github.com/ntucker/anansi/commit/bfae447e56ef5d7f327fc5b416921d98c47476b8))
15
+
6
16
  ### [2.0.27](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.26...@anansi/cli@2.0.27) (2023-02-14)
7
17
 
8
18
  **Note:** Version bump only for package @anansi/cli
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anansi/cli",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "description": "Fast React Web Apps",
5
5
  "homepage": "https://github.com/ntucker/anansi/tree/master/packages/cli#readme",
6
6
  "repository": {
@@ -51,7 +51,7 @@
51
51
  "npm": ">= 6.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@anansi/generator-js": "^10.2.12",
54
+ "@anansi/generator-js": "^10.2.14",
55
55
  "bin-version-check": "^5.0.0",
56
56
  "chalk": "^4.1.2",
57
57
  "commander": "^10.0.0",
package/run.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import fs from 'fs';
3
- import execa from 'execa';
4
- import path from 'path';
5
2
  import { Command } from 'commander';
3
+ import execa from 'execa';
4
+ import fs from 'fs';
6
5
  import { createRequire } from 'module';
6
+ import path from 'path';
7
7
  import { dirname } from 'path';
8
8
  import { fileURLToPath } from 'url';
9
9
 
@@ -140,6 +140,7 @@ program
140
140
  serve(entrypath, options);
141
141
  }
142
142
  } catch (error) {
143
+ console.error(error);
143
144
  if (error.code === 'ERR_MODULE_NOT_FOUND') {
144
145
  console.error('@anansi/core must be installed to run this subcommand');
145
146
  } else {