-
Notifications
You must be signed in to change notification settings - Fork 0
/
.syncpackrc.cjs
39 lines (38 loc) · 1.17 KB
/
.syncpackrc.cjs
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
// @ts-check
/** @type {import("syncpack").RcFile} */
module.exports = {
dependencyTypes: ['dev', 'prod', 'peer'],
semverRange: '^',
source: ['package.json', 'apps/*/package.json', 'packages/*/package.json'],
versionGroups: [
{
label: 'Internal config packages should be pinned to "*" (meaning any version is acceptable)',
packages: ['**'],
dependencies: ['@repo/config-eslint', '@repo/config-tailwind', '@repo/config-ts', '@repo/ui-shadcn'],
dependencyTypes: ['dev', 'prod', 'peer'],
pinVersion: '*',
},
{
label: 'Use next 15 rc version in apps/web and apps/docs',
packages: ['@app/web', '@app/docs'],
dependencies: ['react', 'react-dom', 'next'],
policy: 'sameRange',
},
],
semverGroups: [
{
range: '',
label: 'Pinned dependencies should not have a range',
packages: ['**'],
dependencies: ['@chromatic-com/storybook', 'react-day-picker', 'cmdk'],
dependencyTypes: ['dev', 'prod', 'peer'],
},
{
range: '^',
label: 'External libraries should use "^" range',
packages: ['**'],
dependencies: ['**'],
dependencyTypes: ['dev', 'prod'],
},
],
};