rescript-lang / create-rescript-app

npm create rescript-app@latest
https://www.npmjs.com/package/create-rescript-app
56 stars 8 forks source link

Typo in the basic Readme #70

Open bentxt opened 3 months ago

bentxt commented 3 months ago

Nothing bad just a little confusing for a newcomer

in https://github.com/rescript-lang/create-rescript-app/blob/master/templates/rescript-template-basic/README.md

Does Rescript generate a Commonjs module here? Because the file extension is 'mjs'

So you have to change this lines from:

## Run

` ` `sh
 node src/Demo.res.js
` ` `

into:

 ## Run

` ` `sh
 node src/Demo.res.mjs
` ` `

(I've put whitespace between backticks, please remove them)