Skip to content

Commit

Permalink
Use relative path also in first time generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Sep 11, 2024
1 parent 6badedb commit 7bae95a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Serenity.Net.CodeGenerator/Helpers/ModularTSImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ public class ModularTSImporter(string currentModule)

protected string ImportFromTypes(string name)
{
return AddExternalImport("@/ServerTypes/" + currentModule, name);
return AddExternalImport(string.IsNullOrEmpty(currentModule) ?
"../ServerTypes/" : ("../../ServerTypes/" + currentModule), name);
}

protected string ImportFromQ(string name)
Expand Down

0 comments on commit 7bae95a

Please sign in to comment.