mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
39c98fb8f8
Summary: This upgrades `jscodeshift` from `0.14.0` to `17.0.0`, to resolve unsupported babel dependencies when installing React Native. See https://github.com/expo/expo/issues/31613 ## Changelog: [GENERAL] [FIXED] - Upgrade Codegen dependency `jscodeshift@17.0.0` to resolve outdated dependencies Pull Request resolved: https://github.com/facebook/react-native/pull/46724 Test Plan: To test it out yourself: - `npx create-expo@latest ./test-codegen` - `cd ./test-codegen` - `npm why babel/plugin-proposal-nullish-coalescing-operator@7.18.6 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/babel/plugin-proposal-nullish-coalescing-operator/v/7.18.6) - `npm why babel/plugin-proposal-class-properties@7.18.6 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/babel/plugin-proposal-class-properties/v/7.18.6) - `npm why rimraf@2.6.3 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/rimraf/v/2.6.3) - `npm why babel/plugin-proposal-optional-chaining@7.21.0 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/babel/plugin-proposal-optional-chaining/v/7.21.0) > [!IMPORTANT] > There are other dependencies that require an update, unfortunately there are no flow typings available (yet). > - `npm why glob@7.2.3 | grep codegen` - [npm deprecation](https://www.npmjs.com/package/glob/v/7.2.3) Reviewed By: cortinico Differential Revision: D63629133 Pulled By: huntie fbshipit-source-id: 3799e49677b8e5fd64841e6c7f855bde10e15072
61 lines
1.7 KiB
JSON
61 lines
1.7 KiB
JSON
{
|
|
"name": "@react-native/codegen",
|
|
"version": "0.77.0-main",
|
|
"description": "Code generation tools for React Native",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/facebook/react-native.git",
|
|
"directory": "packages/react-native-codegen"
|
|
},
|
|
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-codegen#readme",
|
|
"keywords": [
|
|
"code",
|
|
"generation",
|
|
"codegen",
|
|
"tools",
|
|
"react-native"
|
|
],
|
|
"bugs": "https://github.com/facebook/react-native/issues",
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn clean && node scripts/build.js --verbose",
|
|
"clean": "rimraf lib",
|
|
"prepare": "yarn run build"
|
|
},
|
|
"files": [
|
|
"lib"
|
|
],
|
|
"dependencies": {
|
|
"@babel/parser": "^7.25.3",
|
|
"glob": "^7.1.1",
|
|
"hermes-parser": "0.23.1",
|
|
"invariant": "^2.2.4",
|
|
"jscodeshift": "^17.0.0",
|
|
"nullthrows": "^1.1.1",
|
|
"yargs": "^17.6.2"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.25.2",
|
|
"@babel/plugin-transform-class-properties": "^7.25.4",
|
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7",
|
|
"@babel/plugin-transform-object-rest-spread": "^7.24.7",
|
|
"@babel/plugin-transform-optional-chaining": "^7.24.8",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
"@babel/plugin-transform-async-to-generator": "^7.24.7",
|
|
"@babel/plugin-transform-destructuring": "^7.24.8",
|
|
"@babel/plugin-transform-flow-strip-types": "^7.25.2",
|
|
"@babel/preset-env": "^7.25.3",
|
|
"chalk": "^4.0.0",
|
|
"hermes-estree": "0.23.1",
|
|
"micromatch": "^4.0.4",
|
|
"prettier": "2.8.8",
|
|
"rimraf": "^3.0.2"
|
|
},
|
|
"peerDependencies": {
|
|
"@babel/preset-env": "^7.1.6"
|
|
}
|
|
}
|