From f4f5c88f7102fabcbca749dbc4483478a09b206b Mon Sep 17 00:00:00 2001 From: James Prevett Date: Tue, 7 Jan 2025 11:15:32 -0600 Subject: [PATCH] Changed import: `@zenfs/core/path` -> `@zenfs/core/emulation/path.js` Organize imports Add Google Drive backend export --- src/dropbox.ts | 5 +++-- src/gdrive.ts | 5 +++-- src/index.ts | 1 + src/s3.ts | 5 +++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/dropbox.ts b/src/dropbox.ts index 60b6b7b..6d74b0d 100644 --- a/src/dropbox.ts +++ b/src/dropbox.ts @@ -1,6 +1,7 @@ -import { Async, Errno, ErrnoError, FileSystem, PreloadFile, Stats, type Backend, type File } from '@zenfs/core'; +import type { Backend, File } from '@zenfs/core'; +import { Async, Errno, ErrnoError, FileSystem, PreloadFile, Stats } from '@zenfs/core'; import { S_IFDIR, S_IFLNK, S_IFREG } from '@zenfs/core/emulation/constants.js'; -import { dirname } from '@zenfs/core/path'; +import { dirname } from '@zenfs/core/emulation/path.js'; import { Buffer } from 'buffer'; import type * as DB from 'dropbox'; diff --git a/src/gdrive.ts b/src/gdrive.ts index 09df13f..eeec372 100644 --- a/src/gdrive.ts +++ b/src/gdrive.ts @@ -1,6 +1,7 @@ -import { Async, type Backend, encodeRaw, Errno, ErrnoError, type File, FileSystem, PreloadFile, Stats } from '@zenfs/core'; +import type { Backend, File } from '@zenfs/core'; +import { Async, encodeRaw, Errno, ErrnoError, FileSystem, PreloadFile, Stats } from '@zenfs/core'; import { S_IFDIR, S_IFREG } from '@zenfs/core/emulation/constants.js'; -import { dirname, join } from '@zenfs/core/path'; +import { dirname, join } from '@zenfs/core/emulation/path.js'; import 'gapi'; import 'gapi.client.drive-v3'; diff --git a/src/index.ts b/src/index.ts index 4707c68..1eda0ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,3 @@ export * from './dropbox.js'; +export * from './gdrive.js'; export * from './s3.js'; diff --git a/src/s3.ts b/src/s3.ts index 35ea225..13c3dee 100644 --- a/src/s3.ts +++ b/src/s3.ts @@ -1,7 +1,8 @@ import type { S3 } from '@aws-sdk/client-s3'; -import { Async, type Backend, type File, FileSystem, InMemory, PreloadFile, Stats, type StatsLike, ErrnoError } from '@zenfs/core'; +import type { Backend, File, StatsLike } from '@zenfs/core'; +import { Async, ErrnoError, FileSystem, InMemory, PreloadFile, Stats } from '@zenfs/core'; import { S_IFDIR, S_IFMT } from '@zenfs/core/emulation/constants.js'; -import { join } from '@zenfs/core/path'; +import { join } from '@zenfs/core/emulation/path.js'; export type Metadata = Partial>;