Skip to content

Commit 5679978

Browse files
committed
update commands
1 parent 5fa03db commit 5679978

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ jobs:
1010
node-version-file: ".node-version"
1111
cache: yarn
1212
- run: yarn
13-
- run: yarn res:build --warn-error +3+8+11+12+26+27+31+32+33+34+35+39+44+45+110
13+
- run: yarn build:res --warn-error +3+8+11+12+26+27+31+32+33+34+35+39+44+45+110
1414
- run: yarn test
1515
- run: yarn ci:format

markdown-pages/docs/manual/installation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ bun create rescript-app
5656
- Trigger a ReScript build:
5757

5858
```sh
59-
npm run res:build
59+
npm run build:res
6060
```
6161
- If you selected the "basic" template, simply run it with:
6262

@@ -156,8 +156,8 @@ bun create rescript-app
156156
- Add convenience `npm` scripts to `package.json`:
157157
```json
158158
"scripts": {
159-
"res:build": "rescript",
160-
"res:dev": "rescript -w"
159+
"build:res": "rescript",
160+
"dev:res": "rescript watch"
161161
}
162162
```
163163

markdown-pages/docs/manual/typescript-integration.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ In case of the TypeScript project using `Bundler` module resolution, `allowImpor
201201

202202
Open any relevant `*.res` file and add `@genType` annotations to any bindings / values / functions to be used from JavaScript. If an annotated value uses a type, the type must be annotated too. See e.g. [Hooks.res](https://github.com/rescript-lang/rescript-compiler/blob/master/jscomp/gentype_tests/typescript-react-example/src/Hooks.res).
203203

204-
Save the file and rebuild the project via `npm run res:build` or similar. You should now see a `*.gen.tsx` file with the same name (e.g. `MyComponent.res` -> `MyComponent.gen.tsx`).
204+
Save the file and rebuild the project via `npm run build:res` or similar. You should now see a `*.gen.tsx` file with the same name (e.g. `MyComponent.res` -> `MyComponent.gen.tsx`).
205205

206206
Any values exported from `MyComponent.res` can then be imported from TypeScript. For example:
207207

0 commit comments

Comments
 (0)