@maka/maka-cli 5.156.0 → 5.157.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.157.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 3.x applications using React.",
|
|
@@ -94,8 +94,16 @@ export class StanceCommand extends Command {
|
|
|
94
94
|
if (onMatrix) {
|
|
95
95
|
return `That's not a Matrix route. Choose: ${MATRIX_STANCE_CYCLE.join(', ')} (${MATRIX_STANCE_CYCLE.map(m => MATRIX_STANCE_ACTION[m]).join(' / ')}).`;
|
|
96
96
|
}
|
|
97
|
+
// THE EXACT NAME ALWAYS WINS. "stance non-lethal" -- the very word the
|
|
98
|
+
// refusal below lists -- used to be refused: fuzzyPickName normalizes
|
|
99
|
+
// punctuation to whitespace, so "non-lethal" and the "non lethal"
|
|
100
|
+
// alias both became "non lethal", the exact tier saw two candidates,
|
|
101
|
+
// and an ambiguous guess deliberately misses. Caught by a bench that
|
|
102
|
+
// typed the name off the "Choose:" line (2jbprbSYqF7EPXrkR's dry run).
|
|
97
103
|
// The old words (and their typos) still land: fuzzy over the cycle AND the aliases, then through the alias map.
|
|
98
|
-
const pickedRaw =
|
|
104
|
+
const pickedRaw = STANCE_CYCLE.includes(raw)
|
|
105
|
+
? raw
|
|
106
|
+
: STANCE_ALIASES[raw] ?? fuzzyPickName(args.join(' '), [...STANCE_CYCLE, ...Object.keys(STANCE_ALIASES)]);
|
|
99
107
|
const picked = pickedRaw ? (STANCE_ALIASES[pickedRaw] ?? pickedRaw) : undefined;
|
|
100
108
|
if (!picked) {
|
|
101
109
|
return `That's not a stance. Choose: ${STANCE_CYCLE.join(', ')}.`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maka/maka-cli",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.157.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"summary": "A command line tool for scaffolding Meteor 3.x applications using either React.",
|
|
6
6
|
"description": "A command line tool for scaffolding Meteor 3.x applications using React.",
|