@lytjs/cli 6.8.0 → 6.9.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/dist/index.cjs +1 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -10
- package/dist/index.mjs.map +1 -1
- package/dist/lyt.cjs +1 -10
- package/dist/lyt.cjs.map +1 -1
- package/dist/lyt.mjs +1 -10
- package/dist/lyt.mjs.map +1 -1
- package/package.json +3 -3
package/dist/lyt.mjs
CHANGED
|
@@ -1997,16 +1997,7 @@ async function runCli(rawArgs = process.argv.slice(2)) {
|
|
|
1997
1997
|
});
|
|
1998
1998
|
break;
|
|
1999
1999
|
case "add": {
|
|
2000
|
-
const addTypes = [
|
|
2001
|
-
"component",
|
|
2002
|
-
"page",
|
|
2003
|
-
"store",
|
|
2004
|
-
"directive",
|
|
2005
|
-
"composable",
|
|
2006
|
-
"util",
|
|
2007
|
-
"middleware",
|
|
2008
|
-
"hook"
|
|
2009
|
-
];
|
|
2000
|
+
const addTypes = ["component", "page", "store", "directive", "composable", "util", "middleware", "hook"];
|
|
2010
2001
|
if (!args[0] || !addTypes.includes(args[0])) {
|
|
2011
2002
|
logger.error("Usage: lyt add <type> <name>");
|
|
2012
2003
|
logger.info("Types: component, page, store, directive, composable, util, middleware, hook");
|