create-rstack 1.7.12 → 1.7.13
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2131,9 +2131,11 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
|
|
|
2131
2131
|
for (const tool of tools){
|
|
2132
2132
|
if (extraTools) {
|
|
2133
2133
|
const matchedTool = extraTools.find((extraTool)=>extraTool.value === tool);
|
|
2134
|
-
if (matchedTool
|
|
2135
|
-
|
|
2136
|
-
|
|
2134
|
+
if (matchedTool) {
|
|
2135
|
+
if (matchedTool.action) await matchedTool.action();
|
|
2136
|
+
if (matchedTool.command) runCommand(matchedTool.command, distFolder);
|
|
2137
|
+
continue;
|
|
2138
|
+
}
|
|
2137
2139
|
}
|
|
2138
2140
|
const toolFolder = node_path.join(packageRoot, `template-${tool}`);
|
|
2139
2141
|
if ('eslint' === tool) {
|