fixturify-project
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -105,3 +105,3 @@ "use strict"; | ||
let files = fixturify.readSync(root)[this.name]; | ||
let pkg = JSON.parse(files['package.json']); | ||
this.pkg = JSON.parse(files['package.json']); | ||
let nodeModules = files['node_modules']; | ||
@@ -111,11 +111,9 @@ // drop "special files" | ||
delete files['package.json']; | ||
this.name = pkg.name; | ||
this.version = pkg.version; | ||
this._dependencies = {}; | ||
this._devDependencies = {}; | ||
this.files = files; | ||
keys(pkg.dependencies).forEach(dependency => { | ||
keys(this.pkg.dependencies).forEach(dependency => { | ||
this.addDependency(this.constructor.fromJSON(nodeModules, dependency)); | ||
}); | ||
keys(pkg.devDependencies).forEach(dependency => { | ||
keys(this.pkg.devDependencies).forEach(dependency => { | ||
this.addDevDependency(this.constructor.fromJSON(nodeModules, dependency)); | ||
@@ -122,0 +120,0 @@ }); |
{ | ||
"name": "fixturify-project", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:stefanpenner/node-fixturify-project", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20725
264