@mutmutco/cli 2.52.0 → 2.52.1
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/main.cjs +15 -1
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -16082,7 +16082,7 @@ ${section}`.trim();
|
|
|
16082
16082
|
}
|
|
16083
16083
|
|
|
16084
16084
|
// src/project-set.ts
|
|
16085
|
-
var UNSET_KEYS = ["oauth", "requiredRuntimeSecrets", "edgeDomains", "requiredGcpApis", "publishRequired", "publishDir", "dashboard", "fofuEnabled", "consumesDesignSystem", "ci", "requiredChecks", "gate"];
|
|
16085
|
+
var UNSET_KEYS = ["oauth", "requiredRuntimeSecrets", "edgeDomains", "requiredGcpApis", "publishRequired", "publishDir", "dsManifestPath", "dashboard", "fofuEnabled", "consumesDesignSystem", "ci", "requiredChecks", "gate"];
|
|
16086
16086
|
var UNSET_KEY_SET = new Set(UNSET_KEYS);
|
|
16087
16087
|
var RUNTIME_SECRET_STAGES = ["dev", "rc", "main"];
|
|
16088
16088
|
function parseRuntimeSecretsVar(raw) {
|
|
@@ -16268,6 +16268,16 @@ function parsePublishDirVar(raw) {
|
|
|
16268
16268
|
}
|
|
16269
16269
|
return v;
|
|
16270
16270
|
}
|
|
16271
|
+
function parseDsManifestPathVar(raw) {
|
|
16272
|
+
const v = raw.trim();
|
|
16273
|
+
if (v === "" || !/^[A-Za-z0-9._-]+(\/[A-Za-z0-9._-]+)*$/.test(v) || /(^|\/)\.\.(\/|$)/.test(v)) {
|
|
16274
|
+
throw new Error('project set: dsManifestPath must be a safe relative path \u2014 no leading slash, no ".." segment');
|
|
16275
|
+
}
|
|
16276
|
+
if (v !== "package.json" && !v.endsWith("/package.json")) {
|
|
16277
|
+
throw new Error("project set: dsManifestPath must point to a package.json, e.g. web/package.json");
|
|
16278
|
+
}
|
|
16279
|
+
return v;
|
|
16280
|
+
}
|
|
16271
16281
|
function parseRequiredChecksVar(raw) {
|
|
16272
16282
|
let parsed;
|
|
16273
16283
|
try {
|
|
@@ -16319,6 +16329,7 @@ var SETTABLE_VAR_KEYS = [
|
|
|
16319
16329
|
"oauth",
|
|
16320
16330
|
"publishRequired",
|
|
16321
16331
|
"publishDir",
|
|
16332
|
+
"dsManifestPath",
|
|
16322
16333
|
"dashboard",
|
|
16323
16334
|
"fofuEnabled",
|
|
16324
16335
|
"consumesDesignSystem",
|
|
@@ -16339,6 +16350,7 @@ var SETTABLE_VAR_HINTS = {
|
|
|
16339
16350
|
projectNumber: "numeric",
|
|
16340
16351
|
publishRequired: "true|false",
|
|
16341
16352
|
publishDir: "relative subpath, e.g. packages/ui",
|
|
16353
|
+
dsManifestPath: "relative path to a package.json, e.g. web/package.json",
|
|
16342
16354
|
dashboard: "true|false",
|
|
16343
16355
|
fofuEnabled: "true|false",
|
|
16344
16356
|
consumesDesignSystem: '"fofu"',
|
|
@@ -16423,6 +16435,8 @@ function buildProjectSetPatch(input) {
|
|
|
16423
16435
|
patch[key] = parseConsumesDesignSystemVar(raw);
|
|
16424
16436
|
} else if (key === "publishDir") {
|
|
16425
16437
|
patch[key] = parsePublishDirVar(raw);
|
|
16438
|
+
} else if (key === "dsManifestPath") {
|
|
16439
|
+
patch[key] = parseDsManifestPathVar(raw);
|
|
16426
16440
|
} else if (key === "ci") {
|
|
16427
16441
|
if (raw !== "none") throw new Error('project set: ci must be "none" (or use --unset ci to require checks)');
|
|
16428
16442
|
patch[key] = raw;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutmutco/cli",
|
|
3
|
-
"version": "2.52.
|
|
3
|
+
"version": "2.52.1",
|
|
4
4
|
"description": "MMI Future CLI — delivers the org rules (whole-file), plus saga and KB access. The cross-IDE engine the plugin's SessionStart hook drives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|