GitShow/jaredpalmer/tsdx
jaredpalmer

tsdx

Zero-config CLI for TypeScript package development

by jaredpalmer
bundlingjestnpmpackagingreactreact-domrolluptypescript
Star on GitHubForkWebsitenpm

TypeScript

11.5k stars499 forks94 contributorsQuiet · 4mo agoSince 2019MIT

Meet the team

See all 94 on GitHub →
jaredpalmer
jaredpalmer219 contributions
agilgur5
agilgur5138 contributions
allcontributors[bot]Bot
allcontributors[bot]109 contributions
swyxio
swyxio42 contributions
claude
claude21 contributions
greenkeeper[bot]Bot
greenkeeper[bot]14 contributions
aleclarson
aleclarson5 contributions
yordis
yordis4 contributions

Recent PRs & issues

Quiet · Last activity 4mo ago
See all on GitHub →
simpleneerajmynx
🐞 Bug: `tsdx create` generates outdated and Bun-incompatible project setupOpenIssue

🐞 Bug: generates outdated and Bun-incompatible project setup Describe the Bug Running generates a project scaffold that relies on outdated and unmaintained TSDX internals. The generated includes , legacy scripts, and configurations that are not compatible with modern tooling, especially Bun. As a result, fails because Bun cannot resolve , even though the package previously existed on npm. The generated output is out of sync with current best practices and modern build tools. Steps to Reproduce 1. Run: 2. Navigate into the generated project 3. Run: 4. Observe the installation failure Expected Behavior The scaffolded project should: Use maintained, modern tooling (e.g. , , or Bun-compatible alternatives) Avoid dependencies on unpublished or archived packages Generate a that installs cleanly with modern runtimes (Node ≥20, Bun) Alternatively, should warn that: TSDX is archived / deprecated Bun is not supported Actual Behavior The generated includes: Running fails with: The generated scripts (, , etc.) are unusable in Bun and rely on deprecated tooling. Screenshots / Logs Environment Run used to collect versions: Additional Context TSDX appears to be archived / unmaintained, but still generates new projects without warning. The generated configuration does not align with: Modern ESM standards Bun’s strict dependency resolver Current React library best practices This leads to a broken first-time experience for users using Bun or modern Node tooling. Suggestion:** Deprecate , or Explicitly document that Bun is unsupported and the tool is legacy.

simpleneerajmynx · 2w ago
gurungabit
fix: update tsdx version in templates to fix create commandOpenPR

Problem fails during with: Both template files referenced , but the package is at . Fix Updated both template files to use Added dynamic version injection in the command to set the tsdx devDependency based on the CLI's current major version, preventing future version mismatches Closes #1206

gurungabit · 1mo ago
awkale
allow CSS nestingOpenIssue

Problem Statement When building a library with tsdx v2, component-level CSS files (those imported directly in files like ) are processed by bunchee's rollup plugin, which runs v5.3.3 with default options (). clean-css v5.x has no support for native CSS nesting. Its tokenizer only handles at for CSS custom property values and margin boxes — there is no handler for the native nesting case (e.g. ). When it encounters nested in a rule context, it falls through to a generic buffer push, corrupting the token stream and silently mangling or dropping the nested styles in the output. This means any component-level CSS file that uses native CSS nesting syntax will produce broken output after the tsdx build, with no error or warning. ### Proposed Solution Replace clean-css with a CSS minifier that supports native CSS nesting, such as Lightning CSS or cssnano (via PostCSS). Alternatively, make the CSS minifier configurable so consumers can provide their own. In bunchee's , the relevant code is: This could be swapped to Lightning CSS: Lightning CSS has full support for native CSS nesting and is significantly faster than clean-css. ### Alternatives Considered Pre-flattening nesting with PostCSS/Tailwind before the build: This works for styles that go through a dedicated CSS compilation step (e.g. Tailwind's --minify flattens nesting), but doesn't help component-level CSS files that are imported directly in components and processed by bunchee's inlineCss plugin. Disabling CSS minification entirely in bunchee: Avoids the corruption but sacrifices minification for all CSS. Avoiding native CSS nesting in component CSS files: A workaround, but native CSS nesting is a stable browser feature (supported in all major browsers since Dec 2023) and developers should be able to use it. Who Benefits? Any library author using tsdx/bunchee who wants to use native CSS nesting in component-level CSS files. As CSS nesting adoption grows (it's now baseline across all major browsers), this will affect an increasing number of users. Additional Context clean-css v5.x is effectively in maintenance mode and has no plans to add nesting support — the tokenizer's Level system would require a significant architectural rewrite. bunchee v6.9.4 pins clean-css: ^5.3.3 as a direct runtime dependency. tsdx v2.0.0 delegates entirely to bunchee via execa("bunchee"). The issue is silent — clean-css produces corrupted output without any errors or warnings, making it difficult to diagnose.

awkale · 3mo ago

Recent fixes

View closed PRs →
ergenekonyigit
chore: update tsdx to version 2.0.0 and add vitest as a dev dependencyMergedPR

This pull request updates the development dependencies in the files for both the and templates. The most significant changes are upgrading the package and adding as a new dependency. Dependency updates: Upgraded from version to in both and . Added version to the devDependencies in both and .

ergenekonyigit · 3mo ago
MenachemICTBIT
Question: Is this library active? Recommended for use in new project at company?ClosedIssue

Sorry for labeling this as a feature. There is no option for questions. I'm working at a company as the sole developer. I need to build a fullstack JS (React, Node) application and I'd like to build them using Typescript. Is this library stable enough/supported actively enough that It's recommended for my use-case? I want to make sure that the rug won't be pulled out underneath me due to some weird bug that will get me fired, since I chose the wrong toolchain to bootstrap my React project.

MenachemICTBIT · 4mo ago
Structured data for AI agents

Repository: jaredpalmer/tsdx. Description: Zero-config CLI for TypeScript package development Stars: 11473, Forks: 499. Primary language: TypeScript. License: MIT. Homepage: https://tsdx.io Topics: bundling, jest, npm, packaging, react, react-dom, rollup, typescript, yarn. Open PRs: 36, open issues: 4. Last activity: 4mo ago. Top contributors: jaredpalmer, agilgur5, allcontributors[bot], swyxio, claude, greenkeeper[bot], aleclarson, yordis, nstfkc, sam-kvale-sap and others.

·@ofershap

Replace github.com with gitshow.dev