mirror of
https://github.com/get-drexa/drive.git
synced 2025-12-01 05:51:39 +00:00
refactor: add import maps for generated code
- Add export mappings in @fileone/convex package.json for cleaner imports - Map @fileone/convex/dataModel to _generated/dataModel.d.ts - Map @fileone/convex/api to _generated/api.js - Map @fileone/convex/server to _generated/server.js - Update all imports across packages/convex and apps/drive-web - Maintain backward compatibility with _generated/* exports Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* NO server-only dependencies should be imported here.
|
||||
*/
|
||||
|
||||
import type { Doc, Id } from "../_generated/dataModel"
|
||||
import type { Doc, Id } from "@fileone/convex/dataModel"
|
||||
import type * as Err from "./error"
|
||||
|
||||
export enum FileType {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* This file should NOT import any server-only dependencies.
|
||||
*/
|
||||
|
||||
import type { Doc } from "../_generated/dataModel"
|
||||
import type { Doc } from "@fileone/convex/dataModel"
|
||||
import type { DirectoryPath } from "./filesystem"
|
||||
|
||||
export type DirectoryInfo = Doc<"directories"> & { path: DirectoryPath }
|
||||
|
||||
Reference in New Issue
Block a user