@mnci/cli 4.17.3 → 4.17.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2784,7 +2784,7 @@ function addInitialVersion(csprojPath) {
|
|
|
2784
2784
|
}
|
|
2785
2785
|
function csharpLibPublishTarget(projectRoot) {
|
|
2786
2786
|
const outDir = `${projectRoot}/dist`;
|
|
2787
|
-
const command = `node -e "if(!process.env.NUGET_PAT){console.log('NuGet publish is not configured for this registry choice (no NUGET_PAT) - skipping. Regenerate with --registry azure-artifacts, or run dotnet nuget push manually.');process.exit(0)}const cp=require('node:child_process');const pack=cp.spawnSync('dotnet',['pack','${projectRoot}','-c','Release','-o','${outDir}'],{stdio:'inherit',shell:true});if(pack.status!==0)process.exit(pack.status??1);const fs=require('node:fs');for(const pkg of fs.globSync('${outDir}/*.nupkg')){const push=cp.spawnSync('dotnet',['nuget','push',pkg,'--source','${NUGET_AZURE_SOURCE}','--api-key','AZ'],{stdio:'inherit',shell:true});if(push.status!==0)process.exit(push.status??1)}"`;
|
|
2787
|
+
const command = `node -e "if(process.argv.some((a)=>a==='--dryRun'||a==='--dryRun=true')||process.env.NX_DRY_RUN==='true'){console.log('Dry run - would dotnet pack ${projectRoot} and dotnet nuget push the resulting .nupkg to ${NUGET_AZURE_SOURCE}.');process.exit(0)}if(!process.env.NUGET_PAT){console.log('NuGet publish is not configured for this registry choice (no NUGET_PAT) - skipping. Regenerate with --registry azure-artifacts, or run dotnet nuget push manually.');process.exit(0)}const cp=require('node:child_process');const pack=cp.spawnSync('dotnet',['pack','${projectRoot}','-c','Release','-o','${outDir}'],{stdio:'inherit',shell:true});if(pack.status!==0)process.exit(pack.status??1);const fs=require('node:fs');for(const pkg of fs.globSync('${outDir}/*.nupkg')){const push=cp.spawnSync('dotnet',['nuget','push',pkg,'--source','${NUGET_AZURE_SOURCE}','--api-key','AZ'],{stdio:'inherit',shell:true});if(push.status!==0)process.exit(push.status??1)}"`;
|
|
2788
2788
|
return { executor: "nx:run-commands", options: { command } };
|
|
2789
2789
|
}
|
|
2790
2790
|
async function addCsharpLib(workspaceRoot, name, options, kindProvided) {
|