Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
package-manager-cache: false
- name: Install dependencies
run: pnpm install
- name: Lint
Expand All @@ -58,7 +58,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
package-manager-cache: false
- name: Install dependencies
run: pnpm install
- name: Build
Expand Down Expand Up @@ -146,13 +146,13 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
- name: Install
run: rustup target add ${{ matrix.settings.target }}
package-manager-cache: false
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
with:
cache-key: ${{ matrix.settings.target }}-${{ matrix.settings.host }}
save-cache: ${{ github.ref_name == 'main' }}
- name: Install
run: rustup target add ${{ matrix.settings.target }}
- uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
if: ${{ contains(matrix.settings.target, 'musl') }}
with:
Expand All @@ -172,12 +172,14 @@ jobs:
shell: bash
- name: Install dependencies
run: pnpm install
- name: Pin cargo binary
run: echo "CARGO=$(rustup which cargo)" >> "$GITHUB_ENV"
- name: Setup node x86
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
if: matrix.settings.target == 'i686-pc-windows-msvc'
with:
node-version: 22
cache: pnpm
package-manager-cache: false
architecture: x86
- name: Build
run: ${{ matrix.settings.build }}
Expand Down Expand Up @@ -229,7 +231,8 @@ jobs:
pnpm --filter=@oxc-node/core build --target x86_64-unknown-freebsd
pnpm --filter=@oxc-node/core export-oxc-runtime
pnpm --filter @oxc-node/cli build
pnpm rebuild
# Re-link workspace bins after the CLI entrypoint is generated.
pnpm install --offline --ignore-scripts
pnpm test
rm -rf node_modules
rm -rf target
Expand Down Expand Up @@ -283,9 +286,9 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: pnpm
check-latest: true
architecture: ${{ matrix.settings.architecture }}
package-manager-cache: false
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: cli
Expand Down Expand Up @@ -339,7 +342,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node }}
cache: pnpm
package-manager-cache: false
- name: Output docker params
id: docker
run: |
Expand Down Expand Up @@ -411,7 +414,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
package-manager-cache: false
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: cli
Expand Down Expand Up @@ -452,7 +455,7 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: pnpm
package-manager-cache: false
- name: Install dependencies
run: pnpm install
- name: Download all artifacts
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ jobs:
name: Security Analysis
runs-on: ubuntu-slim
steps:
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
- uses: oxc-project/security-action@77e230508eccbb400b23746dab6c573a8ea7483e # v1.0.5
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ tracing-subscriber = { version = "0.3", default-features = false, features = [
"fmt",
] } # Omit the `regex` feature

[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_arch = "x86"), not(target_family = "wasm")))'.dependencies]
[target.'cfg(all(not(target_os = "linux"), not(target_os = "freebsd"), not(target_arch = "arm"), not(target_arch = "x86"), not(target_family = "wasm"), not(all(target_os = "windows", target_arch = "aarch64"))))'.dependencies]
mimalloc-safe = { version = "0.1", features = ["skip_collect_on_exit"] }

[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
"oxlint --fix"
]
},
"packageManager": "pnpm@10.33.0"
"packageManager": "pnpm@11.0.4"
}
6 changes: 3 additions & 3 deletions packages/integrate-ava/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"ava": {
"cache": false,
"extensions": {
"ts": "module"
},
"extensions": [
"ts"
],
"files": [
"__tests__/**/*.spec.ts"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/integrate-module-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"test": "oxnode -C dev ./src/index.ts"
"test": "node ../cli/dist/index.js -C dev ./src/index.ts"
},
"dependencies": {
"file-type": "^22.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrate-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"test": "oxnode ./src/index.ts"
"test": "node ../cli/dist/index.js ./src/index.ts"
},
"dependencies": {
"file-type": "^22.0.0",
Expand Down
6 changes: 6 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
packages:
- packages/*
allowBuilds:
"@nestjs/core": true
"@swc/core": true
core-js: true
esbuild: true
nx: true

catalog:
"@napi-rs/cli": 3.6.2
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ use phf::Set;
#[cfg(all(
not(target_arch = "x86"),
not(target_arch = "arm"),
not(target_family = "wasm")
not(target_family = "wasm"),
not(all(target_os = "windows", target_arch = "aarch64"))
))]
#[global_allocator]
static ALLOC: mimalloc_safe::MiMalloc = mimalloc_safe::MiMalloc;
Expand Down
Loading