@anansi/cli 2.0.0 → 2.0.1

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 +6 -0
  2. package/package.json +2 -2
  3. package/run.mjs +5 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
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.1](https://github.com/ntucker/anansi/compare/@anansi/cli@2.0.0...@anansi/cli@2.0.1) (2022-10-15)
7
+
8
+ ### 💅 Enhancement
9
+
10
+ * Fix compatibility with stackblitz ([13585de](https://github.com/ntucker/anansi/commit/13585de96e2c23696454298b41b5ccf395263abc))
11
+
6
12
  ## [2.0.0](https://github.com/ntucker/anansi/compare/@anansi/cli@1.4.31...@anansi/cli@2.0.0) (2022-10-10)
7
13
 
8
14
  ### ⚠ 💥 BREAKING CHANGES
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anansi/cli",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
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();