mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 21:58:36 +00:00
fix(just): use powershell compatible env variable for doc command (#6168)
Hello, I was following the guide https://oxc.rs/docs/contribute/development.html and executed `just ready` as said. I got an error on Windows on the `doc` command because it sets the env variable in a way that is not compatible with `powershell`. I've used [attributes](https://just.systems/man/en/attributes.html#attributes) to fix the issue. I never used `just` so I don't know if there's a better way to fix the issue.
This commit is contained in:
parent
1cee207050
commit
006f2cdbf9
1 changed files with 5 additions and 0 deletions
5
justfile
5
justfile
|
|
@ -76,9 +76,14 @@ test:
|
|||
lint:
|
||||
cargo lint -- --deny warnings
|
||||
|
||||
[unix]
|
||||
doc:
|
||||
RUSTDOCFLAGS='-D warnings' cargo doc --no-deps --document-private-items
|
||||
|
||||
[windows]
|
||||
doc:
|
||||
$Env:RUSTDOCFLAGS='-D warnings'; cargo doc --no-deps --document-private-items
|
||||
|
||||
# Fix all auto-fixable format and lint issues. Make sure your working tree is clean first.
|
||||
fix:
|
||||
cargo clippy --fix --allow-staged --no-deps
|
||||
|
|
|
|||
Loading…
Reference in a new issue