File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/yarnpkg-sdks/sources/sdks Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ export const generateEslintBaseWrapper: GenerateBaseWrapper = async (pnpApi: Pnp
19
19
await wrapper . writeManifest ( ) ;
20
20
21
21
await wrapper . writeBinary ( `bin/eslint.js` as PortablePath ) ;
22
- await wrapper . writeFile ( `lib/api.js` as PortablePath , { requirePath : `` as PortablePath } ) ;
22
+ await wrapper . writeFile ( `lib/api.js` as PortablePath , {
23
+ // Empty path to use the entrypoint and let Node.js resolve the correct path itself
24
+ requirePath : `` as PortablePath ,
25
+ } ) ;
23
26
24
27
return wrapper ;
25
28
} ;
@@ -31,7 +34,10 @@ export const generatePrettierBaseWrapper: GenerateBaseWrapper = async (pnpApi: P
31
34
main : `./index.js` ,
32
35
} ) ;
33
36
34
- await wrapper . writeBinary ( `index.js` as PortablePath , { requirePath : `` as PortablePath } ) ;
37
+ await wrapper . writeBinary ( `index.js` as PortablePath , {
38
+ // Empty path to use the entrypoint and let Node.js resolve the correct path itself
39
+ requirePath : `` as PortablePath ,
40
+ } ) ;
35
41
36
42
return wrapper ;
37
43
} ;
You can’t perform that action at this time.
0 commit comments