From 6d8731f1e50ce1afd51c01d0c069a7ff58fe7165 Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Sun, 8 Dec 2024 19:19:43 +0100 Subject: [PATCH] perf: use exec in unix bin linkers --- CHANGELOG.md | 4 ++++ src/cli/commands/install.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 912249d..c4af646 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/), 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 ### Fixed - Do not require lib or bin exports if package exports scripts by @daimond113 diff --git a/src/cli/commands/install.rs b/src/cli/commands/install.rs index 7126171..dee73a0 100644 --- a/src/cli/commands/install.rs +++ b/src/cli/commands/install.rs @@ -257,7 +257,7 @@ impl InstallCommand { fs::write( &bin_exec_file, format!(r#"#!/bin/sh -lune run "$(dirname "$0")/.impl/{alias}.luau" -- "$@""# +exec lune run "$(dirname "$0")/.impl/{alias}.luau" -- "$@""# ), ) .await