1tube 0.1.12 → 0.1.13
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 +3 -0
- package/package.json +1 -1
- package/scripts/npm-cli.js +4 -1
package/README.md
CHANGED
|
@@ -44,6 +44,9 @@ The published npm package exposes a `1tube` binary. It is a tiny Node shim that
|
|
|
44
44
|
launches this repo's Deno CLI, so machines using it need Deno on `PATH`.
|
|
45
45
|
|
|
46
46
|
```bash
|
|
47
|
+
# Show CLI help
|
|
48
|
+
npx 1tube
|
|
49
|
+
|
|
47
50
|
# Build and sign a firmware payload in one command
|
|
48
51
|
npx 1tube package --functions supabase/functions --out fw.1tube --sign-key "$1TUBE_PACKAGE_SIGN_KEY"
|
|
49
52
|
|
package/package.json
CHANGED
package/scripts/npm-cli.js
CHANGED
|
@@ -9,16 +9,19 @@ const packageRoot = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
|
|
9
9
|
const denoConfig = resolve(packageRoot, "deno.json");
|
|
10
10
|
const cliEntrypoint = resolve(packageRoot, "src", "cli.ts");
|
|
11
11
|
const denoBin = process.env.DENO_BIN || "deno";
|
|
12
|
+
const cliArgs = process.argv.slice(2);
|
|
13
|
+
const forwardedArgs = cliArgs.length === 0 ? ["--help"] : cliArgs;
|
|
12
14
|
|
|
13
15
|
const child = spawn(
|
|
14
16
|
denoBin,
|
|
15
17
|
[
|
|
16
18
|
"run",
|
|
19
|
+
"--quiet",
|
|
17
20
|
"-A",
|
|
18
21
|
"--config",
|
|
19
22
|
denoConfig,
|
|
20
23
|
cliEntrypoint,
|
|
21
|
-
...
|
|
24
|
+
...forwardedArgs,
|
|
22
25
|
],
|
|
23
26
|
{
|
|
24
27
|
stdio: "inherit",
|