Skip to content

Commit 8f3576f

Browse files
dahliaampcode-com
andcommitted
Mark @fedify/fixture as external in test build configs
During `pnpm pack --recursive`, tsdown tried to bundle @fedify/fixture in the test build configs of several packages. Since @fedify/fixture is a private workspace package, its dist/ may not exist when parallel prepack builds run, causing UNLOADABLE_DEPENDENCY errors. Add "@fedify/fixture" to the external array in the test build config of: - @fedify/webfinger - @fedify/vocab - @fedify/fedify - @fedify/vocab-runtime This aligns them with @fedify/testing, which already correctly externalizes @fedify/fixture. 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 8014e61 commit 8f3576f

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/fedify/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default [
4040
...(await Array.fromAsync(glob(`src/**/*.test.ts`)))
4141
.map((f) => f.replace(sep, "/")),
4242
],
43-
external: [/^node:/],
43+
external: [/^node:/, "@fedify/fixture"],
4444
inputOptions: {
4545
onwarn(warning, defaultHandler) {
4646
if (

packages/vocab-runtime/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ export default [
1616
.map((f) => f.replace(sep, "/")),
1717
format: ["esm", "cjs"],
1818
platform: "node",
19-
external: [/^node:/],
19+
external: [/^node:/, "@fedify/fixture"],
2020
}),
2121
];

packages/vocab/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default [
2727
defineConfig({
2828
entry: (await Array.fromAsync(glob(`src/**/*.test.ts`)))
2929
.map((f) => f.replace(sep, "/")),
30-
external: [/^node:/],
30+
external: [/^node:/, "@fedify/fixture"],
3131
inputOptions: {
3232
onwarn(warning, defaultHandler) {
3333
if (

packages/webfinger/tsdown.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export default [
1515
.map((f) => f.replace(sep, "/")),
1616
format: ["esm", "cjs"],
1717
platform: "node",
18-
external: [/^node:/],
18+
external: [/^node:/, "@fedify/fixture"],
1919
}),
2020
];

0 commit comments

Comments
 (0)