Skip to content

Commit

Permalink
add Upgrade_20210829_TypeScript44
Browse files Browse the repository at this point in the history
  • Loading branch information
olmobrutall committed Aug 28, 2021
1 parent dd0d494 commit f6412af
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions Signum.Upgrade/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ static void Main(string[] args)
new Upgrade_20210816_RemoveWebAuth(),
new Upgrade_20210824_UpdateNugets(),
new Upgrade_20210828_ExtensionsLoveFramework(),
new Upgrade_20210829_TypeScript44(),
}.Run(uctx);
}
}
Expand Down
31 changes: 31 additions & 0 deletions Signum.Upgrade/Upgrades/Upgrade_20210829_TypeScript44.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using Signum.Utilities;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;

namespace Signum.Upgrade.Upgrades
{
class Upgrade_20210829_TypeScript44 : CodeUpgradeBase
{
public override string Description => "Update to TS 4.4";

public override void Execute(UpgradeContext uctx)
{

uctx.ChangeCodeFile(@"Southwind.React/package.json", file =>
{
file.UpdateNpmPackage("ts-loader", "9.2.5");
file.UpdateNpmPackage("typescript", "4.4.2");
});

uctx.ChangeCodeFile(@"Southwind.React.csproj", file =>
{
file.UpdateNugetReference("Microsoft.TypeScript.MSBuild", "4.4.2");
});
}
}
}

2 comments on commit f6412af

@olmobrutall
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upgrade to TS 4.4

Just run Upgrade_20210829_TypeScript44

If you want to know why we skip "Microsoft.TypeScript.MSBuild" "4.3.2" check this issue: microsoft/TypeScript#44283

@mehdy-karimpour
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍

Please sign in to comment.