-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #132 from piglovesyou/fix-issue-118
Pick up only correspoinding dtsContents for target `.tsx`s
- Loading branch information
Showing
29 changed files
with
679 additions
and
586 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import createCodegenOpts, { PartialCodegenOpts } from './create-codegen-opts'; | ||
import { getCacheFullDir } from './paths'; | ||
import { ConfigTypes } from './types'; | ||
|
||
export type ExecContext = { | ||
cwd: string; | ||
config: ConfigTypes; | ||
configHash: string; | ||
codegenOpts: PartialCodegenOpts; | ||
cacheFullDir: string; | ||
}; | ||
|
||
export default function createExecContext( | ||
cwd: string, | ||
config: ConfigTypes, | ||
configHash: string, | ||
) { | ||
const codegenOpts = createCodegenOpts(config); | ||
const cacheFullDir = getCacheFullDir(cwd, config.cacheDir); | ||
return { | ||
cwd, | ||
config, | ||
codegenOpts, | ||
configHash, | ||
cacheFullDir, | ||
}; | ||
} |
Oops, something went wrong.