File tree 2 files changed +2
-13
lines changed
packages/plugin-pnp/sources
2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -264,9 +264,6 @@ export class PnpInstaller implements Installer {
264
264
265
265
await xfs . removePromise ( pnpPath . other ) ;
266
266
267
- if ( this . opts . project . topLevelWorkspace . manifest . type !== `module` )
268
- await xfs . removePromise ( pnpPath . esmLoader ) ;
269
-
270
267
if ( this . opts . project . configuration . get ( `nodeLinker` ) !== `pnp` ) {
271
268
await xfs . removePromise ( pnpPath . main ) ;
272
269
await xfs . removePromise ( pnpDataPath ) ;
Original file line number Diff line number Diff line change @@ -13,16 +13,8 @@ export {jsInstallUtils};
13
13
export { pnpUtils } ;
14
14
15
15
export const getPnpPath = ( project : Project ) => {
16
- let mainFilename ;
17
- let otherFilename ;
18
-
19
- if ( project . topLevelWorkspace . manifest . type === `module` ) {
20
- mainFilename = `.pnp.cjs` ;
21
- otherFilename = `.pnp.js` ;
22
- } else {
23
- mainFilename = `.pnp.js` ;
24
- otherFilename = `.pnp.cjs` ;
25
- }
16
+ const mainFilename = `.pnp.cjs` ;
17
+ const otherFilename = `.pnp.js` ;
26
18
27
19
return {
28
20
main : ppath . join ( project . cwd , mainFilename as Filename ) ,
You can’t perform that action at this time.
0 commit comments