runtime-resolver 1.0.15 → 1.0.17
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/bin/runtime-resolver.js +1 -1
- package/command.js +12 -12
- package/package.json +4 -4
package/bin/runtime-resolver.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Effect, Exit } from "effect";
|
|
|
6
6
|
import { Command } from "effect/unstable/cli";
|
|
7
7
|
|
|
8
8
|
//#region src/cli/index.ts
|
|
9
|
-
const program = Command.runWith(cli, { version: "1.0.
|
|
9
|
+
const program = Command.runWith(cli, { version: "1.0.17" })(process.argv.slice(2)).pipe(Effect.provide(NodeCliEnvironment));
|
|
10
10
|
const exit = await Effect.runPromiseExit(program);
|
|
11
11
|
if (Exit.isFailure(exit)) {
|
|
12
12
|
process.exitCode = 1;
|
package/command.js
CHANGED
|
@@ -28,22 +28,22 @@ const describeResolveError = (runtime, error) => {
|
|
|
28
28
|
const resolveRuntime = (runtime, resolve, layer) => resolve.pipe(Effect.mapError((error) => new CliError.UserError({ cause: describeResolveError(runtime, error) })), Effect.provide(layer));
|
|
29
29
|
/** Fail with the CLI framework's user-error, carrying an already-formatted message. */
|
|
30
30
|
const usageError = (message) => Effect.fail(new CliError.UserError({ cause: message }));
|
|
31
|
-
const nodeFlag = Flag.optional(Flag.
|
|
32
|
-
const bunFlag = Flag.optional(Flag.
|
|
33
|
-
const denoFlag = Flag.optional(Flag.
|
|
34
|
-
const nodePhasesFlag = Flag.optional(Flag.
|
|
35
|
-
const incrementsFlag = Flag.optional(Flag.
|
|
31
|
+
const nodeFlag = Flag.optional(Flag.String("node").pipe(Flag.withDescription("Resolve Node.js versions for this semver range")));
|
|
32
|
+
const bunFlag = Flag.optional(Flag.String("bun").pipe(Flag.withDescription("Resolve Bun versions for this semver range")));
|
|
33
|
+
const denoFlag = Flag.optional(Flag.String("deno").pipe(Flag.withDescription("Resolve Deno versions for this semver range")));
|
|
34
|
+
const nodePhasesFlag = Flag.optional(Flag.String("node-phases").pipe(Flag.withDescription(`Comma-separated Node lifecycle phases (${NODE_PHASES.join(", ")})`)));
|
|
35
|
+
const incrementsFlag = Flag.optional(Flag.Literals("increments", [
|
|
36
36
|
"latest",
|
|
37
37
|
"minor",
|
|
38
38
|
"patch"
|
|
39
39
|
]).pipe(Flag.withDescription("Grouping granularity applied to every requested runtime")));
|
|
40
|
-
const nodeDefaultFlag = Flag.optional(Flag.
|
|
41
|
-
const bunDefaultFlag = Flag.optional(Flag.
|
|
42
|
-
const denoDefaultFlag = Flag.optional(Flag.
|
|
43
|
-
const nodeDateFlag = Flag.optional(Flag.
|
|
44
|
-
const prettyFlag = Flag.
|
|
45
|
-
const offlineFlag = Flag.
|
|
46
|
-
const tokenFlag = Flag.optional(Flag.
|
|
40
|
+
const nodeDefaultFlag = Flag.optional(Flag.String("node-default").pipe(Flag.withDescription("Range whose newest Node match becomes the `default` field")));
|
|
41
|
+
const bunDefaultFlag = Flag.optional(Flag.String("bun-default").pipe(Flag.withDescription("Range whose newest Bun match becomes the `default` field")));
|
|
42
|
+
const denoDefaultFlag = Flag.optional(Flag.String("deno-default").pipe(Flag.withDescription("Range whose newest Deno match becomes the `default` field")));
|
|
43
|
+
const nodeDateFlag = Flag.optional(Flag.Date("node-date").pipe(Flag.withDescription("ISO date at which to evaluate Node lifecycle phases")));
|
|
44
|
+
const prettyFlag = Flag.Boolean("pretty").pipe(Flag.withDescription("Pretty-print the JSON output with 2-space indentation"), Flag.withDefault(false));
|
|
45
|
+
const offlineFlag = Flag.Boolean("offline").pipe(Flag.withDescription("Resolve from the bundled snapshot only; make no network requests"), Flag.withDefault(false));
|
|
46
|
+
const tokenFlag = Flag.optional(Flag.Redacted("token").pipe(Flag.withDescription("GitHub personal access token used for Bun and Deno lookups")));
|
|
47
47
|
/**
|
|
48
48
|
* Build the `runtime-resolver` command around a resolver-layer selector.
|
|
49
49
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "runtime-resolver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Resolve semver-compatible versions of Node.js, Bun, and Deno runtimes with Effect-based architecture and offline fallback.",
|
|
6
6
|
"keywords": [
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"runtime-resolver": "bin/runtime-resolver.js"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@effected/runtimes": "^0.
|
|
41
|
-
"@effected/semver": "^0.
|
|
42
|
-
"effect": "4.0.0-rc.
|
|
40
|
+
"@effected/runtimes": "^0.6.1",
|
|
41
|
+
"@effected/semver": "^0.7.0",
|
|
42
|
+
"effect": "4.0.0-rc.115"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=24.11.0"
|