Skip to content

Commit

Permalink
+rome.tools (#3030)
Browse files Browse the repository at this point in the history
* +rome.tools

* fix version

---------

Co-authored-by: Jacob Heider <[email protected]>
  • Loading branch information
kevinmichaelchen and jhheider authored Aug 23, 2023
1 parent 5605365 commit 2396135
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions projects/rome.tools/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
distributable:
url: https://github.com/rome/tools/archive/refs/tags/v{{ version }}.tar.gz
strip-components: 1

provides:
- bin/rome

versions:
github: rome/tools
strip: /v/

build:
working-directory: crates/rome_cli
dependencies:
rust-lang.org: '>=1.65'
rust-lang.org/cargo: '*'
script:
- sed -i.bak 's/version = "0.0.0"/version = "{{version}}"/' Cargo.toml
- rm Cargo.toml.bak
- cargo install --locked --path . --root {{prefix}}

test:
script:
- test "$(rome help | head -n1)" = "Rome v{{version}}"

0 comments on commit 2396135

Please sign in to comment.