diff --git a/.cargo/config.toml b/.cargo/config.toml index 7a1038d853298..a4288500c6a93 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -11,9 +11,6 @@ allocs = "run -p oxc_track_memory_allocations --profile coverage --" rule = "run -p rulegen" lintgen = "run -p oxc_linter_codegen" -# Build oxlint in release mode -oxlint = "build --release -p oxlint --bin oxlint --features allocator" - # Fix napi breaking in test environment # To be able to run unit tests on macOS, support compilation to 'x86_64-apple-darwin'. [target.'cfg(target_vendor = "apple")'] diff --git a/justfile b/justfile index d8c17a284c12d..2218138f11d65 100755 --- a/justfile +++ b/justfile @@ -140,10 +140,10 @@ ast: # Build oxlint in release build oxlint: - cargo oxlint + pnpm -C apps/oxlint run build watch-oxlint *args='': - just watch 'cargo run -p oxlint -- --disable-nested-config {{args}}' + just watch 'node apps/oxlint/dist/cli.js --disable-nested-config {{args}}' # Create a new lint rule for any plugin new-rule name plugin='eslint': @@ -245,4 +245,4 @@ clone-submodule dir url sha: clone-submodule dir url sha: if (-not (Test-Path {{dir}}/.git)) { git init {{dir}} } cd {{dir}} ; if ((git remote) -notcontains 'origin') { git remote add origin {{url}} } else { git remote set-url origin {{url}} } - cd {{dir}} ; git fetch --depth=1 origin {{sha}} ; git reset --hard {{sha}} ; git clean -f -q \ No newline at end of file + cd {{dir}} ; git fetch --depth=1 origin {{sha}} ; git reset --hard {{sha}} ; git clean -f -q