@multiplatform.one/cli 9.0.9 → 9.0.10
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 +3 -1
package/lib/source.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/cli",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.10",
|
|
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",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@multiplatform.one/utils": "^9.0.
|
|
60
|
+
"@multiplatform.one/utils": "^9.0.10",
|
|
61
61
|
"commander": "^15.0.0",
|
|
62
62
|
"dotenv": "^17.4.2",
|
|
63
63
|
"inquirer": "^14.2.3",
|
package/scripts/scaffold.sh
CHANGED
|
@@ -981,7 +981,9 @@ const pkg = JSON.parse(fs.readFileSync(pkgFile, "utf8"));
|
|
|
981
981
|
const exclusion = /\s--filter[= ](['"]?)!(?:\^?\.\.\.)?([@a-z][^'"\s]*?)(?:\.\.\.)?\1(?=\s|$)/g;
|
|
982
982
|
let pkgChanged = false;
|
|
983
983
|
for (const [name, script] of Object.entries(pkg.scripts ?? {})) {
|
|
984
|
-
const kept = script.replace(exclusion, (whole, _quote, filtered) =>
|
|
984
|
+
const kept = script.replace(exclusion, (whole, _quote, filtered) =>
|
|
985
|
+
filtered.includes("*") || names.has(filtered) ? whole : "",
|
|
986
|
+
);
|
|
985
987
|
if (kept !== script) {
|
|
986
988
|
pkg.scripts[name] = kept;
|
|
987
989
|
pkgChanged = true;
|