Faster native-utils-migration build

This commit is contained in:
Laura Hausmann 2023-08-03 23:56:27 +02:00
parent 29c6e6e394
commit 330c51bccf
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 6 additions and 2 deletions

View file

@ -45,3 +45,7 @@ napi-build = "2.0.1"
[profile.release]
lto = true
[profile.release-no-lto]
inherits = "release"
lto = false

View file

@ -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",