mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-27 14:28:08 +09:00
Faster native-utils-migration build
This commit is contained in:
parent
29c6e6e394
commit
330c51bccf
@ -45,3 +45,7 @@ napi-build = "2.0.1"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
||||
[profile.release-no-lto]
|
||||
inherits = "release"
|
||||
lto = false
|
||||
|
@ -36,8 +36,8 @@
|
||||
"artifacts": "napi artifacts",
|
||||
"build": "yarn build:napi && yarn build:migration",
|
||||
"build:napi": "napi build --features napi --platform --release ./built/",
|
||||
"build:migration": "cargo build --locked --release --manifest-path ./migration/Cargo.toml && cp ./target/release/migration ./built/migration",
|
||||
"build:debug": "napi build --platform ./built/ && cargo build --manifest-path ./migration/Cargo.toml",
|
||||
"build:migration": "cargo build --locked --profile release-no-lto -p migration && cp ./target/release-no-lto/migration ./built/migration",
|
||||
"build:debug": "napi build --platform ./built/ && cargo build -p migration",
|
||||
"prepublishOnly": "napi prepublish -t npm",
|
||||
"test": "yarn cargo:test && yarn build:napi && ava",
|
||||
"universal": "napi universal",
|
||||
|
Loading…
Reference in New Issue
Block a user