Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "jaredpalmer/tsdx" }
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
11 changes: 11 additions & 0 deletions .changeset/initial-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"tsdx": major
---

Initial 1.0.0 release - complete rewrite with modern Rust-based tooling

- Bundling with bunchee
- Testing with vitest
- Linting with oxlint
- Formatting with oxfmt
- Project scaffolding with basic and react templates
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Release

on:
push:
branches:
- main

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: bun install

- name: Build
run: bun run build

- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
version: bun run changeset version
publish: bun run release
title: 'chore: release package'
commit: 'chore: release package'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26 changes: 26 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,29 @@ bun run build # Build for production
## Commit Convention

Uses Conventional Commits: `feat:`, `fix:`, `docs:`, `test:`, `refactor:`, `chore:`

## Release Process

Uses [changesets](https://github.com/changesets/changesets) for version management and npm publishing.

### Creating a Changeset

When making changes that should be released:
```bash
bun run changeset
```
Follow the prompts to select version bump type (patch/minor/major) and describe the change.

### Release Workflow

1. Create a changeset with your PR
2. Merge PR to main
3. GitHub Action creates a "Release" PR with version bumps
4. Merge the Release PR to publish to npm

### Manual Release

```bash
bun run changeset version # Apply version bumps from changesets
bun run release # Build and publish to npm
```
698 changes: 698 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
"test": "vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit",
"prepare": "bun run build"
"prepare": "bun run build",
"changeset": "changeset",
"release": "bun run build && changeset publish"
},
"files": [
"dist",
Expand All @@ -56,6 +58,8 @@
"picocolors": "^1.1.1"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.2",
"@changesets/cli": "^2.29.8",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.2",
"bunchee": "^6.4.0",
Expand Down