yeoman-environment 4.3.0 → 4.4.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.
- package/dist/environment-base.js +4 -2
- package/package.json +2 -2
package/dist/environment-base.js
CHANGED
|
@@ -275,9 +275,11 @@ export default class EnvironmentBase extends EventEmitter {
|
|
|
275
275
|
}
|
|
276
276
|
async composeWith(generator, ...args) {
|
|
277
277
|
const options = getComposeOptions(...args);
|
|
278
|
-
const { schedule = true, ...instantiateOptions } = options;
|
|
278
|
+
const { schedule: passedSchedule = true, ...instantiateOptions } = options;
|
|
279
279
|
const generatorInstance = await this.create(generator, instantiateOptions);
|
|
280
|
-
|
|
280
|
+
// Convert to function to keep type compatibility with old @yeoman/types where schedule is boolean only
|
|
281
|
+
const schedule = typeof passedSchedule === 'function' ? passedSchedule : () => passedSchedule;
|
|
282
|
+
return this.queueGenerator(generatorInstance, { schedule: schedule(generatorInstance) });
|
|
281
283
|
}
|
|
282
284
|
/**
|
|
283
285
|
* Given a String `filepath`, tries to figure out the relative namespace.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yeoman-environment",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Handles the lifecyle and bootstrapping of generators in a specific environment",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"development",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@types/debug": "^4.1.9",
|
|
84
84
|
"@types/lodash-es": "^4.17.9",
|
|
85
85
|
"@types/semver": "^7.5.3",
|
|
86
|
-
"c8": "^
|
|
86
|
+
"c8": "^9.1.0",
|
|
87
87
|
"cpy-cli": "^5.0.0",
|
|
88
88
|
"esmocha": "^1.0.1",
|
|
89
89
|
"fs-extra": "^11.1.1",
|