yeoman-environment 4.1.1 → 4.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.
@@ -611,7 +611,13 @@ export default class EnvironmentBase extends EventEmitter {
611
611
  this.queueTask('environment:conflicts', async () => {
612
612
  debug('Adding queueCommit listener');
613
613
  // Conflicter can change files add listener before commit task.
614
- this.sharedFs.once('change', queueCommit);
614
+ const changedFileHandler = (file) => {
615
+ if (isFilePending(file)) {
616
+ queueCommit();
617
+ this.sharedFs.removeListener('change', changedFileHandler);
618
+ }
619
+ };
620
+ this.sharedFs.on('change', changedFileHandler);
615
621
  debug('Running conflicts');
616
622
  const { customCommitTask = async () => commitSharedFsTask(this) } = this.composedStore;
617
623
  if (typeof customCommitTask === 'function') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeoman-environment",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "Handles the lifecyle and bootstrapping of generators in a specific environment",
5
5
  "keywords": [
6
6
  "development",