Modernize tooling, improve plugin, and update CI#39
Merged
Conversation
Replace direct biome scripts (format, lint) with ultracite check/fix. Upgrade devDependencies and add ultracite + lefthook.
Use named imports for path and coffeescript, move regex to top level.
Closes #38
Branch condition in release workflow checked for main instead of master, preventing the release job from ever running. Also added missing release script and changesets dependencies.
Export Options interface, replace omit utility with destructuring, guard catch clause with runtime check, fix lineText to extract error line instead of full source, fix inlineMap being incorrectly remapped to sourceMap, and auto-detect literate mode from .litcoffee extension.
Add tests for default options, bare:false IIFE, header option, inlineMap source maps, litcoffee auto-detection, and error location accuracy. Replace String.fromCodePoint with TextDecoder, use rejects.toThrow for error test, remove unused generic.coffee fixture.
🦋 Changeset detectedLatest commit: d6bf36f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Modernizes the esbuild-coffeescript plugin with bug fixes, expanded tests, improved type safety, updated tooling (ultracite, lefthook), and streamlined CI workflows.
Why
The plugin had several bugs (broken
inlineMap, incorrect errorlineText, missing literate CoffeeScript auto-detection) and the CI setup used outdated action versions with duplicated test runs. The project also lacked automated code quality tooling.How
Fixes plugin bugs and adds literate CoffeeScript support. Adds ultracite + lefthook for automated formatting/linting. Updates GitHub Actions to latest versions and removes redundant workflow jobs. Bumps Node to 24.14.1 and modernizes tsconfig.
Changes
inlineMapoption to correctly pass through to CoffeeScript compilerlineTextto report the correct line instead of the entire source.litcoffeefiles without requiringliterate: trueOptionstype for consumer type-checking.nvmrcfor node versionTesting
pnpm run ci(check + test + build)Deployment
pnpm run release(which runs full CI) instead of a separate test job