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:
Brandon Largeau 2024-09-30 03:59:27 +02:00 committed by GitHub
parent 1cee207050
commit 006f2cdbf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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