mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
45 lines
2.3 KiB
JSON
45 lines
2.3 KiB
JSON
{
|
|
"name": "@next/swc",
|
|
"version": "16.3.0-canary.103",
|
|
"private": true,
|
|
"files": [
|
|
"native/"
|
|
],
|
|
"scripts": {
|
|
"build-native-auto": "node maybe-build-native.mjs",
|
|
"clean": "node ../../scripts/rm.mjs native",
|
|
"build-native": "napi build --platform -p next-napi-bindings --cargo-cwd ../../ --cargo-name next_napi_bindings --features image-extended --js false native",
|
|
"build-native-release": "napi build --platform -p next-napi-bindings --cargo-cwd ../../ --cargo-name next_napi_bindings --release --features image-extended,tracing/release_max_level_trace --js false native",
|
|
"build-native-release-with-assertions": "napi build --platform -p next-napi-bindings --cargo-cwd ../../ --cargo-name next_napi_bindings --profile release-with-assertions --features image-extended,tracing/release_max_level_trace --js false native",
|
|
"build-native-wasi": "npx --package=@napi-rs/[email protected] napi build --platform --target wasm32-wasip1-threads -p next-napi-bindings --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-fingerprint": "node ../../scripts/rust-fingerprint.js",
|
|
"rust-check-clippy": "cargo clippy --workspace --all-targets -- -D warnings -A deprecated",
|
|
"rust-check-doc": "RUSTDOCFLAGS='-Zunstable-options --output-format=json' cargo doc --no-deps --workspace",
|
|
"rust-check-fmt": "cd ../..; cargo fmt -- --check",
|
|
"rust-check-napi": "cargo check -p next-napi-bindings",
|
|
"test-cargo-unit": "cargo nextest run --workspace --exclude next-napi-bindings --exclude turbo-tasks-macros --cargo-profile release-with-assertions --no-fail-fast && cargo test --workspace --doc --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"
|
|
}
|
|
}
|