Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Feedback
  • Loading branch information
arcanis committed Oct 16, 2021
commit 3b7cc986d92b2cb4f1ac921f1bbb61619b7cdfcd
2 changes: 1 addition & 1 deletion packages/plugin-pnp/sources/PnpLinker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export class PnpInstaller implements Installer {
private readonly unpluggedPaths: Set<string> = new Set();

private async unplugPackageIfNeeded(pkg: Package, customPackageData: CustomPackageData, fetchResult: FetchResult, dependencyMeta: DependencyMeta) {
if (this.shouldBeUnplugged(pkg, customPackageData, dependencyMeta)) {
if (this.shouldBeUnplugged(pkg, customPackageData, dependencyMeta) && !this.opts.project.disabledLocators.has(pkg.locatorHash)) {
return this.unplugPackage(pkg, fetchResult);
} else {
return fetchResult.packageFs;
Expand Down
2 changes: 1 addition & 1 deletion packages/yarnpkg-core/sources/Cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class Cache {
zipFs.mkdirSync(rootPackageDir, {recursive: true});
zipFs.writeJsonSync(ppath.join(rootPackageDir, Filename.manifest), {
name: structUtils.stringifyIdent(locator),
pruned: true,
mocked: true,
});

return zipFs;
Expand Down