@@ -49,6 +49,7 @@ public override void Execute(UpgradeContext uctx)
49
49
50
50
uctx . ChangeCodeFile ( $@ "Southwind.React/package.json", file =>
51
51
{
52
+ file . UpgradeNpmPackage ( "@types/react" , "file:../Framework/Signum.React/node_modules/@types/react" ) ;
52
53
file . UpgradeNpmPackage ( "node-sass" , "5.0.0" ) ;
53
54
file . UpgradeNpmPackage ( "sass-loader" , "10.1.0" ) ;
54
55
} ) ;
@@ -67,6 +68,23 @@ public override void Execute(UpgradeContext uctx)
67
68
a => a . Contains ( "RUN apt-get -y install nodejs" ) ,
68
69
@"RUN apt-get -y install curl
69
70
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
71
+ RUN apt-get install -y nodejs" ) ;
72
+ } ) ;
73
+
74
+ uctx . ChangeCodeFile ( $@ "Southwind.React/App/MainPublic.tsx", file =>
75
+ {
76
+ file . ReplaceLine (
77
+ a => a . Contains ( "FROM mcr.microsoft.com/dotnet/core/aspnet" ) ,
78
+ "FROM mcr.microsoft.com/dotnet/aspnet:5.0-buster-slim AS base" ) ;
79
+ file . ReplaceLine (
80
+ a => a . Contains ( "FROM mcr.microsoft.com/dotnet/core/sdk" ) ,
81
+ "FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim AS build" ) ;
82
+
83
+ file . ReplaceBetween (
84
+ a => a . Contains ( "RUN apt-get -y install curl" ) ,
85
+ a => a . Contains ( "RUN apt-get -y install nodejs" ) ,
86
+ @"RUN apt-get -y install curl
87
+ RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
70
88
RUN apt-get install -y nodejs" ) ;
71
89
} ) ;
72
90
0 commit comments