create-payload-app 0.3.18-beta.0 → 0.3.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,7 +67,13 @@ function helpMessage() {
67
67
  }
68
68
  exports.helpMessage = helpMessage;
69
69
  function successMessage(projectDir, packageManager) {
70
- return "\n ".concat(header('Launch Application:'), "\n\n - cd ").concat(projectDir, "\n - ").concat(packageManager === 'yarn' ? 'yarn' : 'npm run', " dev\n\n ").concat(header('Documentation:'), "\n\n - ").concat((0, terminal_link_1.default)('Getting Started', 'https://payloadcms.com/docs/getting-started/what-is-payload'), "\n - ").concat((0, terminal_link_1.default)('Configuration', 'https://payloadcms.com/docs/configuration/overview'), "\n\n");
70
+ return "\n ".concat(header('Launch Application:'), "\n\n - cd ").concat(projectDir, "\n - ").concat(packageManager === 'yarn' ? 'yarn' : 'npm run', " dev\n\n ").concat(header('Documentation:'), "\n\n - ").concat(createTerminalLink('Getting Started', 'https://payloadcms.com/docs/getting-started/what-is-payload'), "\n - ").concat(createTerminalLink('Configuration', 'https://payloadcms.com/docs/configuration/overview'), "\n\n");
71
71
  }
72
72
  exports.successMessage = successMessage;
73
+ // Create terminalLink with fallback for unsupported terminals
74
+ function createTerminalLink(text, url) {
75
+ return (0, terminal_link_1.default)(text, url, {
76
+ fallback: function (text, url) { return "".concat(text, ": ").concat(url); },
77
+ });
78
+ }
73
79
  var templateObject_1, templateObject_2;
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "prompts": "^2.4.0",
37
37
  "terminal-link": "^2.1.1"
38
38
  },
39
- "version": "0.3.18-beta.0",
39
+ "version": "0.3.18",
40
40
  "devDependencies": {
41
41
  "@types/command-exists": "^1.2.0",
42
42
  "@types/degit": "^2.8.3",