Files
react-native/packages/react-native-test-library/package.json
T
Rob Hogan b0f6a05650 Fix @react-native/oss-library-example package.json#exports (#44179)
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
2024-04-22 05:23:04 -07:00

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"
}
}
}