{"id":13393845,"url":"https://github.com/jaredpalmer/tsdx","last_synced_at":"2026-10-18T22:09:08.909Z","repository":{"id":37270245,"uuid":"167368839","full_name":"jaredpalmer/tsdx","owner":"jaredpalmer","description":"Zero-config CLI for TypeScript package development","archived":false,"fork":false,"pushed_at":"2026-02-09T21:57:35.000Z","size":4276,"stargazers_count":11459,"open_issues_count":39,"forks_count":493,"subscribers_count":42,"default_branch":"master","last_synced_at":"2026-10-14T18:14:11.541Z","etag":null,"topics":["bundling","jest","npm","packaging","react","react-dom","rollup","typescript","yarn"],"latest_commit_sha":null,"homepage":"https://tsdx.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaredpalmer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-01-24T13:04:18.000Z","updated_at":"2026-10-13T19:36:04.000Z","dependencies_parsed_at":"2024-01-24T11:27:41.387Z","dependency_job_id":null,"html_url":"https://github.com/jaredpalmer/tsdx","commit_stats":{"total_commits":586,"total_committers":92,"mean_commits":6.369565217391305,"dds":0.704778156996587,"last_synced_commit":"2d7981b00b2bf7363a3eeff44ff5ff698ba58c8c"},"previous_names":["formium/tsdx","palmerhq/tsdx"],"tags_count":55,"template":false,"template_full_name":null,"purl":"pkg:github/jaredpalmer/tsdx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Ftsdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Ftsdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Ftsdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Ftsdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaredpalmer","download_url":"https://codeload.github.com/jaredpalmer/tsdx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaredpalmer%2Ftsdx/sbom","scorecard":{"id":407209,"data":{"date":"2025-08-11","repo":{"name":"github.com/jaredpalmer/tsdx","commit":"2d7981b00b2bf7363a3eeff44ff5ff698ba58c8c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":3,"reason":"Found 6/16 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/jaredpalmer/tsdx/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/jaredpalmer/tsdx/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/jaredpalmer/tsdx/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/jaredpalmer/tsdx/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/jaredpalmer/tsdx/nodejs.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/nodejs.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/jaredpalmer/tsdx/nodejs.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"69 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h","Warn: Project is vulnerable to: GHSA-7gc6-qh9x-w6h8","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2","Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr","Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-4wx3-54gh-9fr9","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-vxf5-wxwp-m7g9","Warn: Project is vulnerable to: GHSA-25mp-g6fv-mqxx","Warn: Project is vulnerable to: GHSA-c59h-r6p8-q9wc","Warn: Project is vulnerable to: GHSA-qpjv-v59x-3qc4","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-cwx2-736x-mf6w","Warn: Project is vulnerable to: GHSA-v39p-96qg-c8rf","Warn: Project is vulnerable to: GHSA-8v63-cqqc-6r2c","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-w5p7-h5w8-2hfq","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T21:38:46.130Z","repository_id":37270245,"created_at":"2025-08-18T21:38:46.130Z","updated_at":"2025-08-18T21:38:46.130Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344794859,"owners_count":38327766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-14T02:00:06.392Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bundling","jest","npm","packaging","react","react-dom","rollup","typescript","yarn"],"created_at":"2024-07-30T17:01:01.270Z","updated_at":"2026-10-18T22:09:08.903Z","avatar_url":"https://github.com/jaredpalmer.png","language":"TypeScript","funding_links":[],"categories":["JavaScript","HarmonyOS","TypeScript","typescript","Packages","Language and Tooling","npm","React","🛠️ Developer Tools","Uncategorized"],"sub_categories":["Windows Manager","Build Systems","Build","Uncategorized"],"readme":"# TSDX\n\nZero-config CLI for TypeScript package development.\n\n[![CI](https://github.com/jaredpalmer/tsdx/actions/workflows/nodejs.yml/badge.svg)](https://github.com/jaredpalmer/tsdx/actions/workflows/nodejs.yml)\n[![npm](https://img.shields.io/npm/v/tsdx.svg)](https://www.npmjs.com/package/tsdx)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\nModern TypeScript library development, simplified. TSDX provides a zero-config CLI that helps you develop, test, and publish TypeScript packages with ease.\n\n\u003e **TSDX 2.0** is a complete rewrite using modern, high-performance Rust-based tooling. See the [Migration Guide](./MIGRATION.md) if upgrading from v0.x\n\n## Features\n\n- **Zero config** - Sensible defaults, just start coding\n- **Modern tooling** - Built on [bunchee](https://github.com/huozhi/bunchee), [vitest](https://vitest.dev/), [oxlint](https://oxc.rs/docs/guide/usage/linter.html), and [oxfmt](https://oxc.rs/docs/guide/usage/formatter)\n- **Dual ESM/CJS** - Automatic dual module builds with proper exports\n- **TypeScript first** - Full TypeScript support with declaration generation\n- **Lightning fast** - Rust-powered linting (50-100x faster than ESLint) and formatting (35x faster than Prettier)\n- **Bun-native** - Uses bun for package management\n- **Modern Node.js** - Supports Node.js 20+ (LTS)\n\n## Quick Start\n\n```bash\n# Create a new package\nbunx tsdx create mylib\n\n# Navigate to the project\ncd mylib\n\n# Start development\nbun run dev\n```\n\nThat's it! Start editing `src/index.ts` and build your library.\n\n## Installation\n\n### Global Installation (recommended for creating projects)\n\n```bash\nbun add -g tsdx\n```\n\n### Per-Project Installation\n\n```bash\nbun add -D tsdx\n```\n\n## Commands\n\n### `tsdx create \u003cname\u003e`\n\nCreate a new TypeScript package from a template.\n\n```bash\n# Interactive template selection\nbunx tsdx create mylib\n\n# Specify template directly\nbunx tsdx create mylib --template react\n```\n\n**Available Templates:**\n\n| Template | Description |\n|----------|-------------|\n| `basic` | A basic TypeScript library with vitest |\n| `react` | A React component library with Testing Library |\n\n### `tsdx build`\n\nBuild the package for production using [bunchee](https://github.com/huozhi/bunchee).\n\n```bash\ntsdx build\n\n# Skip cleaning dist folder\ntsdx build --no-clean\n```\n\nOutputs ESM and CommonJS formats with TypeScript declarations.\n\n### `tsdx dev` / `tsdx watch`\n\nStart development mode with file watching.\n\n```bash\ntsdx dev\n```\n\nRebuilds automatically when files change.\n\n### `tsdx test`\n\nRun tests using [vitest](https://vitest.dev/).\n\n```bash\n# Run tests once\ntsdx test\n\n# Watch mode\ntsdx test --watch\n\n# With coverage\ntsdx test --coverage\n\n# Update snapshots\ntsdx test --update\n```\n\n### `tsdx lint`\n\nLint the codebase using [oxlint](https://oxc.rs/docs/guide/usage/linter.html).\n\n```bash\n# Lint src and test directories (default)\ntsdx lint\n\n# Lint specific paths\ntsdx lint src lib\n\n# Auto-fix issues\ntsdx lint --fix\n\n# Use custom config\ntsdx lint --config .oxlintrc.json\n```\n\n### `tsdx format`\n\nFormat the codebase using [oxfmt](https://oxc.rs/docs/guide/usage/formatter).\n\n```bash\n# Format all files\ntsdx format\n\n# Check formatting without changes\ntsdx format --check\n\n# Format specific paths\ntsdx format src test\n```\n\n### `tsdx typecheck`\n\nRun TypeScript type checking.\n\n```bash\ntsdx typecheck\n\n# Watch mode\ntsdx typecheck --watch\n```\n\n### `tsdx init`\n\nInitialize tsdx configuration in an existing project.\n\n```bash\nbunx tsdx init\n```\n\nThis adds the necessary configuration to your `package.json`, creates `tsconfig.json` and `vitest.config.ts` if they don't exist.\n\n## Project Structure\n\nProjects created with tsdx follow this structure:\n\n```\nmylib/\n├── src/\n│   └── index.ts          # Library entry point\n├── test/\n│   └── index.test.ts     # Tests (vitest)\n├── dist/                  # Build output (generated)\n│   ├── index.js          # ESM\n│   ├── index.cjs         # CommonJS\n│   └── index.d.ts        # TypeScript declarations\n├── .github/\n│   └── workflows/        # CI/CD workflows\n├── package.json\n├── tsconfig.json\n├── vitest.config.ts\n├── LICENSE\n└── README.md\n```\n\n### React Template Additional Structure\n\n```\nmylib/\n├── src/\n│   └── index.tsx         # React component entry\n├── test/\n│   └── index.test.tsx    # Tests with Testing Library\n├── example/              # Demo app (Vite-powered)\n│   ├── index.tsx\n│   ├── index.html\n│   ├── package.json\n│   └── vite.config.ts\n└── ...\n```\n\n## Module Formats\n\nTSDX outputs both ESM and CommonJS formats:\n\n| File | Format | Usage |\n|------|--------|-------|\n| `dist/index.js` | ESM | Modern bundlers, Node.js with `type: \"module\"` |\n| `dist/index.cjs` | CommonJS | Legacy Node.js, older bundlers |\n| `dist/index.d.ts` | TypeScript | Type definitions |\n| `dist/index.d.cts` | TypeScript | CJS type definitions |\n\nThe `package.json` exports field is configured automatically:\n\n```json\n{\n  \"type\": \"module\",\n  \"main\": \"./dist/index.cjs\",\n  \"module\": \"./dist/index.js\",\n  \"types\": \"./dist/index.d.ts\",\n  \"exports\": {\n    \".\": {\n      \"import\": {\n        \"types\": \"./dist/index.d.ts\",\n        \"default\": \"./dist/index.js\"\n      },\n      \"require\": {\n        \"types\": \"./dist/index.d.cts\",\n        \"default\": \"./dist/index.cjs\"\n      }\n    },\n    \"./package.json\": \"./package.json\"\n  }\n}\n```\n\n## Tool Stack\n\nTSDX 2.0 uses modern, high-performance tools:\n\n| Tool | Purpose | Performance |\n|------|---------|-------------|\n| [bunchee](https://github.com/huozhi/bunchee) | Bundling | Zero-config, built on Rollup + SWC |\n| [vitest](https://vitest.dev/) | Testing | Vite-native, Jest-compatible API |\n| [oxlint](https://oxc.rs/docs/guide/usage/linter.html) | Linting | 50-100x faster than ESLint |\n| [oxfmt](https://oxc.rs/docs/guide/usage/formatter) | Formatting | 35x faster than Prettier |\n| [bun](https://bun.sh/) | Package Management | Native speed, npm-compatible |\n\n## Configuration\n\n### TypeScript (`tsconfig.json`)\n\nTSDX creates a modern TypeScript configuration:\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"ES2022\",\n    \"module\": \"ESNext\",\n    \"moduleResolution\": \"bundler\",\n    \"strict\": true,\n    \"declaration\": true,\n    \"declarationMap\": true\n  }\n}\n```\n\n### Vitest (`vitest.config.ts`)\n\nDefault test configuration:\n\n```typescript\nimport { defineConfig } from 'vitest/config';\n\nexport default defineConfig({\n  test: {\n    globals: true,\n    environment: 'node', // or 'jsdom' for React\n  },\n});\n```\n\n### Linting (`.oxlintrc.json`)\n\nOptional oxlint configuration:\n\n```json\n{\n  \"rules\": {\n    \"no-unused-vars\": \"warn\"\n  }\n}\n```\n\n### Formatting (`.oxfmtrc.json`)\n\nOptional oxfmt configuration:\n\n```json\n{\n  \"indentWidth\": 2,\n  \"lineWidth\": 100\n}\n```\n\n## Requirements\n\n- **Node.js**: 20+ (LTS)\n- **Bun**: Latest version\n\n### Installing Bun\n\n```bash\n# macOS/Linux\ncurl -fsSL https://bun.sh/install | bash\n\n# Windows\npowershell -c \"irm bun.sh/install.ps1 | iex\"\n\n# npm (alternative)\nnpm install -g bun\n```\n\n## Migrating from TSDX v0.x\n\nSee the [Migration Guide](./MIGRATION.md) for detailed instructions on upgrading from the original TSDX.\n\n**Quick summary:**\n1. Install bun\n2. Update `package.json` scripts to use tsdx commands\n3. Replace Jest with vitest\n4. Replace ESLint with oxlint (optional)\n5. Replace Prettier with oxfmt (optional)\n6. Run `bun install`\n\n## Publishing\n\n```bash\n# Build the package\nbun run build\n\n# Publish to npm\nnpm publish\n```\n\nWe recommend using [np](https://github.com/sindresorhus/np) or [changesets](https://github.com/changesets/changesets) for publishing.\n\n## FAQ\n\n### Why bun?\n\nBun provides significantly faster package installation and script execution. It's compatible with npm packages and the Node.js ecosystem.\n\n### Can I still use npm/yarn/pnpm?\n\nThe generated projects use bun for package management, but the built packages are compatible with any package manager. Your library consumers can use npm, yarn, pnpm, or bun.\n\n### Why oxlint instead of ESLint?\n\noxlint is 50-100x faster than ESLint while catching the most important issues. For comprehensive linting, you can still use ESLint alongside oxlint.\n\n### Is this compatible with the old TSDX?\n\nThe build output format is fully compatible. Your library consumers won't notice any difference. However, the development workflow and configuration are different.\n\n## Contributing\n\nContributions are welcome! Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for guidelines.\n\n## Acknowledgments\n\nTSDX 2.0 is built on the shoulders of giants:\n\n- [bunchee](https://github.com/huozhi/bunchee) by Jiachi Liu\n- [vitest](https://vitest.dev/) by the Vitest team\n- [oxc](https://oxc.rs/) by the OXC team\n- [bun](https://bun.sh/) by the Bun team\n\n## Author\n\n- [Jared Palmer](https://twitter.com/jaredpalmer)\n\n## License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredpalmer%2Ftsdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaredpalmer%2Ftsdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaredpalmer%2Ftsdx/lists"}