@anansi/cli 2.0.0 → 2.0.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.
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.0.2](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.1...@anansi/cli@2.0.2) (2022-10-15)
7
+
8
+ ### 💅 Enhancement
9
+
10
+ * Fix compatibility with stackblitz ([62b3541](https://github.com/ntucker/anansi/commit/62b3541d406989ceb9e2a0050f1a9db95794eac4))
11
+
12
+ ### [2.0.1](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.0...@anansi/cli@2.0.1) (2022-10-15)
13
+
14
+ ### 💅 Enhancement
15
+
16
+ * Fix compatibility with stackblitz ([13585de](https://github.com/ntucker/anansi/commit/13585de96e2c23696454298b41b5ccf395263abc))
17
+
6
18
  ## [2.0.0](https://github.com/ntucker/anansi/compare/@anansi/cli@1.4.31...@anansi/cli@2.0.0) (2022-10-10)
7
19
 
8
20
  ### ⚠ 💥 BREAKING CHANGES
package/check-version.mjs CHANGED
@@ -1,8 +1,13 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
1
3
  import binVersionCheck from 'bin-version-check';
2
4
  import latestVersion from 'latest-version';
3
5
  import chalk from 'chalk';
4
6
 
5
- import pkg from './package.json' assert { type: 'json' };
7
+ //import pkg from './package.json' assert { type: 'json' };
8
+ const pkg = JSON.parse(
9
+ fs.readFileSync(path.join(__dirname, './package.json'), 'utf8'),
10
+ );
6
11
 
7
12
  export const description = 'version';
8
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anansi/cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
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.0.1",
54
+ "@anansi/generator-js": "^10.0.2",
55
55
  "bin-version-check": "^4.0.0",
56
56
  "chalk": "^4.1.2",
57
57
  "commander": "^9.4.1",
package/run.mjs CHANGED
@@ -7,13 +7,17 @@ import { createRequire } from 'module';
7
7
  import { dirname } from 'path';
8
8
  import { fileURLToPath } from 'url';
9
9
 
10
- import pkg from './package.json' assert { type: 'json' };
10
+ // TODO: Use this once stackblitz works with it
11
+ //import pkg from './package.json' assert { type: 'json' };
11
12
  import { verifyAndPrompt } from './check-version.mjs';
12
13
 
13
14
  const __dirname = dirname(fileURLToPath(import.meta.url));
14
15
  // need for require.resolve (until import.meta.resolve is not experimental)
15
16
  const require = createRequire(import.meta.url);
16
17
 
18
+ const pkg = JSON.parse(
19
+ fs.readFileSync(path.join(__dirname, './package.json'), 'utf8'),
20
+ );
17
21
  const { version } = pkg;
18
22
 
19
23
  const program = new Command();