yeoman-generator 5.7.1 → 5.8.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -11,6 +11,7 @@ const chalk = require('chalk');
11
11
  const minimist = require('minimist');
12
12
  const runAsync = require('run-async');
13
13
  const createDebug = require('debug');
14
+ const memFsEditor = require('mem-fs-editor');
14
15
 
15
16
  const packageJson = require('../package.json');
16
17
  const Storage = require('./util/storage');
@@ -204,7 +205,7 @@ class Generator extends Base {
204
205
  // Ensure source/destination path, can be configured from subclasses
205
206
  this.sourceRoot(path.join(path.dirname(this.resolved), 'templates'));
206
207
 
207
- this.fs = this.env.fs;
208
+ this.fs = memFsEditor.create(this.env.sharedFs);
208
209
  }
209
210
 
210
211
  // Add convenience debug object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yeoman-generator",
3
- "version": "5.7.1",
3
+ "version": "5.8.0",
4
4
  "description": "Rails-inspired generator system that provides scaffolding for your apps",
5
5
  "homepage": "http://yeoman.io",
6
6
  "author": "Yeoman",
@@ -29,7 +29,6 @@
29
29
  "inquirer": "^8.2.4",
30
30
  "jsdoc": "^3.6.7",
31
31
  "mem-fs": "^2.1.0",
32
- "mem-fs-editor": "^9.0.0",
33
32
  "mocha": "^9.2.2",
34
33
  "mockery": "^2.1.0",
35
34
  "nock": "^13.0.2",
@@ -67,6 +66,7 @@
67
66
  "execa": "^5.1.1",
68
67
  "github-username": "^6.0.0",
69
68
  "lodash": "^4.17.11",
69
+ "mem-fs-editor": "^9.0.0",
70
70
  "minimist": "^1.2.5",
71
71
  "read-pkg-up": "^7.0.1",
72
72
  "run-async": "^2.0.0",