File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 7373 </Target>
7474
7575 <Target Name="RestorePackageJsonFiles" AfterTargets="Build;Pack">
76- <Message Text="Restoring package.json files from backups..." Importance="high" />
76+ <Message Text="Restoring package.json files and package-lock.json from backups..." Importance="high" />
7777 <ItemGroup>
7878 <PackageJsonBackupFiles Include="$(RepoRoot)**/*.json.bak" />
7979 </ItemGroup>
8080 <Move SourceFiles="@(PackageJsonBackupFiles)"
8181 DestinationFiles="@(PackageJsonBackupFiles -> Replace('.bak', ''))"
8282 Condition="@(PackageJsonBackupFiles) != ''" />
83+ <!-- Restore package-lock.json from git if it was modified -->
84+ <Exec Command="git checkout -- package-lock.json"
85+ WorkingDirectory="$(RepoRoot)"
86+ ContinueOnError="true" />
8387 </Target>
8488
8589 <!-- Import Directory.Build.targets -->
You can’t perform that action at this time.
0 commit comments