fixturify-project
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -6,2 +6,3 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
@@ -52,3 +53,3 @@ tmp.setGracefulCleanup(); | ||
get baseDir() { | ||
return `${this._root}/${this.name}`; | ||
return path.join(this._root, this.name); | ||
} | ||
@@ -148,3 +149,3 @@ | ||
if (typeof name === 'string') { | ||
dep = this._dependencies[name] = new this.constructor(name, version, null, `${this.root}/${this.name}/node_modules`); | ||
dep = this._dependencies[name] = new this.constructor(name, version, null, path.join(this.root, this.name, 'node_modules')); | ||
} else if (name.isDependency) { | ||
@@ -175,3 +176,3 @@ dep = this._dependencies[name.name] = name; | ||
if (typeof name === 'string') { | ||
dep = this._devDependencies[name] = new this.constructor(name, version, null, `${this.root}/${this.name}/node_modules`); | ||
dep = this._devDependencies[name] = new this.constructor(name, version, null, path.join(this.root, this.name, 'node_modules')); | ||
} else if (name.isDependency) { | ||
@@ -178,0 +179,0 @@ dep = this._devDependencies[name.name] = name; |
{ | ||
"name": "fixturify-project", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "repository": "git@github.com:stefanpenner/node-fixturify-project", |
@@ -7,2 +7,3 @@ 'use strict'; | ||
const fs = require('fs-extra'); | ||
const path = require('path'); | ||
@@ -34,6 +35,6 @@ describe('Project', function() { | ||
expect(rsvp.root).to.eql(`${project.root}/rsvp/node_modules/ember-cli/node_modules`); | ||
expect(source.root).to.eql(`${project.root}/rsvp/node_modules`); | ||
expect(rsvp.baseDir).to.eql(`${project.root}/rsvp/node_modules/ember-cli/node_modules/rsvp`); | ||
expect(source.baseDir).to.eql(`${project.root}/rsvp/node_modules/ember-source`); | ||
expect(rsvp.root).to.eql(path.normalize(`${project.root}/rsvp/node_modules/ember-cli/node_modules`)); | ||
expect(source.root).to.eql(path.normalize(`${project.root}/rsvp/node_modules`)); | ||
expect(rsvp.baseDir).to.eql(path.normalize(`${project.root}/rsvp/node_modules/ember-cli/node_modules/rsvp`)); | ||
expect(source.baseDir).to.eql(path.normalize(`${project.root}/rsvp/node_modules/ember-source`)); | ||
@@ -40,0 +41,0 @@ expect(read(`${project.root}/rsvp/index.js`)).to.eql(`module.exports = "Hello, World!";`); |
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
27778
450