create-rstack 1.7.19 → 1.7.20
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.js +11 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2112,11 +2112,13 @@ const BUILTIN_TOOLS = [
|
|
|
2112
2112
|
'prettier'
|
|
2113
2113
|
];
|
|
2114
2114
|
function logHelpMessage(name, templates, extraTools) {
|
|
2115
|
-
const extraToolNames = extraTools?.map((tool)=>tool.value) ?? [];
|
|
2116
2115
|
const toolsList = [
|
|
2117
|
-
...BUILTIN_TOOLS
|
|
2118
|
-
|
|
2119
|
-
|
|
2116
|
+
...BUILTIN_TOOLS
|
|
2117
|
+
];
|
|
2118
|
+
if (extraTools) {
|
|
2119
|
+
for (const tool of extraTools)if (tool.value) if ('pre' === tool.order) toolsList.unshift(tool.value);
|
|
2120
|
+
else toolsList.push(tool.value);
|
|
2121
|
+
}
|
|
2120
2122
|
src_logger.log(`
|
|
2121
2123
|
Usage: create-${name} [dir] [options]
|
|
2122
2124
|
|
|
@@ -2125,13 +2127,15 @@ function logHelpMessage(name, templates, extraTools) {
|
|
|
2125
2127
|
-h, --help display help for command
|
|
2126
2128
|
-d, --dir <dir> create project in specified directory
|
|
2127
2129
|
-t, --template <tpl> specify the template to use
|
|
2128
|
-
--tools <tool>
|
|
2130
|
+
--tools <tool> add additional tools, comma separated
|
|
2129
2131
|
--override override files in target directory
|
|
2130
2132
|
--packageName <name> specify the package name
|
|
2131
2133
|
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
+
Available templates:
|
|
2134
2135
|
${templates.join(', ')}
|
|
2136
|
+
|
|
2137
|
+
Optional tools:
|
|
2138
|
+
${toolsList.join(', ')}
|
|
2135
2139
|
`);
|
|
2136
2140
|
}
|
|
2137
2141
|
async function getTools({ tools, dir, template }, extraTools) {
|