Skip to content

Commit e0f910a

Browse files
authored
chore: move create-turbo community note and format it better (#9836)
### Description The note was being printed after the success and it looked a little funny. Additionally, it was the only thing being printed that was more than ~60 columns wide so it looked funny. Some `\n`'s clean that up nicely.
1 parent 983af33 commit e0f910a

File tree

1 file changed

+9
-9
lines changed
  • packages/create-turbo/src/commands/create

1 file changed

+9
-9
lines changed

packages/create-turbo/src/commands/create/index.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,15 @@ export async function create(
252252
}
253253
}
254254

255+
if (!isMaintainedByCoreTeam) {
256+
logger.log(
257+
picocolors.dim(
258+
"Note: This is a community-maintained example.\nIf you experience a problem, please submit a pull request with a fix.\nGitHub Issues will be closed."
259+
)
260+
);
261+
logger.log();
262+
}
263+
255264
if (projectDirIsCurrentDir) {
256265
logger.log(
257266
`${picocolors.bold(
@@ -266,15 +275,6 @@ export async function create(
266275
);
267276
}
268277

269-
if (!isMaintainedByCoreTeam) {
270-
logger.log();
271-
logger.log(
272-
picocolors.dim(
273-
"Note: This is a community-maintained example. If you experience a problem, please submit a pull request with a fix. GitHub Issues will be closed."
274-
)
275-
);
276-
}
277-
278278
// get the package manager details so we display the right commands to the user in log messages
279279
const packageManagerMeta = getPackageManagerMeta(projectPackageManager);
280280
if (packageManagerMeta && hasPackageJson) {

0 commit comments

Comments
 (0)