-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Solution.targets
More file actions
25 lines (21 loc) · 979 Bytes
/
Directory.Solution.targets
File metadata and controls
25 lines (21 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<Project>
<PropertyGroup>
<PnpmInstallCheck>$(SolutionDir)node_modules/.dotnet-pnpm-install</PnpmInstallCheck>
</PropertyGroup>
<!-- Install pnpm dependencies at solution/workspace level. -->
<Target Name="pnpm install" BeforeTargets="Restore"
Inputs="$(SolutionDir)package.json;$(SolutionDir)pnpm-lock.yaml;$(SolutionDir)pnpm-workspace.yaml"
Outputs="$(PnpmInstallCheck)"
>
<Exec Command="pnpm install --workspace-root" StandardOutputImportance="normal" />
<!-- Print restore message in similar way to csproj (no time though). -->
<Message Text="Restored $(SolutionDir)package.json (pnpm install)." Importance="high" />
<!-- File used for .NET iterative builds (touch updates the timestamp). -->
<Touch Files="$(PnpmInstallCheck)" AlwaysCreate="true" />
</Target>
<!-- Clean -->
<Target Name="Clean solution" AfterTargets="Clean">
<RemoveDir Directories="$(SolutionDir)artifacts" />
<Delete Files="$(PnpmInstallCheck)" />
</Target>
</Project>