Skip to content

Commit

Permalink
Don't export client and server functions form the same file.
Browse files Browse the repository at this point in the history
  • Loading branch information
barbarah committed Oct 6, 2023
1 parent 441cf53 commit 3f1a5e4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {useAuth} from '@clerk/nextjs';
import {addList} from './actions';
import {useForm, SubmitHandler} from 'react-hook-form';
import {zodResolver} from '@hookform/resolvers/zod';
import {insertObjectListSchema} from '@colonial-collections/database';
import {insertObjectListSchema} from '@colonial-collections/database/client';
import {useTranslations} from 'next-intl';
import {useSlideOut, useNotifications} from 'ui';
import {camelCase} from 'tiny-case';
Expand Down
1 change: 1 addition & 0 deletions packages/database/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/db/validation';
1 change: 1 addition & 0 deletions packages/database/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * as objectList from './src/object-list';
4 changes: 2 additions & 2 deletions packages/database/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@colonial-collections/database",
"version": "0.0.0",
"private": true,
"main": "./src/index.ts",
"types": "./src/index.ts",
"main": "./index.ts",
"types": "./index.ts",
"scripts": {
"db:generate": "dotenv -c -- drizzle-kit generate:mysql",
"db:migrate": "dotenv -c -- ts-node ./scripts/migrate.ts",
Expand Down
2 changes: 0 additions & 2 deletions packages/database/src/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/database/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"rootDir": "./src",
"outDir": "./build"
},
"include": ["src/**/*.ts"]
"include": ["./**/*.ts"]
}

0 comments on commit 3f1a5e4

Please sign in to comment.