Skip to content

Commit

Permalink
Merge pull request #65 from karlhorky/patch-1
Browse files Browse the repository at this point in the history
Add postinstall script to readme
  • Loading branch information
jeffijoe committed Jan 29, 2021
2 parents c1f4630 + e649fa5 commit a623e61
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,28 @@ Alternatively, you can use a TypeSync config file: `.typesyncrc` or a `"typesync
}
```

## Run TypeSync Automatically After Every Install

To run TypeSync and install packages automatically after every package install, use a `postinstall` script to your `package.json`:

```json
{
"scripts": {
"postinstall": "typesync && npm install"
}
}
```

Or, if you use `yarn`:

```json
{
"scripts": {
"postinstall": "typesync && yarn"
}
}
```

# Typings packages

TypeSync will add typings for packages that:
Expand Down

0 comments on commit a623e61

Please sign in to comment.