Skip to content

Commit 575089b

Browse files
committed
chore: comment
1 parent 6bf26c1 commit 575089b

File tree

1 file changed

+8
-2
lines changed
  • packages/yarnpkg-sdks/sources/sdks

1 file changed

+8
-2
lines changed

packages/yarnpkg-sdks/sources/sdks/base.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ export const generateEslintBaseWrapper: GenerateBaseWrapper = async (pnpApi: Pnp
1919
await wrapper.writeManifest();
2020

2121
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+
});
2326

2427
return wrapper;
2528
};
@@ -31,7 +34,10 @@ export const generatePrettierBaseWrapper: GenerateBaseWrapper = async (pnpApi: P
3134
main: `./index.js`,
3235
});
3336

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+
});
3541

3642
return wrapper;
3743
};

0 commit comments

Comments
 (0)