@olivervea/pipelines 2.0.0-beta.10 → 2.0.0-beta.12
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 +1 -1
- package/package.json +2 -2
- package/src/dev/cli.ts +2 -2
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The [Olve.Pipelines](https://github.com/OliverVea/Olve.Pipelines) v2 SDK. It has
|
|
|
7
7
|
- the **build tool** (`olve-build`), which turns a pipeline directory into `step.tar.zst` and `manifest.json`;
|
|
8
8
|
- the **dev runner** (`olve-dev`), which runs the same harness path from source (used by `pl dev`).
|
|
9
9
|
|
|
10
|
-
Design: [`docs/design/pipelines-v2.md`](https://github.com/OliverVea/Olve.Pipelines/blob/
|
|
10
|
+
Design: [`docs/design/pipelines-v2.md`](https://github.com/OliverVea/Olve.Pipelines/blob/main/docs/design/pipelines-v2.md). Spike findings: [`pipelines-v2-spikes.md`](https://github.com/OliverVea/Olve.Pipelines/blob/main/docs/design/pipelines-v2-spikes.md).
|
|
11
11
|
The manifest format is in [`manifest.schema.json`](manifest.schema.json), generated from [`src/describe/manifest-schema.ts`](src/describe/manifest-schema.ts).
|
|
12
12
|
|
|
13
13
|
```
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@olivervea/pipelines",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.12",
|
|
4
4
|
"description": "Olve.Pipelines v2 SDK: typed pipeline authoring, the step harness, and the build tool.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Oliver Vea",
|
|
8
|
-
"homepage": "https://github.com/OliverVea/Olve.Pipelines/tree/
|
|
8
|
+
"homepage": "https://github.com/OliverVea/Olve.Pipelines/tree/main/sdk#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "git+https://github.com/OliverVea/Olve.Pipelines.git",
|
package/src/dev/cli.ts
CHANGED
|
@@ -58,6 +58,8 @@ export async function devMain(argv: string[]): Promise<number> {
|
|
|
58
58
|
if (mode === "describe") return await runHarness(await devConfig(dir, true), ["describe", ...(values.sentinels ? ["--sentinels"] : [])]);
|
|
59
59
|
if (mode !== "run" && mode !== "map-trigger") return console.error(USAGE), EXIT.usage;
|
|
60
60
|
if (!name) return console.error(USAGE), EXIT.usage;
|
|
61
|
+
const file = mode === "run" ? values["input-file"] : values["event-file"];
|
|
62
|
+
if (mode === "map-trigger" && !file) return console.error("--event-file is required"), EXIT.usage;
|
|
61
63
|
const olveDir = resolve(values["olve-dir"] ?? join(dir, ".olve"));
|
|
62
64
|
mkdirSync(olveDir, { recursive: true });
|
|
63
65
|
process.env.OLVE_DIR = olveDir;
|
|
@@ -67,7 +69,6 @@ export async function devMain(argv: string[]): Promise<number> {
|
|
|
67
69
|
if (i <= 0) return console.error(`--secret expects NAME=value, got '${s}'`), EXIT.usage;
|
|
68
70
|
process.env[s.slice(0, i)] = s.slice(i + 1);
|
|
69
71
|
}
|
|
70
|
-
const file = mode === "run" ? values["input-file"] : values["event-file"];
|
|
71
72
|
if (file) copyFileSync(resolve(file), join(olveDir, "input.json"));
|
|
72
73
|
if (mode === "run" && values["config-file"]) {
|
|
73
74
|
const inputFile = join(olveDir, "input.json");
|
|
@@ -75,7 +76,6 @@ export async function devMain(argv: string[]): Promise<number> {
|
|
|
75
76
|
input.$config = JSON.parse(readFileSync(resolve(values["config-file"]), "utf8"));
|
|
76
77
|
writeFileSync(inputFile, JSON.stringify(input));
|
|
77
78
|
}
|
|
78
|
-
else if (mode === "map-trigger") return console.error("--event-file is required"), EXIT.usage;
|
|
79
79
|
return await runHarness(await devConfig(dir, false), [mode, name]);
|
|
80
80
|
} catch (e) {
|
|
81
81
|
if (e instanceof ProjectError) return console.error(e.message), EXIT.configInvalid;
|