File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import {
1414 DEFAULT_TABLES_DIR ,
1515} from "./constants.js" ;
1616import { fileURLToPath } from "url" ;
17- import { DbTransformation } from "./types .js" ;
17+ import { DbTransformation } from "../commands/db/transform .js" ;
1818
1919const __dirname = dirname ( fileURLToPath ( import . meta. url ) ) ;
2020const { PATH_TO_ENV , PDPL_PATH_TO_ENV } = process . env ;
@@ -63,7 +63,7 @@ export interface Config {
6363 outputDir ?: string ;
6464}
6565
66- interface ConfigFile
66+ export interface ConfigFile
6767 extends Partial < Omit < Config , "configFile" | "apisSupported" | "importsSupported" > > { }
6868
6969////
@@ -104,7 +104,7 @@ let attemptedImport = false;
104104if ( ! attemptedImport ) {
105105 if ( existsSync ( configPath ) ) {
106106 try {
107- configImport = ( await import ( configPath ) ) as object ;
107+ configImport = ( await import ( configPath ) ) as ConfigFile ;
108108 } catch ( error ) {
109109 const errorMessage = error instanceof Error ? error . message : "<unknown error>" ;
110110 console . log (
Original file line number Diff line number Diff line change @@ -100,4 +100,3 @@ export interface OutputStrategy {
100100 isReady : ( fields : KeyVal , data ?: KeyVal ) => string [ ] ;
101101 handle : OutputStrategyHandler ;
102102}
103- export interface DbTransformation { }
You can’t perform that action at this time.
0 commit comments