yeoman-environment 3.14.1 → 3.15.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/lib/environment.js +5 -2
- package/package.json +1 -1
package/lib/environment.js
CHANGED
|
@@ -34,6 +34,8 @@ const {
|
|
|
34
34
|
createYoResolveTransform
|
|
35
35
|
} = require('./util/transform');
|
|
36
36
|
|
|
37
|
+
const {isFilePending} = FileEditor.State;
|
|
38
|
+
|
|
37
39
|
/**
|
|
38
40
|
* Two-step argument splitting function that first splits arguments in quotes,
|
|
39
41
|
* and then splits up the remaining arguments if they are not part of a quote.
|
|
@@ -1230,12 +1232,13 @@ class Environment extends Base {
|
|
|
1230
1232
|
/**
|
|
1231
1233
|
* Apply transform streams to file in MemFs.
|
|
1232
1234
|
* @param {Transform[]} transformStreams - transform streams to be applied.
|
|
1233
|
-
* @param {Stream} [
|
|
1235
|
+
* @param {{ streamOptions: any; stream: Stream; name: string; log: boolean }} [options] - files stream, defaults to this.sharedFs.stream().
|
|
1234
1236
|
* @return {Promise}
|
|
1235
1237
|
*/
|
|
1236
1238
|
applyTransforms(transformStreams, options = {}) {
|
|
1237
1239
|
const {
|
|
1238
|
-
|
|
1240
|
+
streamOptions = {filter: file => isFilePending(file)},
|
|
1241
|
+
stream = this.sharedFs.stream(streamOptions),
|
|
1239
1242
|
name = 'Transforming'
|
|
1240
1243
|
} = options;
|
|
1241
1244
|
|