Skip to content

Commit 9d9eafe

Browse files
authored
Copy README.md to package (#3558)
## Description After moving into monorepo setup main `README.md` was left in the root of the repository. It looks good on `github`, but unfortunately on `npm` you can no longer see readme since it is not present in the package. ## Test plan Run `npm pack` and see that `README.md` is present in the package.
1 parent dfdf265 commit 9d9eafe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-native-gesture-handler/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
"circular-dependency-check": "yarn madge --extensions js,ts,tsx --circular src",
1717
"architectures-consistency-check": "node ../../scripts/codegen-check-consistency.js",
1818
"sync-architectures": "node ../../scripts/codegen-sync-archs.js",
19-
"clean": "rm -rf node_modules android/build android/.cxx"
19+
"clean": "rm -rf node_modules android/build android/.cxx",
20+
"prepack": "cp ../../README.md ./README.md",
21+
"postpack": "rm ./README.md"
2022
},
2123
"react-native": "src/index.ts",
2224
"main": "lib/commonjs/index.js",

0 commit comments

Comments
 (0)