@nx-dotnet/dotnet
Advanced tools
Comparing version 1.9.5 to 1.9.6
@@ -6,3 +6,3 @@ { | ||
"dependencies": { | ||
"@nx-dotnet/utils": "1.9.5", | ||
"@nx-dotnet/utils": "1.9.6", | ||
"glob": "^7.2.0", | ||
@@ -29,5 +29,5 @@ "rimraf": "^3.0.2", | ||
"homepage": "https://nx-dotnet.com/", | ||
"version": "1.9.5", | ||
"version": "1.9.6", | ||
"typings": "./src/index.d.ts", | ||
"peerDependencies": {} | ||
} |
@@ -16,8 +16,8 @@ /// <reference types="node" /> | ||
publish(project: string, parameters?: dotnetPublishOptions, publishProfile?: string, extraParameters?: string): void; | ||
installTool(tool: string): void; | ||
installTool(tool: string, version?: string, source?: string): void; | ||
restorePackages(project: string): void; | ||
restoreTools(): void; | ||
format(project: string, parameters?: dotnetFormatOptions): void; | ||
format(project: string, parameters?: dotnetFormatOptions, forceToolUsage?: boolean): void; | ||
addProjectToSolution(solutionFile: string, project: string): void; | ||
getSdkVersion(): Buffer; | ||
getSdkVersion(): string; | ||
printSdkVersion(): void; | ||
@@ -24,0 +24,0 @@ private logAndExecute; |
@@ -79,4 +79,10 @@ "use strict"; | ||
} | ||
installTool(tool) { | ||
installTool(tool, version, source) { | ||
const cmd = [`tool`, `install`, tool]; | ||
if (version) { | ||
cmd.push('--version', version); | ||
} | ||
if (source) { | ||
cmd.push('--add-source', source); | ||
} | ||
return this.logAndExecute(cmd); | ||
@@ -92,4 +98,6 @@ } | ||
} | ||
format(project, parameters) { | ||
const params = [`format`, project]; | ||
format(project, parameters, forceToolUsage) { | ||
const params = forceToolUsage | ||
? ['tool', 'run', 'dotnet-format', project] | ||
: [`format`, project]; | ||
if (parameters) { | ||
@@ -106,3 +114,3 @@ parameters = (0, utils_1.swapKeysUsingMap)(parameters, models_1.formatKeyMap); | ||
getSdkVersion() { | ||
return this.execute(['--version']); | ||
return this.cliCommand.info.version.toString(); | ||
} | ||
@@ -109,0 +117,0 @@ printSdkVersion() { |
Sorry, the diff of this file is not supported yet
32487
458
+ Added@nx-dotnet/utils@1.9.6(transitive)
- Removed@nx-dotnet/utils@1.9.5(transitive)
Updated@nx-dotnet/utils@1.9.6