File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 6666 ROOT=$(pwd)
6767 cd src/ApiCodeGenerator.Npm
6868 npm version ${GitVersion_FullSemVer} --no-git-tag-version
69- mkdir -p binaries
70- cp -f -r ../ApiCodeGenerator.MSBuild/bin/Release/net8.0/* ./binaries
71- npm pack --pack-destination ${ROOT}/${PackageOutputDir}
69+ npm run pack-ci -- ${ROOT}/${PackageOutputDir}
7270
7371 - name : Nuget Push
7472 if : env.PushPackage == 'true'
Original file line number Diff line number Diff line change 2323 <None Include =" ..\ApiCodeGenerator.Core\bin\$(Configuration)\netstandard2.0\ApiCodeGenerator.Core.dll" Link =" ApiCodeGenerator.Core.dll" >
2424 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
2525 </None >
26+ <None Include =" ..\ApiCodeGenerator.OpenApi\bin\$(Configuration)\netstandard2.0\ApiCodeGenerator.OpenApi.dll" CopyToPublishDirectory =" Always" />
27+ <None Include =" ..\ApiCodeGenerator.AsyncApi\bin\$(Configuration)\netstandard2.0\ApiCodeGenerator.AsyncApi.dll" CopyToPublishDirectory =" Always" />
2628 </ItemGroup >
2729
2830 <ItemGroup >
2931 <ProjectReference Include =" ..\ApiCodeGenerator.Abstraction\ApiCodeGenerator.Abstraction.csproj" />
3032 <ProjectReference Include =" ..\ApiCodeGenerator.Core\ApiCodeGenerator.Core.csproj" ReferenceOutputAssembly =" false" />
33+ <ProjectReference Include =" ..\ApiCodeGenerator.OpenApi\ApiCodeGenerator.OpenApi.csproj" ReferenceOutputAssembly =" false" />
34+ <ProjectReference Include =" ..\ApiCodeGenerator.AsyncApi\ApiCodeGenerator.AsyncApi.csproj" ReferenceOutputAssembly =" false" />
3135 </ItemGroup >
3236
3337 <Import Project =" ./ApiCodeGenerator.MSBuild.Console.targets" Condition =" '$(TargetFramework)' != 'netstandard2.0'" />
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ try {
177177 ref . nswag ,
178178 ref . out ,
179179 ...extensions . map ( function ( e ) { return [ "-e" , e ] } ) . flat ( ) ,
180- ...varsArg ? [ "-v" , varsArg ] : v ,
180+ ...varsArg ? [ "-v" , varsArg ] : varsArg ,
181181 "--nswagTool" ,
182182 nswagTool . dir
183183 ]
Original file line number Diff line number Diff line change 1818 "license" : " MIT" ,
1919 "scripts" : {
2020 "binaries" : " dotnet publish ../ApiCodeGenerator.MSBuild/ApiCodeGenerator.MSBuild.csproj -c Release -f net8.0 -o binaries -p:CodeAnalysisRuleSet=" ,
21- "pack" : " npm run binaries && mkdirp dist && npm pack --pack-destination dist"
21+ "pack" : " mkdirp dist && npm run pack-ci -- dist" ,
22+ "pack-ci" : " npm run binaries && npm pack --pack-destination "
2223 },
2324 "devDependencies" : {
2425 "mkdirp" : " ^3.0.1"
You can’t perform that action at this time.
0 commit comments