Skip to content

Commit

Permalink
Put back the README.md file in the npm package (#6256)
Browse files Browse the repository at this point in the history
## Summary

This PR adds the `README.md` file back to the NPM package. After
migration to a monorepo, the `README.md` file's location was changed to
the parent directory. Unfortunately, you can't include a file from the
parent directory in an npm package, and symlinks don't work for this
either.

## Test plan

run `npm pack` and check if README.md is inside
  • Loading branch information
piaskowyk authored Jul 11, 2024
1 parent 2744773 commit 7301438
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react-native-reanimated/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"build": "yarn build:plugin && bob build",
"build:plugin": "cd plugin && yarn install && yarn build",
"circular-dependency-check": "yarn madge --extensions js,ts,tsx --circular src lib",
"use-strict-check": "node ./scripts/validate-use-strict.js"
"use-strict-check": "node ./scripts/validate-use-strict.js",
"prepack": "cp ../../README.md ./README.md",
"postpack": "rm ./README.md"
},
"main": "lib/module/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 7301438

Please sign in to comment.