perf: use exec in unix bin linkers

This commit is contained in:
daimond113 2024-12-08 19:19:43 +01:00
parent 49a42dc931
commit 6d8731f1e5
No known key found for this signature in database
GPG key ID: 3A8ECE51328B513C
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Performance
- Use `exec` in Unix bin linking to reduce the number of processes by @daimond113
## [0.5.0-rc.16] - 2024-12-08 ## [0.5.0-rc.16] - 2024-12-08
### Fixed ### Fixed
- Do not require lib or bin exports if package exports scripts by @daimond113 - Do not require lib or bin exports if package exports scripts by @daimond113

View file

@ -257,7 +257,7 @@ impl InstallCommand {
fs::write( fs::write(
&bin_exec_file, &bin_exec_file,
format!(r#"#!/bin/sh format!(r#"#!/bin/sh
lune run "$(dirname "$0")/.impl/{alias}.luau" -- "$@""# exec lune run "$(dirname "$0")/.impl/{alias}.luau" -- "$@""#
), ),
) )
.await .await