fixturify-project
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -300,2 +300,3 @@ // src/index.ts | ||
async writeLinkedPackage(name, target, destination) { | ||
var _a, _b; | ||
let targetPkg = fs.readJsonSync(`${target}/package.json`); | ||
@@ -319,4 +320,13 @@ let peers = this.transitivePeers(target); | ||
} | ||
let optionalPeers = []; | ||
for (let depName of Object.keys((_a = targetPkg["peerDependenciesMeta"]) != null ? _a : {})) { | ||
if (((_b = targetPkg["peerDependenciesMeta"][depName]) == null ? void 0 : _b.optional) === true) { | ||
optionalPeers.push(depName); | ||
} | ||
} | ||
for (let depName of depsToLink) { | ||
let depTarget = resolvePackagePath(depName, target, this.resolutionCache); | ||
if (!depTarget && optionalPeers.includes(depName)) { | ||
continue; | ||
} | ||
if (!depTarget) { | ||
@@ -375,6 +385,5 @@ throw new Error( | ||
} | ||
if (err.code !== "EXDEV") { | ||
throw err; | ||
if (err.code === "EXDEV") { | ||
this.usingHardLinks = false; | ||
} | ||
this.usingHardLinks = false; | ||
} | ||
@@ -381,0 +390,0 @@ } |
{ | ||
"name": "fixturify-project", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"repository": "git@github.com:stefanpenner/node-fixturify-project", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
"docs:generate": "readme-api-generator src/index.ts --ts", | ||
"lint": "pnpm prettier --check *.ts", | ||
"lint": "pnpm prettier --check **/*.ts", | ||
"prepare": "pnpm build", | ||
@@ -27,0 +27,0 @@ "prepublishOnly": "pnpm build", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
145822
1414