@@ -28,15 +28,16 @@ let run = async () => {
2828 P .note (
2929 ~title = "Welcome to ReScript!" ,
3030 ~message = ` ${C.cyan("Fast, Simple, Fully Typed JavaScript from the Future" )}
31- https://www. rescript-lang.org` ,
31+ https://rescript-lang.org` ,
3232 )
3333
3434 let packageJsonPath = Path .join2 (Process .cwd (), "package.json" )
3535 let rescriptJsonPath = Path .join2 (Process .cwd (), "rescript.json" )
3636 let bsconfigJsonPath = Path .join2 (Process .cwd (), "bsconfig.json" )
3737
3838 if Fs .existsSync (rescriptJsonPath ) || Fs .existsSync (bsconfigJsonPath ) {
39- P .outro ("ReScript is already installed. No changes were made to your project." )
39+ ExistingRescriptProject .showUpgradeHint ()
40+ P .outro ("No changes were made to your project." )
4041 } else if Fs .existsSync (packageJsonPath ) {
4142 let packageJson = await JsonUtils .readJsonFile (packageJsonPath )
4243 let projectName =
@@ -48,7 +49,7 @@ https://www.rescript-lang.org`,
4849
4950 if addToExistingProject {
5051 await handleError (~outro = "Adding to project failed." , async () => {
51- await ExistingProject .addToExistingProject (~projectName )
52+ await ExistingJsProject .addToExistingProject (~projectName )
5253 P .outro ("Happy hacking!" )
5354 })
5455 } else {
0 commit comments