Files
Rob Hogan c33c241c98 Bump @babel/parser to ^7.29.9, @babel/types to ^7.29.8 (#58641)
Summary:
X-link: https://github.com/react/metro/pull/1962

Pull Request resolved: https://github.com/react/react-native/pull/58641

This picks up https://github.com/babel/babel/pull/18241, fixing parsing of arrow function params inside ternaries with Flow (eg `cond ? async (...args) => {} : null`).

(I remember hitting this one internally and not realising where it came from - IIRC it also applies to arrows within conditional types)

The update brings `babel/types` 7.29.7 -> 7.29.8, requiring regeneration of generated flow types. ~~**The `xplat/js/yarn.lock` version will likely need updating to match, or the Babel types sync test will fail**~~ - I've updated specifiers to bring everyone onto that version.

Changelog: [Internal]

X-link: https://github.com/react/metro/pull/1958

Test Plan: CI

Reviewed By: javache

Differential Revision: D121188416

Pulled By: vzaidman

fbshipit-source-id: 60f9c3514b5d6018825423644c47e66b3610b652
2026-09-24 09:18:50 -07:00

57 lines
1.5 KiB
JSON

{
"name": "@react-native/codegen",
"version": "0.87.0-main",
"description": "Code generation tools for React Native",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/react/react-native.git",
"directory": "packages/react-native-codegen"
},
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/react-native-codegen#readme",
"keywords": [
"code",
"generation",
"codegen",
"tools",
"react-native"
],
"bugs": "https://github.com/react/react-native/issues",
"engines": {
"node": "^22.13.0 || ^24.3.0 || >= 26.0.0"
},
"scripts": {
"build": "yarn clean && node scripts/build.js --verbose",
"clean": "rimraf lib",
"prepare": "yarn run build"
},
"files": [
"lib"
],
"dependencies": {
"@babel/core": "^7.25.2",
"@babel/parser": "^7.29.9",
"flow-parser": "0.331.0",
"invariant": "^2.2.4",
"nullthrows": "^1.1.1",
"tinyglobby": "^0.2.15",
"yargs": "^17.6.2"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-class-properties": "^7.25.4",
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
"@babel/plugin-transform-optional-chaining": "^7.24.8",
"@babel/preset-env": "^7.25.3",
"flow-estree": "0.331.0",
"micromatch": "^4.0.4",
"prettier": "3.9.4",
"rimraf": "^3.0.2"
},
"peerDependencies": {
"@babel/core": "*"
}
}