Skip to content

Commit 2111a86

Browse files
authored
chore(cpa): remove success message outline (#10233)
The usage of clack's `note` on the success message (contains long urls) would often wrap on terminals that did not have a very wide window and/or do not support [terminal hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) This swaps the usage of `note` for more plain log output that does not have an outline and eliminates the possibility for this issue. Before: <img width="726" alt="CleanShot 2024-12-29 at 02 54 18" src="https://github.com/user-attachments/assets/4fcb028c-58f0-4102-9268-53aca8124111" /> After: <img width="716" alt="CleanShot 2024-12-29 at 02 54 39" src="https://github.com/user-attachments/assets/30615fa8-5f2c-43f5-a6a5-9f0b9cc415fb" />
1 parent 68a5f5c commit 2111a86

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/create-payload-app/src/main.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ export class Main {
281281
}
282282

283283
info('Payload project successfully created!')
284-
p.note(successMessage(projectDir, packageManager), chalk.bgGreen(chalk.black(' Next Steps ')))
284+
p.log.step(chalk.bgGreen(chalk.black(' Next Steps ')))
285+
p.log.message(successMessage(projectDir, packageManager))
285286
p.outro(feedbackOutro())
286287
} catch (err: unknown) {
287288
error(err instanceof Error ? err.message : 'An error occurred')

packages/create-payload-app/src/utils/messages.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,7 @@ export function successMessage(projectDir: string, packageManager: PackageManage
5959
${header('Launch Application:')}
6060
6161
- cd ./${relativePath}
62-
- ${
63-
packageManager === 'npm' ? 'npm run' : packageManager
64-
} dev or follow directions in ${createTerminalLink(
65-
'README.md',
66-
`file://${path.resolve(projectDir, 'README.md')}`,
67-
)}
62+
- ${packageManager === 'npm' ? 'npm run' : packageManager} dev or follow directions in README.md
6863
6964
${header('Documentation:')}
7065

0 commit comments

Comments
 (0)