Skip to content

Commit eed65c2

Browse files
committed
remove npm ignore
1 parent cdb7f5e commit eed65c2

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

bun.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"lockfileVersion": 1,
3+
"configVersion": 0,
34
"workspaces": {
45
"": {
56
"name": "react-native-onesignal",

examples/RNOneSignalTS/ios/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@ SPEC CHECKSUMS:
26652665
React-logger: a3cb5b29c32b8e447b5a96919340e89334062b48
26662666
React-Mapbuffer: 9d2434a42701d6144ca18f0ca1c4507808ca7696
26672667
React-microtasksnativemodule: 75b6604b667d297292345302cc5bfb6b6aeccc1b
2668-
react-native-onesignal: b68c981956150f288c1585889871affcef3c0b8b
2668+
react-native-onesignal: 6c5758aa56975db4bca9956d18d83dd62444c931
26692669
react-native-safe-area-context: c00143b4823773bba23f2f19f85663ae89ceb460
26702670
React-NativeModulesApple: 879fbdc5dcff7136abceb7880fe8a2022a1bd7c3
26712671
React-oscompat: 93b5535ea7f7dff46aaee4f78309a70979bdde9d

examples/RNOneSignalTS/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"private": true,
55
"scripts": {
66
"setup": "./setup.sh",
7+
"preandroid": "bun run setup",
8+
"preios": "bun run setup",
79
"android": "react-native run-android",
810
"ios": "react-native run-ios",
911
"start": "react-native start"

examples/RNOneSignalTS/setup.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
ORIGINAL_DIR=$(pwd)
2+
3+
# Build root package
14
cd ../../
25
bun run build
36

47
rm react-native-onesignal.tgz
58
bun pm pack
69
mv react-native-onesignal-*.tgz react-native-onesignal.tgz
10+
11+
# Use fresh install of the package
12+
cd $ORIGINAL_DIR
13+
rm -rf node_modules/react-native-onesignal
14+
bun i
15+
16+
# Reinstall pods to pick up the updated native module
17+
if [ -d "ios" ]; then
18+
cd ios
19+
pod install
20+
cd ..
21+
fi

0 commit comments

Comments
 (0)