mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b0f6a05650
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44179 Fix `package.json#exports` main entry point in `react-native/oss-library-example` (which is actually at `packages/react-native-test-library`), to fix a Metro resolver warning on building RN-tester. `"./": "./index.js"` is intended as an export map entry for the main export, whereas `".": "./index.js"` is correct (see [`PACKAGE_EXPORTS_RESOLVE`](https://nodejs.org/api/esm.html) spec). Changelog: [Internal] (This package is not published) Reviewed By: cortinico, dmytrorykun Differential Revision: D56414480 fbshipit-source-id: 01874cf11ae687aaf5aa5aa56075232f03d691b8
50 lines
1.3 KiB
JSON
50 lines
1.3 KiB
JSON
{
|
|
"name": "@react-native/oss-library-example",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "Package that includes native module exapmle, native component example, targets both the old and the new architecture. It should serve as an example of a real-world OSS library.",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/facebook/react-native.git",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react-native.git",
|
|
"directory": "packages/react-native-test-library"
|
|
},
|
|
"main": "./index.js",
|
|
"exports": {
|
|
".": "./index.js",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn clean && babel --out-dir lib src",
|
|
"clean": "rimraf lib",
|
|
"codegen": "npx react-native codegen",
|
|
"prepare": "yarn run codegen && yarn run build"
|
|
},
|
|
"files": [
|
|
"generated"
|
|
],
|
|
"devDependencies": {
|
|
"@babel/core": "^7.20.0",
|
|
"@react-native/babel-preset": "0.75.0-main",
|
|
"react-native": "*"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "*",
|
|
"react-native": "*"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "OSSLibraryExampleSpec",
|
|
"type": "all",
|
|
"jsSrcsDir": "src",
|
|
"outputDir": {
|
|
"ios": "ios",
|
|
"android": "android/src/main"
|
|
},
|
|
"includesGeneratedCode": true,
|
|
"android": {
|
|
"javaPackageName": "com.reactnative.osslibraryexample"
|
|
}
|
|
}
|
|
}
|