Skip to content

Commit

Permalink
Use syncpack to manage dependencies
Browse files Browse the repository at this point in the history
[Syncpack](https://jamiemason.github.io/syncpack/) is a tool that helps manage
multiple package.json files in a monorepo.

To list dependencies from all packages run:
```sh
syncpack list
```

To update a dependency (e.g. `eslint`) in all packages run:
```sh
syncpack update --filter eslint
```
  • Loading branch information
nkuba committed Nov 23, 2023
1 parent 4cf4d8c commit 3f8113f
Show file tree
Hide file tree
Showing 5 changed files with 14,925 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
6 changes: 6 additions & 0 deletions .syncpackrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dependencyTypes": [
"prod",
"dev"
]
}
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,28 @@ To setup the hooks follow the steps:
```sh
pre-commit install
```

### Syncpack

[Syncpack](https://jamiemason.github.io/syncpack/) is a tool that helps manage
multiple package.json files in a monorepo.

#### Install

In the repository's root directory execute:
```sh
yarn install
```
#### Usage
To list dependencies from all packages run:
```sh
syncpack list
```
To update a dependency (e.g. `eslint`) in all packages run:
```sh
syncpack update --filter eslint
```
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"private": true,
"workspaces": [
"./core",
"./dapp",
"./website"
],
"devDependencies": {
"syncpack": "^11.2.1"
}
}
Loading

0 comments on commit 3f8113f

Please sign in to comment.