withruntime 0.2.0 → 0.2.2
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/cli.js +6 -7
- package/package.json +2 -2
package/cli.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Forward to the official Runtime Cloud CLI in @withruntime/cloud.
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
await import(pathToFileURL(join(dirname(main), "cli.js")).href);
|
|
2
|
+
// Forward to the official Runtime Cloud CLI in @withruntime/cloud. The CLI runs
|
|
3
|
+
// only when it is the entry point, so point argv[1] at it before importing it.
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
const cli = new URL("./cli.js", import.meta.resolve("@withruntime/cloud"));
|
|
6
|
+
process.argv[1] = fileURLToPath(cli);
|
|
7
|
+
await import(cli.href);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "withruntime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Runtime Cloud's CLI. This name forwards to @withruntime/cloud, the official package from withruntime.com.",
|
|
5
5
|
"homepage": "https://withruntime.com",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"bin": { "withruntime": "
|
|
8
|
+
"bin": { "withruntime": "cli.js" },
|
|
9
9
|
"files": ["cli.js", "README.md"],
|
|
10
10
|
"dependencies": { "@withruntime/cloud": ">=0.1.0" },
|
|
11
11
|
"engines": { "node": ">=22" }
|