@eventmodelers/cli 0.0.25 → 0.0.26
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 +4 -3
- package/lib/fetch.js +3 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1110,10 +1110,11 @@ program
|
|
|
1110
1110
|
|
|
1111
1111
|
// Commands exempt from the "is a kit installed here?" gate below: init (with or
|
|
1112
1112
|
// without --modeling) is what installs one in the first place, init-config only
|
|
1113
|
-
// ever touches credentials,
|
|
1113
|
+
// ever touches credentials, stacks/status/config/uninstall are read-only or
|
|
1114
1114
|
// cleanup commands that are meant to work — and report something useful — whether
|
|
1115
|
-
// or not a kit is present
|
|
1116
|
-
|
|
1115
|
+
// or not a kit is present, and fetch only needs credentials plus somewhere to write
|
|
1116
|
+
// .slices/ (cwd, absent a kit dir — see lib/fetch.js), no kit-specific files.
|
|
1117
|
+
const NO_INIT_REQUIRED = new Set(['init', 'init-config', 'stacks', 'status', 'config', 'uninstall', 'fetch']);
|
|
1117
1118
|
|
|
1118
1119
|
program.hook('preAction', (_thisCommand, actionCommand) => {
|
|
1119
1120
|
if (NO_INIT_REQUIRED.has(actionCommand.name())) return;
|
package/lib/fetch.js
CHANGED
|
@@ -107,7 +107,9 @@ export async function runFetch({ cwd, kitDir, cfg, opts = {} }) {
|
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
// Falls back to cwd when no kit is installed — fetch doesn't need kit-specific
|
|
111
|
+
// files, just somewhere to write .slices/.
|
|
112
|
+
const SLICES_DIR = join(kitDir || cwd, '.slices');
|
|
111
113
|
const contextNames = new Set();
|
|
112
114
|
|
|
113
115
|
for (const slice of allSlices) {
|
package/package.json
CHANGED