pantry/projects/biomejs.dev/package.yml
Max Howell 81e7a5e16f
pkgx
2023-10-01 14:44:42 -04:00

27 lines
539 B
YAML

distributable:
url: https://github.com/biomejs/biome/archive/refs/tags/cli/v{{ version }}.tar.gz
strip-components: 1
provides:
- bin/biome
versions:
github: biomejs/biome
strip: /cli/v/
build:
working-directory: crates/biome_cli
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
script:
cargo install --locked --path . --root {{prefix}}
env:
RUSTFLAGS: "-C strip=symbols"
BIOME_VERSION: 'v{{version}}'
test:
script:
- |
test "$(biome --version)" = "Version: v{{version}}"