Skip to content

Conversation

@mgacy
Copy link

@mgacy mgacy commented Jan 18, 2024

Fixes error when using ESBuildVersion.fixed and adds tests for downloading a fixed version.

Unlike GitHub, releases on the npm Registry are not prefixed with v. This means that attempts to use a stable version with let esbuild = SwiftyESBuild(version: .fixed("0.19.11")) fail:

The payload returned by https://registry.npmjs.org/@esbuild/{os}-{arch} doesn't contain the version v0.19.11

This updates Downloader.versionToDownload(version:, npmPackage:) to not prepend v to the rawVersion and removes it if present.

Closes #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error When Using Fixed ESBuild Version

1 participant