@multiplatform.one/cli 9.0.8 → 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.
@@ -80,7 +80,7 @@ async function scaffoldScriptAt(source, ref, file) {
80
80
  "if [ -d \"$SOURCE\" ]; then",
81
81
  " REPO=\"$SOURCE\"",
82
82
  " COMMIT=\"$(git -C \"$REPO\" rev-parse --verify --quiet \"$REF^{commit}\")\" ||",
83
- " { printf \"%s is not a commit in %s\\n\" \"$REF\" \"$REPO\" >&2; exit 1; }",
83
+ String.raw` { printf "%s is not a commit in %s\n" "$REF" "$REPO" >&2; exit 1; }`,
84
84
  "else",
85
85
  " REPO=\"$(mktemp -d \"${TMPDIR:-/tmp}/mpo-scaffold-script.XXXXXX\")\"",
86
86
  " trap 'rm -rf \"$REPO\"' EXIT",
package/lib/source.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "cliVersion": "9.0.8",
2
+ "cliVersion": "9.0.10",
3
3
  "url": "https://git.corp.bitspur.com/multiplatform.one/mpo.git",
4
- "sha": "a3ceeab9ac32f0dbf94b01eeee0388940255090c"
4
+ "sha": "bd237bbbd63509d16884b184c8f26710c4616804"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@multiplatform.one/cli",
3
- "version": "9.0.8",
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.8",
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",
@@ -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) => (names.has(filtered) ? whole : ""));
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;
@@ -129,7 +129,7 @@ async function scaffoldScriptAt(source: string, ref: string, file: string): Prom
129
129
  'if [ -d "$SOURCE" ]; then',
130
130
  ' REPO="$SOURCE"',
131
131
  ' COMMIT="$(git -C "$REPO" rev-parse --verify --quiet "$REF^{commit}")" ||',
132
- ' { printf "%s is not a commit in %s\\n" "$REF" "$REPO" >&2; exit 1; }',
132
+ String.raw` { printf "%s is not a commit in %s\n" "$REF" "$REPO" >&2; exit 1; }`,
133
133
  "else",
134
134
  ' REPO="$(mktemp -d "${TMPDIR:-/tmp}/mpo-scaffold-script.XXXXXX")"',
135
135
  " trap 'rm -rf \"$REPO\"' EXIT",