Skip to content

Commit 6593e00

Browse files
committed
Add missing files to Npm package
1 parent f509c41 commit 6593e00

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,7 @@ jobs:
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'

src/ApiCodeGenerator.MSBuild/ApiCodeGenerator.MSBuild.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,15 @@
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'" />

src/ApiCodeGenerator.Npm/acg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
]

src/ApiCodeGenerator.Npm/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
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"

0 commit comments

Comments
 (0)