Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/expo/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module.exports = (api) => {
// for expo-sqlite
['inline-import', { extensions: ['.sql'] }],
// if you want reanimated support
// '@babel/plugin-transform-export-namespace-from',
// 'react-native-reanimated/plugin',
'@babel/plugin-transform-export-namespace-from',
'react-native-reanimated/plugin',
],
}
}
1 change: 1 addition & 0 deletions apps/expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:ios": "scripts/build_ios.sh com.ramimaalouf.rooots"
},
"dependencies": {
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@gorhom/bottom-sheet": "^5.0.6",
"@orama/orama": "^2.0.19",
"@react-native-async-storage/async-storage": "^2.1.2",
Expand Down
8 changes: 5 additions & 3 deletions apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const plugins = [
logTimings: true,
disableExtraction,
// experiment - reduced bundle size react-native-web
useReactNativeWebLite: false,
// useReactNativeWebLite: false,
shouldExtract: (path) => {
if (path.includes(join('packages', 'app'))) {
return true
Expand Down Expand Up @@ -59,10 +59,12 @@ module.exports = () => {
'expo-linking',
'expo-blur',
'react-native-gesture-handler',
// 'react-native-reanimated',
// '@gorhom/bottom-sheet',
'react-native-reanimated',
'@gorhom/bottom-sheet',
'expo-constants',
'expo-modules-core',
'expo-sqlite',
'drizzle-orm',
],
experimental: {
scrollRestoration: true,
Expand Down
21 changes: 18 additions & 3 deletions apps/nextjs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@rooots/tsconfig/base.json",
// "extends": "@rooots/tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
Expand All @@ -13,7 +13,22 @@
}
],
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"noEmit": true
"noEmit": true,
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"incremental": true,
"module": "esnext",
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve"
},
"include": [
".",
Expand All @@ -22,4 +37,4 @@
"exclude": [
"node_modules"
]
}
}
2 changes: 1 addition & 1 deletion packages/local-api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rooots/api",
"name": "@rooots/local-api",
"version": "0.1.0",
"private": true,
"main": "./index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/local-db/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rooots/db",
"name": "@rooots/local-db",
"version": "0.1.0",
"private": true,
"main": "./index.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/local-db/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as schema from './schema'
import type { Database } from './schema/_table'
import { drizzle } from 'drizzle-orm/expo-sqlite'
import { openDatabaseSync } from 'expo-sqlite'
import { useDrizzleStudio } from 'expo-drizzle-studio-plugin'
// import { useDrizzleStudio } from 'expo-drizzle-studio-plugin'

interface ConnectionResult {
db: Database
Expand Down Expand Up @@ -42,9 +42,9 @@ export const useMigrationHelper = () => {
return useMigrations(db, migrations)
}

export const useDrizzleStudioHelper = () => {
return useDrizzleStudio(expo)
}
// export const useDrizzleStudioHelper = () => {
// return useDrizzleStudio(expo)
// }

export function generateRandomId(length: number): number {
const id = Math.random() * 10 ** length
Expand Down
3 changes: 2 additions & 1 deletion packages/server-api/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rooots/server-api",
"name": "@rooots/api",
"version": "0.1.0",
"private": true,
"main": "./index.ts",
Expand All @@ -17,6 +17,7 @@
"@rooots/db": "workspace:*",
"@rooots/queries": "workspace:*",
"@trpc/client": "catalog:",
"@trpc/react-query": "^11.1.2",
"@trpc/server": "catalog:",
"@trpc/tanstack-react-query": "catalog:",
"superjson": "2.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/server-db/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rooots/server-db",
"name": "@rooots/db",
"version": "0.1.0",
"private": true,
"main": "./index.ts",
Expand Down
5,006 changes: 2,399 additions & 2,607 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Loading