From bf1e696cf423921f1b7be0bb27e4fe6c33a56c17 Mon Sep 17 00:00:00 2001 From: Marcos Meli Date: Tue, 11 Dec 2018 11:53:11 -0300 Subject: [PATCH] Fix for .net core 2.2 support in npm package Adding .net core 2.2 as default runtime Adding 22 to supportedCoreVersions array --- src/NSwag.Npm/bin/nswag.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NSwag.Npm/bin/nswag.js b/src/NSwag.Npm/bin/nswag.js index e474ce11de..4276f3973b 100644 --- a/src/NSwag.Npm/bin/nswag.js +++ b/src/NSwag.Npm/bin/nswag.js @@ -1,8 +1,8 @@ #!/usr/bin/env node "use strict"; -var defaultCoreVersion = "21"; -var supportedCoreVersions = ["10", "11", "20", "21"]; +var defaultCoreVersion = "22"; +var supportedCoreVersions = ["10", "11", "20", "21", "22"]; // Initialize process.title = 'nswag'; @@ -67,4 +67,4 @@ if (hasFullDotNet && args.toLowerCase().indexOf("/runtime:win") != -1) { c.execSync(defaultCmd, { stdio: [0, 1, 2] }); return; }); -} \ No newline at end of file +}