39 lines
2.2 KiB
JSON
39 lines
2.2 KiB
JSON
{
|
|
"name": "@next/swc",
|
|
"version": "14.1.2-canary.2",
|
|
"private": true,
|
|
"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-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-woa": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --cargo-flags=--no-default-features --features image-webp --js false native",
|
|
"build-native-no-plugin-woa-release": "napi build --platform -p next-swc-napi --cargo-cwd ../../ --cargo-name next_swc_napi --release --cargo-flags=--no-default-features --features image-webp,tracing/release_max_level_info --js false native",
|
|
"build-native-wasi": "npx --package=@napi-rs/cli@3.0.0-alpha.36 napi build --platform --target wasm32-wasi-preview1-threads -p next-swc-napi --cwd ../../ --output-dir packages/next-swc/native",
|
|
"build-wasm": "wasm-pack build crates/wasm --scope=next",
|
|
"cache-build-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-rustls": "cargo check -p next-swc-napi",
|
|
"test-cargo-unit": "cargo nextest run --workspace --exclude next-swc-napi --release --no-fail-fast --features rustls-tls"
|
|
},
|
|
"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-wasi-preview1-threads"
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "2.18.0",
|
|
"cross-env": "6.0.3"
|
|
}
|
|
}
|