Skip to content

Commit

Permalink
chore: 빌드 수정 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimYunSup authored Oct 17, 2024
1 parent 6089242 commit b10e7d2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DotNetDevLottery/DotNetDevLottery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
<None Remove="wwwroot\js\**" />
</ItemGroup>
<Target Name="NpmInstall" Inputs="package.json" Outputs="node_modules/.install-stamp">
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<Exec Command="pnpm i" Condition="$(RestorePackagesWithLockFile) != 'true'" />
<Exec Command="pnpm i" Condition="$(RestorePackagesWithLockFile) != 'true'" ConsoleToMsBuild="true" />

<!-- 'Incremental builds' 가 되도록 stamp 파일을 업데이트한다. -->
<Touch Files="node_modules/.install-stamp" AlwaysCreate="true" />
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
</Target>
<Target Name="PreBuild" DependsOnTargets="NpmInstall" BeforeTargets="BeforeBuild">
<Message Text="TypeScript 컴파일 중 $(Configuration)" Importance="high" />
<Message Text="TypeScript 컴파일 중" Importance="high" />
<PropertyGroup>
<NodeCommand Condition="$(Configuration) == 'Release'">pnpm build</NodeCommand>
<NodeCommand Condition="$(Configuration) != 'Release'">pnpm build:dev</NodeCommand>
Expand Down

0 comments on commit b10e7d2

Please sign in to comment.