Skip to content

Commit cb007f4

Browse files
kevin940726mrmckeb
andcommitted
Update comments wording
Co-Authored-By: Brody McKee <[email protected]>
1 parent cb3e5be commit cb007f4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/create-react-app/createReactApp.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -644,17 +644,19 @@ function getTemplateInstallPackage(template, originalDirectory) {
644644
templateName === templateToInstall ||
645645
templateName.startsWith(`${templateToInstall}-`)
646646
) {
647-
// cra-template
648-
// @SCOPE/cra-template
649-
// cra-template-NAME
650-
// @SCOPE/cra-template-NAME
647+
// Covers:
648+
// - cra-template
649+
// - @SCOPE/cra-template
650+
// - cra-template-NAME
651+
// - @SCOPE/cra-template-NAME
651652
templateToInstall = `${scope}${templateName}`;
652653
} else if (templateName.startsWith('@')) {
653-
// @SCOPE
654+
// Covers using @SCOPE only
654655
templateToInstall = `${templateName}/${templateToInstall}`;
655656
} else {
656-
// NAME
657-
// @SCOPE/NAME
657+
// Covers templates without the `cra-template` prefix:
658+
// - NAME
659+
// - @SCOPE/NAME
658660
templateToInstall = `${scope}${templateToInstall}-${templateName}`;
659661
}
660662
}

0 commit comments

Comments
 (0)