@multiplatform.one/cli 7.58.0 → 7.60.0

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/lib/source.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "cliVersion": "7.58.0",
2
+ "cliVersion": "7.60.0",
3
3
  "url": "https://git.corp.bitspur.com/multiplatform.one/mpo.git",
4
- "sha": "ceeafc52de7650c3b9179e56ea2ca1fbcb7e8e52"
4
+ "sha": "9bc40f838fb66bb9bbfac5538d45d296374ffdb9"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/cli",
3
- "version": "7.58.0",
3
+ "version": "7.60.0",
4
4
  "description": "multiplatform.one cli — mpo init clones and prunes the monorepo, mpo update merges it back",
5
5
  "keywords": [
6
6
  "create-multiplatform-app",
@@ -56,7 +56,7 @@
56
56
  "access": "public"
57
57
  },
58
58
  "dependencies": {
59
- "@multiplatform.one/utils": "^7.58.0",
59
+ "@multiplatform.one/utils": "^7.60.0",
60
60
  "commander": "^15.0.0",
61
61
  "dotenv": "^17.4.2",
62
62
  "inquirer": "^14.2.3",
@@ -775,9 +775,19 @@ const cleanSegment = (segment) =>
775
775
  segment.replace(/\s--ignore-pattern\s+'([^']*)'/g, (whole, pattern) =>
776
776
  namesPruned(pattern) ? "" : whole,
777
777
  );
778
+ // Each product app carries apps/one's design baseline; a pruned tree's
779
+ // baseline is gone, and a lint naming a missing baseline fails.
780
+ const designBaselines = (value) =>
781
+ value.replace(/\s--baseline\s+(\S+)/g, (whole, file) => {
782
+ if (file.startsWith("apps/one/"))
783
+ return apps.map((app) => ` --baseline apps/${app}/${file.slice("apps/one/".length)}`).join("");
784
+ return namesPruned(file) ? "" : whole;
785
+ });
778
786
  const scripts = {};
779
- for (const [name, value] of Object.entries(pkg.scripts ?? {})) {
787
+ for (const [name, script] of Object.entries(pkg.scripts ?? {})) {
780
788
  if (/^(docs|docs:watch|changeset|changeset:publish|generate:tamagui-paths|prepare)$/.test(name)) continue;
789
+ const value = name === "lint:design" ? designBaselines(script) : script;
790
+ if (name === "lint:design" && !/\s--baseline\s/.test(value)) continue;
781
791
  // verify:lc audits the catalog in public/ against the rulebook in docs/.
782
792
  if (name === "verify:lc" && (pruned.includes("public") || pruned.includes("docs"))) continue;
783
793
  const kept = value.split(" && ").filter((segment) => !dropSegment(segment)).map(cleanSegment);