Commit b2c3f26
refactor: support PnP for experimental package and MDC deps
Yarn PnP requires explicit listing of dependencies used. Since our
Sass files/compilations do not use `material-components-web` but
rather use the individual `@material/<..>` packages, we need to switch
away from the kitchen-sink package.
As part of this, we have two options long-term:
* Add all individual deps as peer dependencies
* Add all individual deps as _direct_ dependencies.
The latter seems more convenient for users and we also cannot
make any guarantees that a more recent "build" of the `@material/<..>`
packages is still compatible. If users would intend to force a more
recent MDC version, they could still use a Yarn resolution, or we could
also bump our `dependencies` using a `caret` or `tilde` (once we are relying
on a rather stable version of MDC -- that is a potential option then)1 parent 2210c13 commit b2c3f26
File tree
10 files changed
+259
-389
lines changed- integration/yarn-pnp-compat
- src
- e2e-app
- material-experimental
- mdc-chips
- mdc-helpers
- mdc-table
- tools
10 files changed
+259
-389
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
2 | 13 | | |
3 | 14 | | |
4 | 15 | | |
| |||
14 | 25 | | |
15 | 26 | | |
16 | 27 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
0 commit comments