chore: rename fundamentals to base (#9119)

This commit is contained in:
forehalo
2024-12-13 06:27:12 +00:00
parent 8c24f2b906
commit 4c23991047
185 changed files with 183 additions and 193 deletions
@@ -1,9 +1,9 @@
import { S3ClientConfig, S3ClientConfigType } from '@aws-sdk/client-s3';
import { defineStartupConfig, ModuleConfig } from '../../fundamentals/config';
import { defineStartupConfig, ModuleConfig } from '../../base/config';
type WARNING = '__YOU_SHOULD_NOT_MANUALLY_CONFIGURATE_THIS_TYPE__';
declare module '../../fundamentals/storage/config' {
declare module '../../base/storage/config' {
interface StorageProvidersConfig {
// the type here is only existing for extends [StorageProviderType] with better type inference and checking.
'cloudflare-r2'?: WARNING;
@@ -1,6 +1,6 @@
import './config';
import { registerStorageProvider } from '../../fundamentals/storage';
import { registerStorageProvider } from '../../base/storage';
import { Plugin } from '../registry';
import { R2StorageProvider } from './providers/r2';
import { S3StorageProvider } from './providers/s3';
@@ -19,7 +19,7 @@ import {
PutObjectMetadata,
StorageProvider,
toBuffer,
} from '../../../fundamentals/storage';
} from '../../../base/storage';
import type { S3StorageConfig } from '../config';
export class S3StorageProvider implements StorageProvider {