mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
fix(tools): fix just oxlint and just watch-oxlint (#14036)
Fix `just oxlint` and `just watch-oxlint`. They were broken because `oxlint` is now a NAPI package. Remove `cargo oxlint` command, because `oxlint` needs to be built with NAPI-RS now.
This commit is contained in:
1 parent
601c876022
commit
a47cb9ac4f
2 files changed
+3
-6
No files matched your search
@@ -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 <https://github.com/napi-rs/napi-rs/issues/1005#issuecomment-1011034770>
|
||||
# To be able to run unit tests on macOS, support compilation to 'x86_64-apple-darwin'.
|
||||
[target.'cfg(target_vendor = "apple")']
|
||||
|
||||
@@ -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
|
||||
cd {{dir}} ; git fetch --depth=1 origin {{sha}} ; git reset --hard {{sha}} ; git clean -f -q
|
||||
Reference in new issue
Block a user