| 24 | }; |
| 25 | |
| 26 | function packageToLibrary(name) { |
| 27 | // Skip this package |
| 28 | if (name.startsWith('@spectrum-icons/')) { |
| 29 | return null; |
| 30 | } |
| 31 | if ( |
| 32 | name.startsWith('@internationalized/') || |
| 33 | name === 'react-stately' || |
| 34 | name.startsWith('@react-stately/') || |
| 35 | name === 'react-aria' || |
| 36 | name.startsWith('@react-aria/') || |
| 37 | name === 'react-aria-components' || |
| 38 | name === 'tailwindcss-react-aria-components' || |
| 39 | name.startsWith('@react-types/') |
| 40 | ) { |
| 41 | return 'React Aria Components'; |
| 42 | } |
| 43 | if (name === '@react-spectrum/s2') { |
| 44 | return 'Spectrum 2'; |
| 45 | } |
| 46 | // @react-spectrum/ai has no release doc set yet — collected into its own |
| 47 | // bucket and console-logged only (like v3), not written to a file. |
| 48 | if (name === '@react-spectrum/ai') { |
| 49 | return 'AI'; |
| 50 | } |
| 51 | // V3 has no LIBRARY_CONFIG entry. Its commits are collected but only printed |
| 52 | // as a warning, never written to a file. See the v3Bucket handling at the end of run(). |
| 53 | if (name === '@adobe/react-spectrum' || name.startsWith('@react-spectrum/')) { |
| 54 | return 'React Spectrum'; |
| 55 | } |
| 56 | return null; |
| 57 | } |
| 58 | |
| 59 | function nextVersionFilename(releasesDir) { |
| 60 | let entries; |