forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.yarnrc.yml
41 lines (39 loc) · 1.87 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
### 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
#
# 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: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.3.1, which doesn't satisfy what +(@wordpress/*|@types/wordpress__*) and other dependencies request*"
### Package extensions to provide missing peer dependencies. ###
packageExtensions:
'@signal-noise/[email protected]':
peerDependencies:
postcss: '*'
peerDependencies:
core-js-bundle: '*'
regenerator-runtime: '*'
peerDependencies:
core-js-bundle: '*'
regenerator-runtime: '*'
peerDependencies:
core-js-bundle: '*'
regenerator-runtime: '*'