Skip to content

Commit

Permalink
Enables read-only for archives loaded through the PnP hook
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Oct 18, 2019
1 parent 43d28fa commit 46509b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/yarnpkg-pnp/sources/loader/_entryPoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const nodeFs = new NodeFS(localFs);
const defaultRuntimeState = $$SETUP_STATE(hydrateRuntimeState);
const defaultPnpapiResolution = path.resolve(__dirname, __filename);

let defaultFsLayer: FakeFS<PortablePath> = new ZipOpenFS({baseFs: nodeFs});
let defaultFsLayer: FakeFS<PortablePath> = new ZipOpenFS({baseFs: nodeFs, readOnlyArchives: true});
for (const virtualRoot of defaultRuntimeState.virtualRoots)
defaultFsLayer = new VirtualFS(virtualRoot, {baseFs: defaultFsLayer});

Expand Down

0 comments on commit 46509b6

Please sign in to comment.