Skip to content

Commit bd336d2

Browse files
dahliaampagent
andcommitted
Narrow noExternal path check to /src/testing/ to avoid false positives
Use "/src/testing/" instead of "/testing/" in the noExternal importer path check to avoid false positives when the project itself is located under a directory path containing "/testing/". #635 (comment) Co-authored-by: Amp (https://ampcode.com) Amp-Thread-ID: https://ampcode.com/threads/T-019d00c0-4bd0-70fe-b81f-82e3738959e9 Co-authored-by: Amp <amp@ampcode.com>
1 parent bb6924c commit bd336d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/fedify/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default [
4747
noExternal: (id: string, importer: string | undefined) => {
4848
if (id !== "@fedify/fixture") return false;
4949
const normalized = importer?.replaceAll(sep, "/");
50-
return normalized?.includes("/testing/") ?? false;
50+
return normalized?.includes("/src/testing/") ?? false;
5151
},
5252
inputOptions: {
5353
onwarn(warning, defaultHandler) {

0 commit comments

Comments
 (0)