@multiplatform.one/cli 7.59.0 → 7.61.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 +2 -2
- package/package.json +2 -2
- package/scripts/scaffold.sh +11 -1
package/lib/source.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/cli",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.61.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.
|
|
59
|
+
"@multiplatform.one/utils": "^7.61.0",
|
|
60
60
|
"commander": "^15.0.0",
|
|
61
61
|
"dotenv": "^17.4.2",
|
|
62
62
|
"inquirer": "^14.2.3",
|
package/scripts/scaffold.sh
CHANGED
|
@@ -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,
|
|
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);
|