forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yarnrc.yml
68 lines (65 loc) · 2.65 KB
/
.yarnrc.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
### Basic Yarn settings. ###
compressionLevel: 0
nodeLinker: node-modules
enableGlobalCache: true
yarnPath: .yarn/releases/yarn-4.0.2.cjs
### Log filters to discard irrelevant warnings. ###
logFilters:
# WordPress packages often have transitive dependencies with incorrect react-related peer dependencies.
# This matcher discards those log messages, while allowing non-react or non-wordpress related violations
# to be handled separately. (For example, npm packages can be handled via packageExtensions.)
#
# WordPress will need to update/change the following packages to versions which include React 18 support,
# and then we'll need to update to those WordPress package versions before we can remove this.
# - react-autosize-textarea@npm:7.1.0
# - reakit-system@npm:0.15.2
# - reakit-utils@npm:0.15.2
# - reakit-warning@npm:0.6.2
# - reakit@npm:1.3.11
#
# The matcher works like so:
# 1. Match any workspace package, such as @automattic/global-styles@workspace, calypso@workspace, happy-blocks@workspace
# 2. Match any path within the workspace, such as @workspace:packages/page-pattern-modal [cd6b3], @workspace::apps/editing-toolkit, @workspace:client, or @workspace:.
# 3. Match a react or react-dom on the current version which a workspace package provides.
# 4. Match only violations coming from within @wordpress packages.
- level: discard
pattern: "+(react|react-dom) is listed by your project with version 18.2.0, which doesn't satisfy what +(@wordpress/*|@types/wordpress__*) and other dependencies request*"
# TODO: Remove this once Reakit can be removed (or once Reakit includes React 18 as a peer dependency.)
- level: discard
pattern: "react-dom is listed by your project with version 18.2.0, which doesn't satisfy what reakit*"
### Package extensions to provide missing peer dependencies. ###
packageExtensions:
"@automattic/newspack-blocks@*":
peerDependencies:
moment: "*"
react: "*"
react-dom: "*"
"@signal-noise/[email protected]":
peerDependencies:
postcss: "*"
"@wordpress/[email protected]":
peerDependencies:
postcss: "*"
peerDependencies:
core-js-bundle: "*"
regenerator-runtime: "*"
peerDependencies:
moment: "*"
react: "*"
react-dom: "*"
peerDependencies:
react-dom: "*"
peerDependencies:
core-js-bundle: "*"
regenerator-runtime: "*"
peerDependencies:
postcss: "*"
peerDependencies:
core-js-bundle: "*"
regenerator-runtime: "*"