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
28 changes: 14 additions & 14 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "johnie/esbuild-coffeescript"
}
],
"commit": true,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "johnie/esbuild-coffeescript"
}
],
"commit": true,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "master",
"updateInternalDependencies": "patch",
"ignore": []
}
19 changes: 19 additions & 0 deletions .changeset/remove-broken-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"esbuild-coffeescript": major
---

### Remove the `ast` and `filename` options

`ast: true` made CoffeeScript return an AST object, which esbuild rejects with `"contents" must be a string`. A plugin-level `filename` replaced every file's path, so all errors and source maps pointed at one file. The plugin now always passes each file's own path.

### Report correct error line numbers

esbuild's `location.line` is 1-based; CoffeeScript's is 0-based. Syntax errors were reported one line too early.

### Cache compiled output across rebuilds

The plugin reuses compiled output for unchanged files within a build context. In a 301-file project, `context.rebuild()` dropped from ~2.4s to ~25ms.

### Ship CoffeeScript types

`@types/coffeescript` is now a dependency, so `transpile` is typed as Babel `TransformOptions` instead of `Record<string, unknown>`.
123 changes: 0 additions & 123 deletions .claude/CLAUDE.md

This file was deleted.

15 changes: 0 additions & 15 deletions .claude/settings.json

This file was deleted.

19 changes: 0 additions & 19 deletions .editorconfig

This file was deleted.

16 changes: 8 additions & 8 deletions .github/hooks/ultracite.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"hooks": {
"PostToolUse": [
{
"command": "pnpm fix --skip=correctness/noUnusedImports",
"type": "command"
}
]
}
"hooks": {
"PostToolUse": [
{
"command": "pnpm exec ultracite fix --hook",
"type": "command"
}
]
}
}
6 changes: 3 additions & 3 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Install PNPM
uses: pnpm/action-setup@v5
uses: pnpm/action-setup@v6
with:
run_install: false

- name: Setup Node and cache pnpm
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: "pnpm"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7

- name: Install PNPM
uses: pnpm/action-setup@v5
uses: pnpm/action-setup@v6
with:
run_install: false

- name: Setup Node and cache pnpm
uses: actions/setup-node@v6
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: "pnpm"
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v24.14.1
v24.21.0
Loading
Loading