mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
29f5dc2ae0
Summary: This small PR includes the following changes: * deduplicate yarn lock file using [`yarn-deduplicate`](https://github.com/atlassian/yarn-deduplicate) package * deduplicate script has been added as `update-lock`, let me know if you would like also to see this in [`postinstall`](https://docs.npmjs.com/misc/scripts) (to automatically optimize lock on every dependency change) * according to the [npm docs](https://docs.npmjs.com/files/package.json#repository): * main `package.json` repository field has been replaced with shorthand * monorepo packages repository field has been extended by `directory` The main goal of introducing deduplication script was to optimize the dependencies footprint while developing and speed up the initial installation process. Running `yarn-deduplicate` also increase the security in some way, because it enforces usage only of the latest version of the package. You can read more about the benefits in the deduplicate script [repository](https://github.com/atlassian/yarn-deduplicate#duplicated-packages). ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://github.com/facebook/react-native/wiki/Changelog --> [Internal] [Added] - add yarn lock deduplication script Pull Request resolved: https://github.com/facebook/react-native/pull/30044 Test Plan: `yarn install` was successful, this also should not affect yarn workspaces in any way. Reviewed By: GijsWeterings Differential Revision: D23959812 Pulled By: cpojer fbshipit-source-id: e2455e3718378e1ce6206e79463d4083f8fe5d47
41 lines
1.2 KiB
JSON
41 lines
1.2 KiB
JSON
{
|
|
"name": "react-native-codegen",
|
|
"version": "0.0.3",
|
|
"description": "⚛️ Code generation tools for React Native",
|
|
"homepage": "https://github.com/facebook/react-native/tree/master/packages/react-native-codegen",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git@github.com:facebook/react-native.git",
|
|
"directory": "packages/react-native-codegen"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn clean && node scripts/build.js --verbose",
|
|
"clean": "rm -rf lib",
|
|
"prepublish": "yarn run build"
|
|
},
|
|
"license": "MIT",
|
|
"files": [
|
|
"lib"
|
|
],
|
|
"dependencies": {
|
|
"flow-parser": "^0.121.0",
|
|
"jscodeshift": "^0.9.0",
|
|
"nullthrows": "^1.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.0.0",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
|
|
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
|
|
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
|
"@babel/plugin-transform-async-to-generator": "^7.0.0",
|
|
"@babel/plugin-transform-destructuring": "^7.0.0",
|
|
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
|
|
"chalk": "^4.0.0",
|
|
"glob": "^7.1.1",
|
|
"micromatch": "^4.0.2",
|
|
"mkdirp": "^0.5.1",
|
|
"prettier": "1.19.1"
|
|
}
|
|
}
|