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.
Files changed (2) hide show
  1. package/dist/index.js +5 -3
  2. 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?.action) await matchedTool.action();
2135
- if (matchedTool?.command) runCommand(matchedTool.command, distFolder);
2136
- continue;
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "1.7.12",
3
+ "version": "1.7.13",
4
4
  "description": "Create a new Rstack project",
5
5
  "repository": {
6
6
  "type": "git",