@anansi/cli 3.1.1 → 3.1.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 +6 -0
- package/package.json +3 -3
- package/run.mjs +12 -15
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
|
+
### [3.1.2](https://github.com/ntucker/anansi/compare/@anansi/cli@3.1.1...@anansi/cli@3.1.2) (2023-11-18)
|
|
7
|
+
|
|
8
|
+
### 📦 Package
|
|
9
|
+
|
|
10
|
+
* Update yeoman (major) ([#2212](https://github.com/ntucker/anansi/issues/2212)) ([9c768f7](https://github.com/ntucker/anansi/commit/9c768f784ffa7c40cb6c5d82f282a23dc0bb6d86))
|
|
11
|
+
|
|
6
12
|
### [3.1.1](https://github.com/ntucker/anansi/compare/@anansi/cli@3.1.0...@anansi/cli@3.1.1) (2023-11-10)
|
|
7
13
|
|
|
8
14
|
### 📦 Package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anansi/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
4
4
|
"description": "Fast React Web Apps",
|
|
5
5
|
"homepage": "https://github.com/ntucker/anansi/tree/master/packages/cli#readme",
|
|
6
6
|
"repository": {
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"@types/node": "^20.0.0"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@anansi/generator-js": "^12.1.
|
|
57
|
+
"@anansi/generator-js": "^12.1.5",
|
|
58
58
|
"bin-version-check": "^5.1.0",
|
|
59
59
|
"chalk": "^4.1.2",
|
|
60
60
|
"commander": "^11.1.0",
|
|
61
61
|
"execa": "^8.0.1",
|
|
62
62
|
"import-meta-resolve": "^4.0.0",
|
|
63
63
|
"latest-version": "^7.0.0",
|
|
64
|
-
"yo": "^
|
|
64
|
+
"yo": "^5.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@anansi/core": "^0.13.0 || ^0.14.0 || ^0.15.0 || ^0.16.0 || ^0.17.0 || ^0.18.0"
|
package/run.mjs
CHANGED
|
@@ -39,22 +39,19 @@ program
|
|
|
39
39
|
}
|
|
40
40
|
try {
|
|
41
41
|
const cwd = options.dir || `./${projectName}`;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
],
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
env: {
|
|
54
|
-
PATH: `${process.env.PATH}:${__dirname}/node_modules/.bin`,
|
|
55
|
-
},
|
|
42
|
+
// get rid of 'file://' prefix
|
|
43
|
+
const generatorPath = resolve(
|
|
44
|
+
'@anansi/generator-js',
|
|
45
|
+
import.meta.url,
|
|
46
|
+
).substring(7);
|
|
47
|
+
const yosub = execa('npx yo', [generatorPath, projectName], {
|
|
48
|
+
stdio: ['pipe', process.stdout, process.stderr],
|
|
49
|
+
shell: true,
|
|
50
|
+
cwd,
|
|
51
|
+
env: {
|
|
52
|
+
PATH: `${process.env.PATH}:${__dirname}/node_modules/.bin`,
|
|
56
53
|
},
|
|
57
|
-
);
|
|
54
|
+
});
|
|
58
55
|
// pipe with raw mode allows us to know when this exits with Ctrl+C (SIGINT)
|
|
59
56
|
process.stdin.setRawMode(true);
|
|
60
57
|
process.stdin.pipe(yosub.stdin, { end: false });
|