Skip to content

Commit c5543f3

Browse files
committed
fix: fix core imports
1 parent a03dc51 commit c5543f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/schema-to-typescript/common/client-core.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ function processCoreFile(
1414
return renderTypeScript(
1515
parse(
1616
code.replace(
17-
/import(.*?)from '.\/([^']+)';/,
18-
(_, [imports, path]) =>
17+
/import(.*?)from '.\/([^']+)';/g,
18+
(_, imports, path) =>
1919
`import${imports}from ${JSON.stringify(`./${formatFilename(path, filenameFormat)}`)};`
2020
),
2121
{

0 commit comments

Comments
 (0)