Skip to content

Commit 851c808

Browse files
Simekmrousavy
andauthored
chore: Add README files to packages bundle, fix npm metadata (#87)
Co-authored-by: Marc Rousavy <me@mrousavy.com>
1 parent 75ab9a3 commit 851c808

File tree

3 files changed

+13
-7
lines changed

3 files changed

+13
-7
lines changed

packages/react-native-nitro-image/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-nitro-image",
33
"version": "0.9.1",
4-
"description": "react-native-nitro-image",
4+
"description": "A superfast in-memory Image type and view component for React Native, built with Nitro!",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
77
"types": "lib/typescript/index.d.ts",
@@ -31,7 +31,7 @@
3131
"README.md"
3232
],
3333
"scripts": {
34-
"build": "rm -rf tsconfig.tsbuildinfo && rm -rf lib && bun typecheck && bob build",
34+
"build": "rm -rf tsconfig.tsbuildinfo && rm -rf lib && bun typecheck && bob build",
3535
"postinstall": "tsc || exit 0;",
3636
"typecheck": "tsc --noEmit",
3737
"clean": "rm -rf android/build node_modules/**/android/build lib",
@@ -47,7 +47,8 @@
4747
],
4848
"repository": {
4949
"type": "git",
50-
"url": "git+https://github.com/mrousavy/react-native-nitro-image.git"
50+
"url": "git+https://github.com/mrousavy/react-native-nitro-image.git",
51+
"directory": "packages/react-native-nitro-image"
5152
},
5253
"author": "Marc Rousavy <me@mrousavy.com> (https://github.com/mrousavy)",
5354
"license": "MIT",

packages/react-native-nitro-web-image/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-nitro-web-image",
33
"version": "0.9.1",
4-
"description": "react-native-nitro-web-image",
4+
"description": "A superfast in-memory Image type and view component for React Native Web, built with Nitro!",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",
77
"types": "lib/typescript/index.d.ts",
@@ -46,14 +46,15 @@
4646
],
4747
"repository": {
4848
"type": "git",
49-
"url": "git+https://github.com/mrousavy/react-native-nitro-web-image.git"
49+
"url": "git+https://github.com/mrousavy/react-native-nitro-image.git",
50+
"directory": "packages/react-native-nitro-web-image"
5051
},
5152
"author": "Marc Rousavy <me@mrousavy.com> (https://github.com/mrousavy)",
5253
"license": "MIT",
5354
"bugs": {
54-
"url": "https://github.com/mrousavy/react-native-nitro-web-image/issues"
55+
"url": "https://github.com/mrousavy/react-native-nitro-image/issues"
5556
},
56-
"homepage": "https://github.com/mrousavy/react-native-nitro-web-image#readme",
57+
"homepage": "https://github.com/mrousavy/react-native-nitro-image#readme",
5758
"publishConfig": {
5859
"registry": "https://registry.npmjs.org/"
5960
},

scripts/release.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ echo "Provided options: $@"
77

88
echo "Publishing 'react-native-nitro-image' to NPM"
99
cd packages/react-native-nitro-image
10+
cp ../../README.md README.md
1011
bun release $@
12+
rm README.md
1113

1214
echo "Publishing 'react-native-nitro-web-image' to NPM"
1315
cd ../react-native-nitro-web-image
16+
cp ../../README.md README.md
1417
bun release $@
18+
rm README.md
1519

1620
echo "Creating a Git bump commit and GitHub release"
1721
cd ../..

0 commit comments

Comments
 (0)