Skip to content

Commit b539b34

Browse files
committed
convert to pnpm workspaces + change packages to module
1 parent 9030609 commit b539b34

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+11122
-20407
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

.nvmrc

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

apps/mobile/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"web": {
3434
"bundler": "metro",
35-
"output": "static",
35+
"output": "single",
3636
"favicon": "./assets/images/favicon.png"
3737
},
3838
"plugins": ["expo-router"],

apps/mobile/app/(tabs)/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,11 @@ import { HoverCard, HoverCardContent, HoverCardTrigger } from '~/components/ui/h
4444
import { Tooltip, TooltipContent, TooltipTrigger } from '~/components/ui/tooltip';
4545
import { Muted, Text } from '~/components/ui/typography';
4646
import { cn } from '~/lib/utils';
47-
import { Paragraph } from '@rnr/ui';
4847

4948
export default function ExampleScreen() {
5049
const [isTooltipOpen, setIsTooltipOpen] = React.useState(false);
5150
return (
5251
<View className='flex-1 p-4 justify-center gap-6'>
53-
<Paragraph>Hello</Paragraph>
5452
<Card className='w-full max-w-lg mx-auto'>
5553
<CardHeader>
5654
<View className='flex-row gap-3'>

apps/mobile/package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"name": "react-native-reusables",
3-
"main": "expo-router/entry",
2+
"name": "@rnr/mobile",
3+
"main": "index.js",
44
"version": "1.0.0",
55
"scripts": {
6-
"start": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start -c",
7-
"android": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start -c --android",
8-
"dev": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start -c --ios",
9-
"dev:web": "EXPO_USE_METRO_WORKSPACE_ROOT=1 expo start -c --web",
6+
"start": "expo start -c",
7+
"android": "expo start -c --android",
8+
"dev": "expo start -c --ios",
9+
"dev:web": "expo start -c --web",
1010
"clean": "rm -rf .expo node_modules"
1111
},
1212
"dependencies": {
@@ -31,6 +31,7 @@
3131
"@rnr/select": "*",
3232
"@rnr/separator": "*",
3333
"@rnr/slider": "*",
34+
"@rnr/slot": "*",
3435
"@rnr/switch": "*",
3536
"@rnr/table": "*",
3637
"@rnr/tabs": "*",
@@ -39,6 +40,7 @@
3940
"@rnr/toggle-group": "*",
4041
"@rnr/toolbar": "*",
4142
"@rnr/tooltip": "*",
43+
"@rnr/types": "*",
4244
"@gorhom/bottom-sheet": "^4.6.0",
4345
"@hookform/resolvers": "^3.3.4",
4446
"@radix-ui/react-accordion": "^1.1.2",

apps/mobile/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
"incremental": true,
2424
"noUncheckedIndexedAccess": true
2525
},
26-
"include": ["**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"],
26+
"include": ["index.js", "**/*.ts", "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts"],
2727
"exclude": ["node_modules", "build", "dist", ".expo"]
2828
}

0 commit comments

Comments
 (0)