-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.syncpackrc.cjs
More file actions
49 lines (48 loc) · 1.2 KB
/
.syncpackrc.cjs
File metadata and controls
49 lines (48 loc) · 1.2 KB
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
44
45
46
47
48
49
// @ts-check
/** @type {import("syncpack").RcFile} */
const config = {
indent: '\t',
lintFormatting: false, // handled by prettier
// dependencyTypes: ['prod'], // disabled filter to enable all types
dependencyTypes: ['!peer'],
versionGroups: [
{
label: 'use zod v4 for some packages',
dependencies: ['zod'],
packages: ['notion-schemas'],
pinVersion: '^4.1.11',
},
{
label: 'use remote @jahands/cli-tools to avoid circular dependency',
dependencies: ['@jahands/cli-tools'],
packages: ['@repo/tools'],
},
{
label: 'use remote turbo-config to avoid local dep issues',
dependencies: ['turbo-config'],
packages: ['@repo/workers-packages'],
},
{
label: 'local packages',
packages: ['**'],
dependencies: ['$LOCAL'],
dependencyTypes: ['!local'], // Exclude the local package itself
pinVersion: 'workspace:*',
},
],
semverGroups: [
{
label: 'use range for dependencies in public packages',
range: '^',
dependencies: ['nanoid', 'zod'],
packages: ['prefixed-nanoid', 'workers-tagged-logger', 'notion-schemas', 'cron-workflow'],
},
{
label: 'pin all deps',
range: '',
dependencies: ['**'],
packages: ['**'],
},
],
}
module.exports = config