-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39e76bf
commit d26254c
Showing
4 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ export interface IRawTSConfig { | |
replacers?: ReplacerOptions; | ||
resolveFullPaths?: boolean; | ||
verbose?: boolean; | ||
fileExtensions?: Partial<FileExtensions>; | ||
}; | ||
} | ||
|
||
|
@@ -16,6 +17,11 @@ export type PathLike = { | |
|
||
export type StringReplacer = (importStatement: string) => string; | ||
|
||
export interface FileExtensions { | ||
inputGlob: string; | ||
outputCheck: string[]; | ||
} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
raouldeheer
Author
Contributor
|
||
|
||
export interface ITSConfig { | ||
baseUrl?: string; | ||
outDir?: string; | ||
|
@@ -24,6 +30,7 @@ export interface ITSConfig { | |
replacers?: ReplacerOptions; | ||
resolveFullPaths?: boolean; | ||
verbose?: boolean; | ||
fileExtensions?: Partial<FileExtensions>; | ||
} | ||
|
||
export interface IProjectConfig { | ||
|
@@ -37,6 +44,7 @@ export interface IProjectConfig { | |
configDirInOutPath: string; | ||
relConfDirPathInOutPath: string; | ||
pathCache: PathCache; | ||
inputGlob: string; | ||
} | ||
|
||
export interface IConfig extends IProjectConfig { | ||
|
@@ -56,6 +64,7 @@ export interface ReplaceTscAliasPathsOptions { | |
replacers?: string[]; | ||
output?: IOutput; | ||
aliasTrie?: TrieNode<Alias>; | ||
fileExtensions?: Partial<FileExtensions>; | ||
} | ||
|
||
export interface Alias { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I think this can be reduced to an simple
string[]
. The neededinputGlob
can be generated by a simplejoin
.