fixturify-project
Advanced tools
Comparing version 5.1.0 to 5.2.0
@@ -6,2 +6,11 @@ | ||
## v5.2.0 (2022-10-26) | ||
#### :rocket: Enhancement | ||
* [#76](https://github.com/stefanpenner/node-fixturify-project/pull/76) provide access to baseDir before write ([@ef4](https://github.com/ef4)) | ||
#### Committers: 1 | ||
- Edward Faulkner ([@ef4](https://github.com/ef4)) | ||
## v5.1.0 (2022-09-15) | ||
@@ -8,0 +17,0 @@ |
@@ -55,3 +55,2 @@ import fixturify from 'fixturify'; | ||
get baseDir(): string; | ||
private autoBaseDir; | ||
/** | ||
@@ -58,0 +57,0 @@ * Gets the package name from the package.json. |
@@ -106,8 +106,2 @@ var __defProp = Object.defineProperty; | ||
if (!this._baseDir) { | ||
throw new Error(`this project has no baseDir yet. Either set one manually or call write to have one chosen for you`); | ||
} | ||
return this._baseDir; | ||
} | ||
autoBaseDir() { | ||
if (!this._baseDir) { | ||
this._tmp = tmp.dirSync({ unsafeCleanup: true }); | ||
@@ -236,3 +230,3 @@ this._baseDir = fs.realpathSync(this._tmp.name); | ||
assignBaseDirs() { | ||
this.autoBaseDir(); | ||
this.baseDir; | ||
for (let depList of [this.dependencyProjects(), this.devDependencyProjects()]) { | ||
@@ -239,0 +233,0 @@ for (let dep of depList) { |
{ | ||
"name": "fixturify-project", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"repository": "git@github.com:stefanpenner/node-fixturify-project", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
58483
1290