@b9g/libuild 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/libuild.cjs +2 -2
- package/src/libuild.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.1.14] - 2025-01-14
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **Eliminate stderr noise from dual-purpose shebang** - Changed from `//bin/true` to standard polyglot pattern `':' //;` to prevent shell from attempting to execute non-existent path, eliminating "No such file or directory" errors while maintaining dual runtime detection
|
|
9
|
+
|
|
5
10
|
## [0.1.13] - 2025-01-14
|
|
6
11
|
|
|
7
12
|
### Fixed
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env sh
|
|
2
|
-
|
|
2
|
+
':' //; exec "$({ [ "${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] || true; } && command -v bun || command -v node)" "$0" "$@"
|
|
3
3
|
/// <reference types="./cli.d.ts" />
|
|
4
4
|
|
|
5
5
|
// src/cli.ts
|
package/src/libuild.cjs
CHANGED
|
@@ -215233,9 +215233,9 @@ ${content}`;
|
|
|
215233
215233
|
function generateRuntimeBanner(pkg) {
|
|
215234
215234
|
const prefersBun = pkg.engines?.bun !== void 0;
|
|
215235
215235
|
if (prefersBun) {
|
|
215236
|
-
return '
|
|
215236
|
+
return `':' //; exec "$({ [ "\${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] || true; } && command -v bun || command -v node)" "$0" "$@"`;
|
|
215237
215237
|
} else {
|
|
215238
|
-
return '
|
|
215238
|
+
return `':' //; exec "$([ "\${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] && command -v bun || command -v node)" "$0" "$@"`;
|
|
215239
215239
|
}
|
|
215240
215240
|
}
|
|
215241
215241
|
async function processJavaScriptExecutable(filePath, runtimeBanner) {
|
package/src/libuild.js
CHANGED
|
@@ -220,9 +220,9 @@ ${content}`;
|
|
|
220
220
|
function generateRuntimeBanner(pkg) {
|
|
221
221
|
const prefersBun = pkg.engines?.bun !== void 0;
|
|
222
222
|
if (prefersBun) {
|
|
223
|
-
return '
|
|
223
|
+
return `':' //; exec "$({ [ "\${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] || true; } && command -v bun || command -v node)" "$0" "$@"`;
|
|
224
224
|
} else {
|
|
225
|
-
return '
|
|
225
|
+
return `':' //; exec "$([ "\${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] && command -v bun || command -v node)" "$0" "$@"`;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
async function processJavaScriptExecutable(filePath, runtimeBanner) {
|