Skip to content

Commit d9ff77a

Browse files
committed
chore: support windows shell for just (#653)
Copied from https://github.com/oxc-project/oxc/blob/e84ae8b883eca3ce7ae7bd8470de00b6f03df355/justfile#L3-L4 to make just work on windows.
1 parent a357963 commit d9ff77a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

justfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env -S just --justfile
22

3+
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
4+
set shell := ["bash", "-cu"]
5+
36
_default:
47
@just --list -u
58

@@ -14,9 +17,9 @@ init:
1417

1518
install:
1619
pnpm install
17-
cd fixtures/pnp && yarn
18-
cd fixtures/global-pnp && yarn
19-
cd fixtures/yarn && yarn
20+
cd fixtures/pnp; yarn
21+
cd fixtures/global-pnp; yarn
22+
cd fixtures/yarn; yarn
2023

2124
# When ready, run the same CI commands
2225
ready:
@@ -59,7 +62,7 @@ test:
5962
cargo test --all-features
6063
node --run build
6164
node --run test
62-
cd fixtures/pnp && yarn test
65+
cd fixtures/pnp; yarn test
6366

6467
# Lint the whole project
6568
lint:
@@ -79,7 +82,7 @@ benchmark:
7982

8083
# Run cargo-fuzz
8184
fuzz:
82-
cd fuzz && cargo +nightly fuzz run --sanitizer none resolver -- -only_ascii=1 -max_total_time=900
85+
cd fuzz; cargo +nightly fuzz run --sanitizer none resolver -- -only_ascii=1 -max_total_time=900
8386

8487
# Manual Release
8588
release:

0 commit comments

Comments
 (0)