|
| 1 | +/** @type {Record<string, string>} */ |
| 2 | +export const devToolVersions = { |
| 3 | + '@babel/core': '^7.22.5', |
| 4 | + '@babel/plugin-proposal-class-properties': '^7.18.6', |
| 5 | + '@babel/plugin-proposal-private-property-in-object': '^7.21.11', |
| 6 | + '@babel/plugin-transform-private-methods': '^7.27.1', |
| 7 | + '@babel/preset-env': '^7.8.0', |
| 8 | + '@babel/preset-react': '^7.8.0', |
| 9 | + '@babel/preset-typescript': '^7.8.0', |
| 10 | + '@eslint/js': '^9.0.0', |
| 11 | + '@microsoft/eslint-plugin-sdl': '^1.1.0', |
| 12 | + '@react-native-community/cli': '^13.6.4', |
| 13 | + '@react-native-community/cli-platform-android': '^13.6.4', |
| 14 | + '@react-native-community/cli-platform-ios': '^13.6.4', |
| 15 | + '@react-native/babel-preset': '^0.74.0', |
| 16 | + '@react-native/metro-babel-transformer': '^0.74.0', |
| 17 | + '@react-native/metro-config': '^0.74.0', |
| 18 | + '@rnx-kit/eslint-plugin': '^0.8.6', |
| 19 | + '@rnx-kit/jest-preset': '^0.2.1', |
| 20 | + '@rnx-kit/tools-packages': '^0.1.1', |
| 21 | + '@rnx-kit/tools-typescript': '^0.1.1', |
| 22 | + '@rnx-kit/tsconfig': '^2.1.1', |
| 23 | + '@types/es6-collections': '^0.5.29', |
| 24 | + '@types/es6-promise': '0.0.32', |
| 25 | + '@types/jest': '^29.0.0', |
| 26 | + '@types/node': '^22.0.0', |
| 27 | + '@types/react-test-renderer': '16.9.0', |
| 28 | + '@typescript-eslint/eslint-plugin': '^8.36.0', |
| 29 | + '@typescript-eslint/parser': '^8.36.0', |
| 30 | + '@uifabric/prettier-rules': '^7.0.3', |
| 31 | + 'babel-jest': '^29.7.0', |
| 32 | + clipanion: '^4.0.0-rc.4', |
| 33 | + depcheck: '^1.0.0', |
| 34 | + eslint: '^9.0.0', |
| 35 | + 'eslint-plugin-import': '^2.27.5', |
| 36 | + 'find-up': '^5.0.0', |
| 37 | + 'fs-extra': '^7.0.1', |
| 38 | + glob: '^10.0.0', |
| 39 | + jest: '^29.2.1', |
| 40 | + 'jest-diff': '^27.0.0', |
| 41 | + jsdom: '^25.0.0', |
| 42 | + 'markdown-link-check': '^3.8.7', |
| 43 | + 'metro-config': '^0.80.3', |
| 44 | + 'metro-react-native-babel-transformer': '^0.76.5', |
| 45 | + prettier: '^2.4.1', |
| 46 | + 'react-test-renderer': '18.2.0', |
| 47 | + rimraf: '^5.0.1', |
| 48 | + typescript: '^4.9.4', |
| 49 | +}; |
| 50 | + |
| 51 | +/** |
| 52 | + * |
| 53 | + * @param {string} packageName |
| 54 | + * @returns {string | null} |
| 55 | + */ |
| 56 | +export function getToolVersion(packageName) { |
| 57 | + return devToolVersions[packageName] || null; |
| 58 | +} |
0 commit comments