mirror of
https://github.com/react/react-native.git
synced 2026-09-28 05:13:06 +08:00
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57510 Extend `check-packages-test.js` to catch two more classes of manifest drift: published packages missing required fields, and packages under `private/` missing the `private` flag. **Motivation** Inspired by https://github.com/react-native-community/template/pull/241 — avoid a missing field blocking a future RN package publish. **Other changes** - To satisfy the new `files` requirement, add an explicit `files` allowlist to the four config packages that lacked one. As a side effect, this saves some `__tests__` files from being distributed. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D111471314 fbshipit-source-id: e13082d2282128936e22e3a7580b5e434c3b41b2
@react-native/typescript-config
This package provides the default tsconfig.json used by newly built React Native apps.
This template is customized for specific versions of React Native, and should be updated in sync with the rest of your app.
Opting out of the Strict TypeScript API (default in 0.87)
To opt out of the new Strict TypeScript API you can extend from @react-native/typescript-config/strict
If your app still needs access to deep 'react-native/Libraries/*' imports (deprecated in 0.80), you can opt out via customConditions in your tsconfig.json:
{
"extends": "@react-native/typescript-config",
"compilerOptions": {
// ...
"customConditions": ["react-native", "react-native-legacy-deep-imports"]
}
}