@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b9g/libuild",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Zero-config library builds",
5
5
  "keywords": [
6
6
  "build",
package/src/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env sh
2
- //bin/true; exec "$({ [ "${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] || true; } && command -v bun || command -v node)" "$0" "$@"
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 '//bin/true; exec "$({ [ "${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] || true; } && command -v bun || command -v node)" "$0" "$@"';
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 '//bin/true; exec "$([ "${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] && command -v bun || command -v node)" "$0" "$@"';
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 '//bin/true; exec "$({ [ "${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] || true; } && command -v bun || command -v node)" "$0" "$@"';
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 '//bin/true; exec "$([ "${npm_config_user_agent#bun/}" != "$npm_config_user_agent" ] && command -v bun || command -v node)" "$0" "$@"';
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) {