|
8 | 8 | writeFile, |
9 | 9 | } from 'node:fs/promises' |
10 | 10 | import { existsSync, readdirSync, statSync } from 'node:fs' |
11 | | -import { dirname, resolve } from 'node:path' |
| 11 | +import { basename, dirname, resolve } from 'node:path' |
12 | 12 | import { fileURLToPath } from 'node:url' |
13 | | -import { intro, log, outro, spinner } from '@clack/prompts' |
| 13 | +import { log, outro, spinner } from '@clack/prompts' |
14 | 14 | import { execa } from 'execa' |
15 | 15 | import { render } from 'ejs' |
16 | 16 | import { format } from 'prettier' |
@@ -241,7 +241,7 @@ export async function createApp(options: Required<Options>) { |
241 | 241 | const isAddOnEnabled = (id: string) => |
242 | 242 | options.chosenAddOns.find((a) => a.id === id) |
243 | 243 |
|
244 | | - intro(`Creating a new TanStack app in ${targetDir}...`) |
| 244 | + log.info(`Creating a new TanStack app in '${basename(targetDir)}'...`) |
245 | 245 |
|
246 | 246 | // Make the root directory |
247 | 247 | await mkdir(targetDir, { recursive: true }) |
@@ -434,7 +434,7 @@ export async function createApp(options: Required<Options>) { |
434 | 434 | s.stop(`Initialized git repository`) |
435 | 435 | } |
436 | 436 |
|
437 | | - outro(`Created your new TanStack app in ${targetDir}. |
| 437 | + outro(`Created your new TanStack app in '${basename(targetDir)}'. |
438 | 438 |
|
439 | 439 | Use the following commands to start your app: |
440 | 440 | % cd ${options.projectName} |
|
0 commit comments