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.
@@ -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} [stream] - files stream, defaults to this.sharedFs.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
- stream = this.sharedFs.stream(),
1240
+ streamOptions = {filter: file => isFilePending(file)},
1241
+ stream = this.sharedFs.stream(streamOptions),
1239
1242
  name = 'Transforming'
1240
1243
  } = options;
1241
1244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeoman-environment",
3
- "version": "3.14.1",
3
+ "version": "3.15.0",
4
4
  "description": "Handles the lifecyle and bootstrapping of generators in a specific environment",
5
5
  "homepage": "http://yeoman.io",
6
6
  "author": "Yeoman",