forked from WordPress/gutenberg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsyncpack.config.mjs
More file actions
49 lines (49 loc) · 1.37 KB
/
Copy pathsyncpack.config.mjs
File metadata and controls
49 lines (49 loc) · 1.37 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
/** @type {import('syncpack').RcFile} */
export default {
versionGroups: [
{
label: 'Internal @wordpress/* workspace packages: ignore (workspaces are the source of truth).',
dependencies: [ '@wordpress/**' ],
packages: [ '**' ],
isIgnored: true,
},
{
label: 'Banned dependencies that should not be reintroduced.',
dependencies: [ 'classnames' ],
packages: [ '**' ],
isBanned: true,
},
{
label: 'peerDependencies use intentionally wide ranges; only enforce that the ranges are mutually satisfiable.',
dependencyTypes: [ 'peer' ],
policy: 'sameRange',
},
{
label: '`@wordpress/react-19` is the experimental React 19 build; it intentionally declares React v19.',
dependencies: [ 'react', 'react-dom' ],
packages: [ '@wordpress/react-19' ],
isIgnored: true,
},
{
label: '`react` and `react-dom` must use the same version across the repo.',
dependencies: [ 'react', 'react-dom' ],
dependencyTypes: [ 'prod', 'dev' ],
// Bump this literal when upgrading React.
pinVersion: '^18.3.1',
},
{
label: 'All dependencies must use the same version across the repo.',
dependencies: [ '**' ],
packages: [ '**' ],
dependencyTypes: [ 'prod', 'dev' ],
},
],
semverGroups: [
{
label: 'All dependencies must use caret ranges.',
packages: [ '**' ],
dependencyTypes: [ 'prod', 'dev' ],
range: '^',
},
],
};