diff --git a/pages/docs/manual/latest/installation.mdx b/pages/docs/manual/latest/installation.mdx index d0f23d171..221ed3d31 100644 --- a/pages/docs/manual/latest/installation.mdx +++ b/pages/docs/manual/latest/installation.mdx @@ -17,13 +17,13 @@ canonical: "/docs/manual/latest/installation" git clone https://github.com/rescript-lang/rescript-project-template cd rescript-project-template npm install -npm run build +npm run res:build node src/Demo.bs.js ``` That compiles your ReScript into JavaScript, then uses Node.js to run said JavaScript. **We recommend you use our unique workflow of keeping a tab open for the generated `.bs.js` file**, so that you can learn how ReScript transforms into JavaScript. Not many languages output clean JavaScript code you can inspect and learn from! -During development, instead of running `npm run build` each time to compile, use `npm run start` to start a watcher that recompiles automatically after file changes. +During development, instead of running `npm run res:build` each time to compile, use `npm run res:start` to start a watcher that recompiles automatically after file changes. ## Integrate Into an Existing JS Project