From 3f36726583e742f6134fa26d7a915335b59978d1 Mon Sep 17 00:00:00 2001 From: HiranoMasaaki Date: Wed, 18 Feb 2026 07:44:48 +0000 Subject: [PATCH] fix: set fixedExtension false to preserve .js output with tsdown 0.20 tsdown 0.20 defaults fixedExtension to true for node platform, which outputs .mjs instead of .js. This breaks E2E tests and publishConfig bin paths that reference dist/bin/cli.js. Co-Authored-By: Claude Opus 4.6 --- .changeset/fix-tsdown-extension.md | 6 ++++++ tsdown.config.ts | 1 + 2 files changed, 7 insertions(+) create mode 100644 .changeset/fix-tsdown-extension.md diff --git a/.changeset/fix-tsdown-extension.md b/.changeset/fix-tsdown-extension.md new file mode 100644 index 00000000..57dca877 --- /dev/null +++ b/.changeset/fix-tsdown-extension.md @@ -0,0 +1,6 @@ +--- +"perstack": patch +"create-expert": patch +--- + +Fix .mjs output extension caused by tsdown 0.20 defaulting fixedExtension to true for node platform diff --git a/tsdown.config.ts b/tsdown.config.ts index 41e03cfc..5b0026a7 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -4,6 +4,7 @@ export const baseConfig: UserConfig = { cwd: process.cwd(), dts: true, entry: { "src/index": "src/index.ts" }, + fixedExtension: false, format: "es", inlineOnly: false, sourcemap: true,