Skip to content

Commit

Permalink
Fix EsmAssetBasePath reading from arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Sep 16, 2024
1 parent 3bbe523 commit 8abb3d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/Serenity.Net.CodeGenerator/Commands/MvcCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,9 @@ string getName(string s)
if (!string.IsNullOrEmpty(esmAssetBasePath))
esmGenerator.EsmAssetBasePath = esmAssetBasePath;

var globs = config.TSBuild?.EntryPoints as IEnumerable<string>;
if (globs != null)
if (config.TSBuild?.EntryPoints is IEnumerable<string> globs)
{
if (globs.FirstOrDefault() != "+")
if (globs.FirstOrDefault() != "+")
esmGenerator.EntryPoints.Clear();
else
globs = globs.Skip(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public string GetEsmAssetBasePath()
}
}

return string.IsNullOrEmpty(targetFramework) ? null : targetFramework;
return string.IsNullOrEmpty(esmAssetBasePath) ? null : esmAssetBasePath;
}

public string GetOutDir()
Expand Down

0 comments on commit 8abb3d5

Please sign in to comment.