@anansi/cli 2.0.1 → 2.0.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/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.3](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.2...@anansi/cli@2.0.3) (2022-10-15)
7
+
8
+ ### 💅 Enhancement
9
+
10
+ * Fix compatibility with stackblitz ([afa9653](https://github.com/ntucker/anansi/commit/afa9653681cc3c3fa85b611281deb7b7eb9a8082))
11
+
12
+ ### [2.0.2](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.1...@anansi/cli@2.0.2) (2022-10-15)
13
+
14
+ ### 💅 Enhancement
15
+
16
+ * Fix compatibility with stackblitz ([62b3541](https://github.com/ntucker/anansi/commit/62b3541d406989ceb9e2a0050f1a9db95794eac4))
17
+
6
18
  ### [2.0.1](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.0...@anansi/cli@2.0.1) (2022-10-15)
7
19
 
8
20
  ### 💅 Enhancement
package/check-version.mjs CHANGED
@@ -1,8 +1,17 @@
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';
6
+ import { dirname } from 'path';
7
+ import { fileURLToPath } from 'url';
4
8
 
5
- import pkg from './package.json' assert { type: 'json' };
9
+ // TODO: Use this once stackblitz works with it
10
+ //import pkg from './package.json' assert { type: 'json' };
11
+ const __dirname = dirname(fileURLToPath(import.meta.url));
12
+ const pkg = JSON.parse(
13
+ fs.readFileSync(path.join(__dirname, './package.json'), 'utf8'),
14
+ );
6
15
 
7
16
  export const description = 'version';
8
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anansi/cli",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Fast React Web Apps",
5
5
  "homepage": "https://github.com/ntucker/anansi/tree/master/packages/cli#readme",
6
6
  "repository": {