withastro / compiler

The Astro compiler. Written in Go. Distributed as WASM.
Other
503 stars 59 forks source link

feat: export compiler as dual CJS / ESM package #800

Closed Princesseuh closed 1 year ago

Princesseuh commented 1 year ago

Changes

Use tsup to distribute the compiler as both CJS and ESM, so people (me) downstream can use it fully

Testing

Tests should still pass + tested manually in prettier plugin in this PR: https://github.com/withastro/prettier-plugin-astro/pull/349

Docs

N/A

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: d7728387399c4fd6b77b7180a20bf0689b9d3c16

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | @astrojs/compiler | Minor |

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

Princesseuh commented 1 year ago

!preview dual

github-actions[bot] commented 1 year ago
 > root@0.0.0 release /home/runner/work/compiler/compiler > changeset publish "--tag" "next--dual" 🦋 warn ===============================IMPORTANT!=============================== 🦋 warn Packages will be released under the next--dual tag 🦋 warn ---------------------------------------------------------------------- 🦋 info npm info @astrojs/compiler 🦋 info @astrojs/compiler is being published because our local version (0.0.0-dual-20230531170756) has not been published on npm 🦋 info Publishing "@astrojs/compiler" at "0.0.0-dual-20230531170756" 🦋 success packages published successfully: 🦋 @astrojs/compiler@0.0.0-dual-20230531170756 🦋 Creating git tag... 🦋 New tag: @astrojs/compiler@0.0.0-dual-20230531170756