rtme.sh 0.1.20 → 0.1.21

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/README.md CHANGED
@@ -14,4 +14,8 @@ bun add -g rtme.sh
14
14
  rtme.sh
15
15
  ```
16
16
 
17
- This package forwards to `@elefunc/send@0.1.20`. Visible help text and in-app branding may still refer to the source package.
17
+ ## Bundled environment defaults
18
+
19
+ This wrapper publishes default values for `SEND_NAME`. Values from the invoking shell override these defaults at runtime.
20
+
21
+ This package forwards to `@elefunc/send@0.1.21`. Visible help text and in-app branding may still refer to the source package.
package/bin/rtme.sh.js CHANGED
@@ -7,6 +7,7 @@ import { fileURLToPath } from "node:url";
7
7
 
8
8
  const SOURCE_PACKAGE = "@elefunc/send";
9
9
  const TARGET_COMMAND = "rtme.sh";
10
+ const PACKAGED_ENV = {"SEND_NAME": "rtme.sh"};
10
11
  const SOURCE_PARTS = SOURCE_PACKAGE.split("/");
11
12
 
12
13
  const commandExists = command => {
@@ -68,9 +69,10 @@ if (!runner) {
68
69
  }
69
70
 
70
71
  const args = process.argv.slice(2);
72
+ const childEnv = { ...PACKAGED_ENV, ...process.env };
71
73
  const child = runner
72
- ? spawnSync(runner, [binPath, ...args], { stdio: "inherit" })
73
- : spawnSync(binPath, args, { stdio: "inherit" });
74
+ ? spawnSync(runner, [binPath, ...args], { stdio: "inherit", env: childEnv })
75
+ : spawnSync(binPath, args, { stdio: "inherit", env: childEnv });
74
76
 
75
77
  if (child.error) fail(child.error.message);
76
78
  if (typeof child.status === "number") process.exit(child.status);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtme.sh",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "Thin Bun wrapper for @elefunc/send.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,6 +20,6 @@
20
20
  "access": "public"
21
21
  },
22
22
  "dependencies": {
23
- "@elefunc/send": "0.1.20"
23
+ "@elefunc/send": "0.1.21"
24
24
  }
25
25
  }