Skip to content

Commit

Permalink
chore: upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
hmeltaus committed Apr 29, 2024
1 parent ca140cb commit 4220fb4
Show file tree
Hide file tree
Showing 3 changed files with 2,581 additions and 852 deletions.
8 changes: 6 additions & 2 deletions integration-test/configs/custom-template-engine/takomo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const provider: TakomoConfigProvider = async (): Promise<TakomoConfig> => {
}: RenderTemplateProps) => {
let rendered = templateString
for (const [key, value] of Array.from(
Object.entries((variables as any).var),
Object.entries((variables as Record<string, unknown>).var),
)) {
while (rendered.includes(`@var.${key}@`)) {
rendered = rendered.replace(`@var.${key}@`, `${value}`)
Expand All @@ -32,7 +32,11 @@ const provider: TakomoConfigProvider = async (): Promise<TakomoConfig> => {
variables,
}: RenderTemplateFileProps) => {
const templateString = await readFileContents(pathToFile)
return renderTemplate({ templateString, variables })
return renderTemplate({
templateString,
variables,
sourceDescription: "",
})
}

return {
Expand Down
Loading

0 comments on commit 4220fb4

Please sign in to comment.