| { |
| "name": "@next/swc", |
| "version": "15.4.2-canary.18", |
| "private": true, |
| "files": [ |
| "native/" |
| ], |
| "scripts": { |
| "clean": "node ../../scripts/rm.mjs native", |
| "build-native": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --features plugin,image-extended --js false native", |
| "build-native-release": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --release --features plugin,image-extended,tracing/release_max_level_info --js false native", |
| "build-native-release-with-assertions": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --profile release-with-assertions --features plugin,image-extended,tracing/release_max_level_info --js false native", |
| "build-native-no-plugin": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --features image-webp --js false native", |
| "build-native-no-plugin-release": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --release --features image-webp,tracing/release_max_level_info --js false native", |
| "build-native-wasi": "npx --package=@napi-rs/cli@3.0.0-alpha.45 napi build --platform --target wasm32-wasip1-threads -p next-swc-napi --cwd ../../ --output-dir packages/next-swc/native --no-default-features", |
| "build-wasm": "wasm-pack build ../../crates/wasm --scope=next", |
| "cache-build-native": "[ -d native ] && echo $(ls native)", |
| "rust-check-fmt": "cd ../..; cargo fmt -- --check", |
| "rust-check-clippy": "cargo clippy --workspace --all-targets -- -D warnings -A deprecated", |
| "rust-check-napi": "cargo check -p next-swc-napi", |
| "test-cargo-unit": "cargo nextest run --workspace --exclude next-swc-napi --exclude turbo-tasks-macros --cargo-profile release-with-assertions --no-fail-fast" |
| }, |
| "napi": { |
| "name": "next-swc", |
| "triples": { |
| "defaults": true, |
| "additional": [ |
| "i686-pc-windows-msvc", |
| "aarch64-unknown-linux-gnu", |
| "aarch64-apple-darwin", |
| "x86_64-unknown-linux-musl", |
| "aarch64-unknown-linux-musl", |
| "aarch64-pc-windows-msvc", |
| "wasm32-wasip1-threads" |
| ] |
| } |
| }, |
| "devDependencies": { |
| "@napi-rs/cli": "2.18.4", |
| "cross-env": "6.0.3", |
| "wasm-pack": "0.13.1" |
| } |
| } |
|
|