Skip to content

Commit

Permalink
Adapt tsc command for yarn and npm (#3992)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnares authored Jan 19, 2024
1 parent d89ecad commit 7967790
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,24 @@ This command adds the latest version of every dependency. The versions may need

> You should leave the `./index.js` entrypoint file as it is otherwise you may run into an issue when it comes to bundling a production build.
4. Run `yarn tsc` to type-check your new TypeScript files.
4. Run `tsc` to type-check your new TypeScript files.

<Tabs groupId="package-manager" queryString defaultValue={constants.defaultPackageManager} values={constants.packageManagers}>
<TabItem value="npm">

```shell
npx tsc
```

</TabItem>
<TabItem value="yarn">

```shell
yarn tsc
```

</TabItem>
</Tabs>

## Using JavaScript Instead of TypeScript

Expand Down

0 comments on commit 7967790

Please sign in to comment.