Skip to content

fix: drop the type annotations so the bin runs as plain javascript - #1

Open
barjin wants to merge 4 commits into
masterfrom
fix-installed-build
Open

fix: drop the type annotations so the bin runs as plain javascript#1
barjin wants to merge 4 commits into
masterfrom
fix-installed-build

Conversation

@barjin

@barjin barjin commented Aug 18, 2026

Copy link
Copy Markdown
Member

Node disables type stripping for files under node_modules, so the TypeScript entry point could not run once installed.

barjin added 4 commits August 18, 2026 14:07
Node refuses to strip types for files under node_modules, so the TypeScript bin
failed with ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING once installed rather
than symlinked. Build it with tsc from prepare, which npm and pnpm run for
git-hosted dependencies.
Node disables type stripping under node_modules, so the TypeScript entry point
could not run once installed.
@barjin barjin changed the title fix: compile the entry point on install fix: drop the type annotations so the bin runs as plain javascript Aug 19, 2026
@barjin
barjin marked this pull request as ready for review August 20, 2026 06:33
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.

2 participants