create-rstack 1.4.3 → 1.4.5

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 +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1615,8 +1615,8 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1615
1615
  if (!version) version = (await readPackageJson(root)).version;
1616
1616
  const projectName = argv.dir ?? checkCancel(await he({
1617
1617
  message: 'Project name or path',
1618
- placeholder: `${name}-project`,
1619
- defaultValue: `${name}-project`,
1618
+ placeholder: `${name.toLowerCase()}-project`,
1619
+ defaultValue: `${name.toLowerCase()}-project`,
1620
1620
  validate (value) {
1621
1621
  if (0 === value.length) return 'Project name is required';
1622
1622
  }
@@ -1692,13 +1692,13 @@ async function create({ name, root, templates, skipFiles, getTemplateName, mapES
1692
1692
  await __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__["default"].promises.writeFile(biomeJsonPath, `${JSON.stringify(biomeJson, null, 2)}\n`, 'utf-8');
1693
1693
  }
1694
1694
  }
1695
- const nextSteps = noteInformation?.length ? noteInformation : [
1695
+ const nextSteps = noteInformation ? noteInformation : [
1696
1696
  `1. ${picocolors_default().cyan(`cd ${targetDir}`)}`,
1697
1697
  `2. ${picocolors_default().cyan('git init')} ${picocolors_default().dim('(optional)')}`,
1698
1698
  `3. ${picocolors_default().cyan(`${pkgManager} install`)}`,
1699
1699
  `4. ${picocolors_default().cyan(`${pkgManager} run dev`)}`
1700
1700
  ];
1701
- Me(nextSteps.map((step)=>picocolors_default().reset(step)).join('\n'), 'Next steps');
1701
+ if (nextSteps.length) Me(nextSteps.map((step)=>picocolors_default().reset(step)).join('\n'), 'Next steps');
1702
1702
  Se('All set, happy coding!');
1703
1703
  }
1704
1704
  function sortObjectKeys(obj) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-rstack",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "Create a new Rstack project",
5
5
  "repository": {
6
6
  "type": "git",