Skip to content

Commit 28f1e4c

Browse files
committed
update react-native and node
1 parent 9a07529 commit 28f1e4c

File tree

6 files changed

+53
-43
lines changed

6 files changed

+53
-43
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,4 @@ dist
3838
tsconfig.tsbuildinfo
3939
.turbo
4040
target
41+
.yarn

examples/.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

examples/example-expo-53/package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
"name": "example-expo-53",
33
"main": "expo-router/entry",
44
"version": "1.0.0",
5+
"packageManager": "[email protected]",
56
"scripts": {
67
"start": "expo start",
78
"reset-project": "node ./scripts/reset-project.js",
89
"android": "expo run:android",
910
"ios": "expo run:ios",
10-
"web": "expo start --web",
11+
"web": "expo start --web --clear",
1112
"lint": "expo lint"
1213
},
1314
"dependencies": {
15+
"@expo/metro-runtime": "~5.0.4",
1416
"@expo/vector-icons": "^14.1.0",
1517
"@react-navigation/bottom-tabs": "^7.3.10",
1618
"@react-navigation/elements": "^2.3.8",
@@ -36,14 +38,14 @@
3638
"posthog-react-native-session-replay": "^1.1.1",
3739
"react": "19.0.0",
3840
"react-dom": "19.0.0",
39-
"react-native": "0.79.4",
41+
"react-native": "0.79.5",
4042
"react-native-gesture-handler": "~2.24.0",
4143
"react-native-reanimated": "~3.17.4",
4244
"react-native-safe-area-context": "5.4.0",
4345
"react-native-screens": "~4.11.1",
46+
"react-native-svg": "15.11.2",
4447
"react-native-web": "~0.20.0",
45-
"react-native-webview": "13.13.5",
46-
"react-native-svg": "15.11.2"
48+
"react-native-webview": "13.13.5"
4749
},
4850
"devDependencies": {
4951
"@babel/core": "^7.25.2",
@@ -52,5 +54,9 @@
5254
"eslint-config-expo": "~9.2.0",
5355
"typescript": "~5.8.3"
5456
},
55-
"private": true
57+
"private": true,
58+
"resolutions": {
59+
"posthog-react-native": "file:../../target/posthog-react-native.tgz",
60+
"@posthog/core": "file:../../target/posthog-core.tgz"
61+
}
5662
}

examples/example-node/package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2-
"name": "example-node",
3-
"version": "1.0.0",
4-
"main": "server.ts",
5-
"license": "MIT",
6-
"scripts": {
7-
"preinstall": "yarn build:posthog",
8-
"prestart": "yarn build:posthog",
9-
"start": "ts-node server.ts",
10-
"build:posthog": "yarn build:posthog:publish && yarn build:posthog:link",
11-
"build:posthog:publish": "cd ../../posthog-node && yalc publish --replace",
12-
"build:posthog:link": "yalc add posthog-node",
13-
"example": "ts-node example.ts"
14-
},
15-
"dependencies": {
16-
"@sentry/node": "^8.53.0",
17-
"express": "^4.18.1",
18-
"posthog-node": "file:.yalc/posthog-node",
19-
"undici": "^5.8.0"
20-
},
21-
"devDependencies": {
22-
"@types/express": "^4.17.13",
23-
"@types/node": "^20.0.0",
24-
"eslint": "^8.19.0",
25-
"ts-node": "^10.8.2",
26-
"typescript": "^4.7.4",
27-
"wtfnode": "^0.9.1"
28-
}
2+
"name": "example-node",
3+
"version": "1.0.0",
4+
"main": "server.ts",
5+
"license": "MIT",
6+
"packageManager": "[email protected]",
7+
"scripts": {
8+
"start": "ts-node server.ts",
9+
"example": "ts-node example.ts"
10+
},
11+
"dependencies": {
12+
"@sentry/node": "^8.53.0",
13+
"express": "^4.18.1",
14+
"posthog-node": "*",
15+
"undici": "^5.8.0"
16+
},
17+
"devDependencies": {
18+
"@types/express": "^4.17.13",
19+
"@types/node": "20.19.7",
20+
"eslint": "^8.19.0",
21+
"ts-node": "^10.8.2",
22+
"typescript": "^4.7.4",
23+
"wtfnode": "^0.9.1"
24+
},
25+
"resolutions": {
26+
"posthog-node": "file:../../target/posthog-node.tgz",
27+
"@posthog/core": "file:../../target/posthog-core.tgz"
28+
}
2929
}

examples/example-node/tsconfig.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"compilerOptions": {
3-
"target": "es2016",
4-
"module": "commonjs",
5-
"esModuleInterop": true,
6-
"forceConsistentCasingInFileNames": true,
7-
"strict": true,
8-
"allowJs": true,
9-
"resolveJsonModule": true
10-
},
11-
"exclude": ["node_modules"]
2+
"compilerOptions": {
3+
"target": "es2016",
4+
"module": "commonjs",
5+
"esModuleInterop": true,
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"allowJs": true,
9+
"resolveJsonModule": true
10+
},
11+
"exclude": ["node_modules"]
1212
}

packages/react-native/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
"build": "tsc -b && babel ./dist --out-dir dist --extensions '.js'",
2323
"package": "pnpm pack --out $PACKAGE_DEST/%s.tgz"
2424
},
25+
"dependencies": {
26+
"@posthog/core": "workspace:*"
27+
},
2528
"devDependencies": {
2629
"@babel/cli": "^7.19.3",
2730
"@babel/plugin-transform-private-property-in-object": "^7.27.1",
@@ -40,7 +43,6 @@
4043
"jest": "catalog:",
4144
"jest-environment-node": "catalog:",
4245
"jest-expo": "catalog:",
43-
"@posthog/core": "workspace:*",
4446
"posthog-react-native-session-replay": "^1.1.1",
4547
"react": "18.2.0",
4648
"react-native": "^0.69.1",

0 commit comments

Comments
 (0)