@param {Context} context
({Yarn})
| 240 | |
| 241 | /** @param {Context} context */ |
| 242 | function enforceExports({Yarn}) { |
| 243 | // make sure build fields are correctly set |
| 244 | for (const workspace of Yarn.workspaces()) { |
| 245 | let name = workspace.ident; |
| 246 | if (isPublishing(workspace) && workspace.manifest.rsp?.type !== 'cli') { |
| 247 | // better to do in enforceCSS? it doesn't match the set of packages handled |
| 248 | if (name !== 'react-aria-components') { |
| 249 | if ( |
| 250 | name.includes('@react-spectrum') || |
| 251 | name.includes('@adobe/react-spectrum') || |
| 252 | name.includes('@react-aria/visually-hidden') |
| 253 | ) { |
| 254 | workspace.set('sideEffects', ['*.css']); |
| 255 | } else { |
| 256 | workspace.set('sideEffects', false); |
| 257 | } |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | function enforceDevMirroringPeerDependencies({Yarn}) { |
| 264 | for (const workspace of Yarn.workspaces()) { |
no test coverage detected