-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncpack.config.js
43 lines (39 loc) · 966 Bytes
/
syncpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// @ts-check
/**
* Syncpack helps keep package versions in sync across the monorepo.
*
* ```sh
* pnpm syncpack list-mismatches
* pnpm syncpack fix-mismatches
* ```
* @see https://jamiemason.github.io/syncpack/
*
* @type {import("syncpack").RcFile}
*/
const config = {
versionGroups: [
{
label: 'Use workspace protocol for local packages in this pnpm workspace',
dependencies: ['$LOCAL'],
dependencyTypes: ['dev', 'prod'],
pinVersion: 'workspace:*',
},
{
label: 'Ensure peer dependencies are in sync',
dependencies: ['$LOCAL'],
dependencyTypes: ['peer'],
policy: 'sameRange',
// leave off library peerDeps
// exclude: ['react', 'react-dom'],
},
// ignore peer dependencies for React
{
label: 'React',
dependencies: ['react', 'react-dom'],
dependencyTypes: ['peer'],
packages: ['**'],
isIgnored: true,
},
],
}
export default config