@tanstack/cli 0.69.1 → 0.69.3

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.
@@ -33,13 +33,15 @@ export async function selectInstall() {
33
33
  }
34
34
  export async function getProjectName() {
35
35
  const value = await text({
36
- message: 'What would you like to name your project?',
37
- placeholder: 'Leave empty to initialize in the current directory',
36
+ message: 'Project name (leave empty to use current directory)',
37
+ // Clack prints `undefined` on blank submit when placeholder is omitted.
38
+ placeholder: '',
38
39
  validate(value) {
39
- if (isCurrentDirectoryProjectNameInput(value)) {
40
+ const projectName = value ?? '';
41
+ if (isCurrentDirectoryProjectNameInput(projectName)) {
40
42
  return;
41
43
  }
42
- const { valid, error } = validateProjectName(value);
44
+ const { valid, error } = validateProjectName(projectName);
43
45
  if (!valid) {
44
46
  return error;
45
47
  }
@@ -49,7 +51,7 @@ export async function getProjectName() {
49
51
  cancel('Operation cancelled.');
50
52
  process.exit(0);
51
53
  }
52
- return value.trim();
54
+ return (value ?? '').trim();
53
55
  }
54
56
  export async function selectPackageManager() {
55
57
  const packageManager = await select({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cli",
3
- "version": "0.69.1",
3
+ "version": "0.69.3",
4
4
  "description": "TanStack CLI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",