Skip to content

Commit

Permalink
fix(package): remove postinstall script, relax engine constraints (#81
Browse files Browse the repository at this point in the history
)

This PR:

- Removes `postinstall` npm script. I was thinking about `prepare`, but
for some reason added `postinstall`. Anyway, both are meh, so ended up
with manual `npm run install:all` command.
- Adds `install:all` npm script to install dependencies for the package
itself, as well as for **docs** and **benchmarks** to avoid issues when
contributing. Also there's a short explanation in README now.
- Relaxes engine (node) constraints a bit: from `>=18.16.0 <=20` to
`>=18 to <=20`.

Resolves #80
  • Loading branch information
norskeld authored Jul 3, 2023
1 parent 5086a86 commit 52dc1e4
Show file tree
Hide file tree
Showing 5 changed files with 2,276 additions and 2,039 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,18 @@ And in the end we get the following output with the AST, which can then be manip
```
</details>

## Development

Fork, clone, then instead of `npm install` run:

```sh
npm run install:all
```

> **Note**
>
> This will install dependencies for the package itself, and also for **docs** and **benchmarks** packages. This is due to limitations of the current repository setup and needed to avoid problems with eslint that runs on pre-commit hook.
## License

[MIT](LICENSE).
Expand Down
Loading

1 comment on commit 52dc1e4

@vercel
Copy link

@vercel vercel bot commented on 52dc1e4 Jul 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.