@h-rig/cli 0.0.6-alpha.30 → 0.0.6-alpha.31
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/dist/bin/rig.js +202 -199
- package/dist/src/commands/plugin.js +6 -1
- package/dist/src/commands.js +194 -191
- package/dist/src/index.js +202 -199
- package/package.json +6 -6
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
+
// packages/cli/src/commands/plugin.ts
|
|
5
|
+
import { existsSync } from "fs";
|
|
6
|
+
import { resolve } from "path";
|
|
7
|
+
|
|
4
8
|
// packages/cli/src/runner.ts
|
|
5
9
|
import { EventBus } from "@rig/runtime/control-plane/runtime/events";
|
|
6
10
|
import { CliError } from "@rig/runtime/control-plane/errors";
|
|
@@ -81,7 +85,8 @@ async function executePlugin(context, args) {
|
|
|
81
85
|
}
|
|
82
86
|
if (context.outputMode === "text") {
|
|
83
87
|
if (declarative.length === 0) {
|
|
84
|
-
|
|
88
|
+
const configExists = ["rig.config.ts", "rig.config.mts", "rig.config.json"].some((name) => existsSync(resolve(context.projectRoot, name)));
|
|
89
|
+
console.log(configExists ? "rig.config found but no plugins could be loaded. If the config imports @rig/* packages, run `bun install` in this project first." : "No plugins loaded. Declare plugins in rig.config.ts.");
|
|
85
90
|
} else {
|
|
86
91
|
console.log("Plugins (rig.config.ts):");
|
|
87
92
|
for (const p of declarative) {
|