forked from zuplo/zudoku
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncpack.config.js
50 lines (50 loc) · 1.18 KB
/
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
44
45
46
47
48
49
50
/** @type {import("syncpack").RcFile} */
export default {
semverGroups: [
{
label: "Use exact versions for packages",
range: "",
dependencyTypes: ["dev", "prod", "overrides", "resolutions"],
dependencies: ["**"],
packages: ["**"],
},
{
label: "Allow minor range for peer dependencies",
range: "^",
packages: ["**"],
dependencyTypes: ["peer"],
},
],
versionGroups: [
{
label: "Use workspace protocol when developing local packages",
dependencies: ["$LOCAL"],
dependencyTypes: ["!local", "!peer"],
pinVersion: "workspace:*",
},
{
label: "Align versions of dependencies to Zudoku",
dependencies: [
"@types/node",
"@types/react",
"@types/react-dom",
"@types/mdx",
"typescript",
"vite",
"tailwindcss",
"@mdxjs/react",
"react",
"react-dom",
"react-router-dom",
],
packages: ["**"],
snapTo: ["zudoku"],
},
{
dependencies: ["@types/**"],
dependencyTypes: ["!dev"],
isBanned: true,
label: "@types packages should only be under devDependencies",
},
],
};