MCPcopy Index your code
hub / github.com/adobe/react-spectrum / enforceDevMirroringPeerDependencies

Function enforceDevMirroringPeerDependencies

yarn.config.cjs:263–276  ·  view source on GitHub ↗
({Yarn})

Source from the content-addressed store, hash-verified

261}
262
263function enforceDevMirroringPeerDependencies({Yarn}) {
264 for (const workspace of Yarn.workspaces()) {
265 const peers = workspace.manifest.peerDependencies;
266 if (!peers) {
267 continue;
268 }
269 if (peers.react) {
270 workspace.set('devDependencies.react', peers.react);
271 }
272 if (peers['react-dom']) {
273 workspace.set('devDependencies.react-dom', peers['react-dom']);
274 }
275 }
276}
277
278module.exports = defineConfig({
279 constraints: async ctx => {

Callers 1

yarn.config.cjsFile · 0.85

Calls 1

setMethod · 0.45

Tested by

no test coverage detected