Skip to content

Commit

Permalink
feat: upgrade to Biome v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Nov 18, 2023
1 parent 7579b4e commit a550039
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ jobs:

- name: Build debug
if: matrix.config.kind == 'test_debug'
run: cargo build --verbose
run: cargo build
- name: Build release
if: matrix.config.kind == 'test_release'
run: cargo build --target wasm32-unknown-unknown --features wasm --release --verbose
run: cargo build --target wasm32-unknown-unknown --features wasm --release

- name: Test debug
if: matrix.config.kind == 'test_debug'
run: cargo test --verbose
run: cargo test
- name: Test release
if: matrix.config.kind == 'test_release'
run: cargo test --release --verbose
run: cargo test --release

- name: Get tag version
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
Expand Down Expand Up @@ -73,13 +73,14 @@ jobs:
git reset --hard
# CARGO PUBLISH
- name: Cargo login
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
run: cargo login ${{ secrets.CRATES_TOKEN }}

- name: Cargo publish
if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
run: cargo publish
# temporarily disabled until Biome publishes to crates.io
# - name: Cargo login
# if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
# run: cargo login ${{ secrets.CRATES_TOKEN }}

# - name: Cargo publish
# if: matrix.config.kind == 'test_release' && startsWith(github.ref, 'refs/tags/')
# run: cargo publish

# GITHUB RELEASE
- name: Pre-release
Expand Down
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ wasm = ["serde_json", "dprint-core/wasm"]

[dependencies]
anyhow = "1.0.51"
biome_diagnostics = "0.1.0"
biome_formatter = "0.1.0"
biome_js_formatter = "0.1.0"
biome_js_parser = "0.1.0"
biome_js_syntax = "0.1.0"
biome_json_formatter = "0.1.0"
biome_json_parser = "0.1.0"
biome_diagnostics = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
biome_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
biome_js_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
biome_js_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
biome_js_syntax = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
biome_json_formatter = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
biome_json_parser = { git = "https://github.com/biomejs/biome", tag = "cli/v1.3.3" }
dprint-core = { version = "0.63.3", features = ["formatting"] }
serde = { version = "1.0.108", features = ["derive"] }
serde_json = { version = "1.0", optional = true }
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Then in your project's directory with a dprint.json file, run:
dprint config add biome
```

### Configuration
## Configuration

To add configuration, specify a `"biome"` key in your dprint.json:

Expand All @@ -32,3 +32,8 @@ To add configuration, specify a `"biome"` key in your dprint.json:
```

For an overview of the config, see https://dprint.dev/plugins/biome/config/

## JS Formatting API

- [JS Formatter](https://github.com/dprint/js-formatter) - Browser/Deno and Node
- [npm package](https://www.npmjs.com/package/@dprint/biome)

0 comments on commit a550039

Please sign in to comment.