yeoman-environment 4.0.0-rc.0 → 4.0.0
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { BaseGeneratorConstructor } from '@yeoman/types';
|
|
1
2
|
import { type LookupOptions } from './generator-lookup.js';
|
|
2
3
|
import EnvironmentBase, { type EnvironmentOptions } from './environment-base.js';
|
|
3
4
|
declare class FullEnvironment extends EnvironmentBase {
|
|
@@ -62,7 +63,7 @@ declare class FullEnvironment extends EnvironmentBase {
|
|
|
62
63
|
* @param {string[]} args
|
|
63
64
|
*/
|
|
64
65
|
execute(generatorNamespace: string, args?: never[]): Promise<void>;
|
|
65
|
-
requireGenerator(namespace: string): Promise<
|
|
66
|
+
requireGenerator(namespace: string): Promise<BaseGeneratorConstructor | undefined>;
|
|
66
67
|
/**
|
|
67
68
|
* Install generators at the custom local repository and register.
|
|
68
69
|
*
|
package/dist/environment-full.js
CHANGED
|
@@ -164,8 +164,9 @@ class FullEnvironment extends EnvironmentBase {
|
|
|
164
164
|
async requireGenerator(namespace) {
|
|
165
165
|
if (namespace === undefined) {
|
|
166
166
|
try {
|
|
167
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
168
|
-
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
|
|
168
|
+
// @ts-ignore
|
|
169
|
+
const { default: Generator } = await import('yeoman-generator'); // eslint-disable-line @typescript-eslint/naming-convention
|
|
169
170
|
return Generator;
|
|
170
171
|
}
|
|
171
172
|
catch { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yeoman-environment",
|
|
3
|
-
"version": "4.0.0
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Handles the lifecyle and bootstrapping of generators in a specific environment",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"development",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"commander": "^11.1.0",
|
|
67
67
|
"debug": "^4.3.4",
|
|
68
68
|
"execa": "^8.0.1",
|
|
69
|
-
"fly-import": "^0.
|
|
69
|
+
"fly-import": "^0.4.0",
|
|
70
70
|
"globby": "^13.2.2",
|
|
71
71
|
"grouped-queue": "^2.0.0",
|
|
72
72
|
"locate-path": "^7.2.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"typescript": "5.2.2",
|
|
97
97
|
"xo": "0.56.0",
|
|
98
98
|
"yeoman-assert": "^3.1.1",
|
|
99
|
-
"yeoman-environment": "file
|
|
99
|
+
"yeoman-environment": "file:./",
|
|
100
100
|
"yeoman-generator-2": "npm:yeoman-generator@^2.0.5",
|
|
101
101
|
"yeoman-generator-4": "npm:yeoman-generator@^4.13.0",
|
|
102
102
|
"yeoman-generator-5": "npm:yeoman-generator@^5.9.0",
|
|
@@ -104,11 +104,62 @@
|
|
|
104
104
|
"yeoman-test": "^8.1.0"
|
|
105
105
|
},
|
|
106
106
|
"overrides": {
|
|
107
|
+
"yeoman-generator-2": {
|
|
108
|
+
"chalk": "^4.1.0",
|
|
109
|
+
"dargs": "^7.0.0",
|
|
110
|
+
"debug": "^4.1.1",
|
|
111
|
+
"execa": "^5.1.1",
|
|
112
|
+
"github-username": "^6.0.0",
|
|
113
|
+
"lodash": "^4.17.11",
|
|
114
|
+
"mem-fs-editor": "^9.0.0",
|
|
115
|
+
"minimist": "^1.2.5",
|
|
116
|
+
"pacote": "^15.2.0",
|
|
117
|
+
"read-pkg-up": "^7.0.1",
|
|
118
|
+
"run-async": "^2.0.0",
|
|
119
|
+
"semver": "^7.2.1",
|
|
120
|
+
"shelljs": "^0.8.5",
|
|
121
|
+
"sort-keys": "^4.2.0",
|
|
122
|
+
"text-table": "^0.2.0",
|
|
123
|
+
"yeoman-environment": "^3.19.3"
|
|
124
|
+
},
|
|
125
|
+
"yeoman-generator-4": {
|
|
126
|
+
"chalk": "^4.1.0",
|
|
127
|
+
"dargs": "^7.0.0",
|
|
128
|
+
"debug": "^4.1.1",
|
|
129
|
+
"execa": "^5.1.1",
|
|
130
|
+
"github-username": "^6.0.0",
|
|
131
|
+
"lodash": "^4.17.11",
|
|
132
|
+
"mem-fs-editor": "^9.0.0",
|
|
133
|
+
"minimist": "^1.2.5",
|
|
134
|
+
"pacote": "^15.2.0",
|
|
135
|
+
"read-pkg-up": "^7.0.1",
|
|
136
|
+
"run-async": "^2.0.0",
|
|
137
|
+
"semver": "^7.2.1",
|
|
138
|
+
"shelljs": "^0.8.5",
|
|
139
|
+
"sort-keys": "^4.2.0",
|
|
140
|
+
"text-table": "^0.2.0",
|
|
141
|
+
"yeoman-environment": "^3.19.3"
|
|
142
|
+
},
|
|
107
143
|
"yeoman-generator-5": {
|
|
108
|
-
"
|
|
144
|
+
"chalk": "^4.1.0",
|
|
145
|
+
"dargs": "^7.0.0",
|
|
146
|
+
"debug": "^4.1.1",
|
|
147
|
+
"execa": "^5.1.1",
|
|
148
|
+
"github-username": "^6.0.0",
|
|
149
|
+
"lodash": "^4.17.11",
|
|
150
|
+
"mem-fs-editor": "^9.0.0",
|
|
151
|
+
"minimist": "^1.2.5",
|
|
152
|
+
"pacote": "^15.2.0",
|
|
153
|
+
"read-pkg-up": "^7.0.1",
|
|
154
|
+
"run-async": "^2.0.0",
|
|
155
|
+
"semver": "^7.2.1",
|
|
156
|
+
"shelljs": "^0.8.5",
|
|
157
|
+
"sort-keys": "^4.2.0",
|
|
158
|
+
"text-table": "^0.2.0",
|
|
159
|
+
"yeoman-environment": "*"
|
|
109
160
|
},
|
|
110
161
|
"yeoman-generator-6": {
|
|
111
|
-
"yeoman-environment": "
|
|
162
|
+
"yeoman-environment": "*"
|
|
112
163
|
}
|
|
113
164
|
},
|
|
114
165
|
"peerDependencies": {
|