Skip to content

fix: build config stays plain JS, not TS - #7

Merged
Mearman merged 1 commit into
mainfrom
fix/prepare-script-config-loading
Sep 10, 2026
Merged

fix: build config stays plain JS, not TS#7
Mearman merged 1 commit into
mainfrom
fix/prepare-script-config-loading

Conversation

@Mearman

@Mearman Mearman commented Sep 10, 2026

Copy link
Copy Markdown
Member

Wire-mesh's ts/packages/core CI job failed installing cddl.js as a git dependency: Node's native TS-stripping refuses to process a .ts file located under node_modules, and a git-dependency install always resolves into exactly such a path while its prepare script (pnpm run build) runs -- tsdown couldn't even load tsdown.config.ts.

The config file needed no TS syntax at all, so it stays tsdown.config.js instead of fighting the restriction with a --config-loader flag (the error message's own suggested workaround).

Verified against the actual failure mode, not just locally: copied the package into a path nested under node_modules and ran the build from there.

The prepare script (pnpm run build) failed installing as a git
dependency in CI: Node's native TS-stripping refuses to process a .ts
file located under node_modules, and a git-dependency install always
resolves into exactly such a path while its prepare script runs.
tsdown.config.ts needed no TS syntax at all, so it stays tsdown.config.js
instead of fighting the restriction with a --config-loader flag.

Verified against the actual failure mode, not just locally: copied the
package into a node_modules-nested path and ran the build from there.
@Mearman
Mearman marked this pull request as ready for review September 10, 2026 09:43
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review Completed 2026-09-10T09:46:42.072512Z 7ecec9d Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit 1196b8d into main Sep 10, 2026
1 check passed
@Mearman
Mearman deleted the fix/prepare-script-config-loading branch September 10, 2026 09:47
Mearman added a commit to ExaDev/wire-mesh that referenced this pull request Sep 10, 2026
CI failed installing cddl.js as a git dependency: its prepare script
couldn't load tsdown.config.ts, since Node's native TS-stripping
refuses to process a .ts file under node_modules -- exactly where a
git-dependency install resolves into while prepare runs. Fixed
upstream (ExaDev/cddl.js#7, tsdown.config.ts -> tsdown.config.js); this
repins the lockfile to pick it up.
Mearman added a commit to ExaDev/wire-mesh that referenced this pull request Sep 10, 2026
CI failed installing cddl.js as a git dependency: its prepare script
couldn't load tsdown.config.ts, since Node's native TS-stripping
refuses to process a .ts file under node_modules -- exactly where a
git-dependency install resolves into while prepare runs. Fixed
upstream (ExaDev/cddl.js#7, tsdown.config.ts -> tsdown.config.js); this
repins the lockfile to pick it up.
Mearman added a commit to ExaDev/wire-mesh that referenced this pull request Sep 10, 2026
CI failed installing cddl.js as a git dependency: its prepare script
couldn't load tsdown.config.ts, since Node's native TS-stripping
refuses to process a .ts file under node_modules -- exactly where a
git-dependency install resolves into while prepare runs. Fixed
upstream (ExaDev/cddl.js#7, tsdown.config.ts -> tsdown.config.js); this
repins the lockfile to pick it up.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant