57ba24e39a
When incompatibilities with upgrades to `swc` occur between releases, these changes expand the existing `pnpm clean` script to additionally run any `clean` script under any of the lerna packages. In this case, a new script was created under `packages/next-swc` that removes `packages/next-swc/native/*`, allowing the default to automatically use the WASM build. Users wanting to reset their repository can now run: ```sh pnpm clean ``` Future packages or outputs that are built should have their `clean` script remove them to allow for easy repository resetting.
36 lines
1.4 KiB
JSON
36 lines
1.4 KiB
JSON
{
|
|
"name": "@next/swc",
|
|
"version": "13.1.6-canary.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"clean": "rm -rf ./native/*",
|
|
"build-native": "napi build --platform -p next-swc-napi --cargo-name next_swc_napi --features plugin,rustls-tls --js false native",
|
|
"build-native-woa": "napi build --platform -p next-swc-napi --cargo-name next_swc_napi --features plugin,native-tls --js false native",
|
|
"build-native-no-plugin": "napi build --platform -p next-swc-napi --cargo-name next_swc_napi --js false native",
|
|
"build-native-no-plugin-woa": "napi build --platform -p next-swc-napi --cargo-name next_swc_napi --cargo-flags=--no-default-features --features native-tls --js false native",
|
|
"build-wasm": "wasm-pack build crates/wasm --scope=next",
|
|
"cache-build-native": "echo $(ls native)",
|
|
"test-pack": "cd ../../ && pnpm test-pack next-swc"
|
|
},
|
|
"napi": {
|
|
"name": "next-swc",
|
|
"triples": {
|
|
"defaults": true,
|
|
"additional": [
|
|
"i686-pc-windows-msvc",
|
|
"aarch64-unknown-linux-gnu",
|
|
"armv7-unknown-linux-gnueabihf",
|
|
"aarch64-apple-darwin",
|
|
"aarch64-linux-android",
|
|
"arm-linux-androideabi",
|
|
"x86_64-unknown-freebsd",
|
|
"x86_64-unknown-linux-musl",
|
|
"aarch64-unknown-linux-musl",
|
|
"aarch64-pc-windows-msvc"
|
|
]
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "2.13.3"
|
|
}
|
|
}
|