Compare commits

..

2 Commits

Author SHA1 Message Date
Elliot DeNolf
dc5c4eced0 0.3.18-beta.1 2022-11-18 15:45:59 -05:00
Elliot DeNolf
0d8b6d03ed feat: add fallback for terminal link for unsupported terminals 2022-11-18 15:44:26 -05:00
2 changed files with 10 additions and 3 deletions

View File

@@ -36,7 +36,7 @@
"prompts": "^2.4.0",
"terminal-link": "^2.1.1"
},
"version": "0.3.18-beta.0",
"version": "0.3.18-beta.1",
"devDependencies": {
"@types/command-exists": "^1.2.0",
"@types/degit": "^2.8.3",

View File

@@ -39,14 +39,21 @@ export function successMessage(projectDir: string, packageManager: string): stri
${header('Documentation:')}
- ${terminalLink(
- ${createTerminalLink(
'Getting Started',
'https://payloadcms.com/docs/getting-started/what-is-payload',
)}
- ${terminalLink(
- ${createTerminalLink(
'Configuration',
'https://payloadcms.com/docs/configuration/overview',
)}
`
}
// Create terminalLink with fallback for unsupported terminals
function createTerminalLink(text: string, url: string) {
return terminalLink(text, url, {
fallback: (text, url) => `${text}: ${url}`,
})
}