@team-supercharge/oasg 16.3.1-chore-update-dotnet-target-81ecf803.0 → 16.3.1

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/bin/oasg CHANGED
@@ -53,7 +53,7 @@ const DEFAULT_GENERATOR_MAPPING = {
53
53
  "spring-kotlin": { version: '7.11.0', generator: 'kotlin-spring' },
54
54
  "python-fastapi": { version: '7.8.0', generator: 'python-fastapi' },
55
55
  "python-fastapi-raw-request": { version: '7.0.1', generator: 'python-fastapi' },
56
- "dotnet": { version: '7.11.0', generator: 'csharp-functions' },
56
+ "dotnet": { version: '7.8.0', generator: 'csharp-functions' },
57
57
  // misc targets
58
58
  "contract-testing": { version: '4.3.1', generator: 'typescript-node' },
59
59
  "openapi": { version: undefined, generator: undefined },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "16.3.1-chore-update-dotnet-target-81ecf803.0",
3
+ "version": "16.3.1",
4
4
  "description": "Node-based tool to lint OpenAPI documents and generate clients, servers and documentation from them",
5
5
  "author": "Supercharge",
6
6
  "license": "MIT",
@@ -9,8 +9,15 @@ dotnet restore
9
9
  dotnet build -c Release
10
10
  dotnet pack -c Release -p:Version=$version -p:IsPackable=true
11
11
 
12
+ isWindows=false
13
+ if [[ "$OSTYPE" == "cygwin"* ]] || [[ "$OSTYPE" == "msys"* ]]; then
14
+ isWindows=true
15
+ fi
16
+ storePasswordOption=$([[ $isWindows == true ]] && echo "" || echo "--store-password-in-clear-text")
17
+
12
18
  # publish
13
19
  echo "<?xml version=\"1.0\" encoding=\"utf-8\"?><configuration></configuration>" > nuget.config
14
- nuget push "src/**/bin/Release/*.nupkg" -ConfigFile nuget.config -ApiKey "${apiKey}" -Source ${sourceUrl}
20
+ dotnet nuget add source "${sourceUrl}" -n Feed -u User -p "${apiKey}" --configfile nuget.config $storePasswordOption
21
+ dotnet nuget push "src/**/bin/Release/*.nupkg" -s ${sourceUrl} -k AZ
15
22
 
16
23
  cd ../..
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "main": "dist/index.js",
15
15
  "peerDependencies": {
16
- "@nestjs/common": "^10.0.0",
17
- "@nestjs/core": "^10.0.0",
18
- "@nestjs/platform-express": "^10.0.0",
16
+ "@nestjs/common": ">=10.0.0",
17
+ "@nestjs/core": ">=10.0.0",
18
+ "@nestjs/platform-express": ">=10.0.0",
19
19
  "class-transformer": "^0.5.1",
20
20
  "class-validator": "^0.14.0",
21
21
  "reflect-metadata": "0.2.2",