Skip to content

Commit 7301438

Browse files
authored
Put back the README.md file in the npm package (#6256)
## 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
1 parent 2744773 commit 7301438

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-native-reanimated/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"build": "yarn build:plugin && bob build",
3333
"build:plugin": "cd plugin && yarn install && yarn build",
3434
"circular-dependency-check": "yarn madge --extensions js,ts,tsx --circular src lib",
35-
"use-strict-check": "node ./scripts/validate-use-strict.js"
35+
"use-strict-check": "node ./scripts/validate-use-strict.js",
36+
"prepack": "cp ../../README.md ./README.md",
37+
"postpack": "rm ./README.md"
3638
},
3739
"main": "lib/module/index",
3840
"module": "lib/module/index",

0 commit comments

Comments
 (0)