@team-supercharge/oasg 16.7.1-temp-feat-swift-openapi-generator-e02341ef → 16.7.1-temp-feat-swift-openapi-generator-4739d9f5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-supercharge/oasg",
3
- "version": "16.7.1-temp-feat-swift-openapi-generator-e02341ef",
3
+ "version": "16.7.1-temp-feat-swift-openapi-generator-4739d9f5",
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",
@@ -1,7 +1,5 @@
1
1
  #/bin/bash
2
2
 
3
- CURRENT_WORKING_DIR=$(pwd)
4
-
5
3
  source $(dirname "$0")/../common.sh
6
4
 
7
5
  # Clear the output directory
@@ -9,34 +7,10 @@ rm -rf out/$targetId
9
7
  mkdir -p out/$targetId
10
8
 
11
9
  # Variables
12
- SWIFT_OPENAPI_GENERATOR_GIT_URL=https://github.com/apple/swift-openapi-generator
13
- SWIFT_OPENAPI_GENERATOR_GIT_TAG=1.7.2
14
- SWIFT_OPENAPI_GENERATOR_CLONE_DIR=swift-openapi-generator/$SWIFT_OPENAPI_GENERATOR_GIT_TAG
15
- SWIFT_OPENAPI_GENERATOR_BIN="$SWIFT_OPENAPI_GENERATOR_CLONE_DIR/.build/release/swift-openapi-generator"
16
10
  OPENAPI_GENERATOR_CONFIG_PATH=openapi-generator-config.yaml
17
11
 
18
- # Clear OpenAPI generator directory
19
- rm -rf "$SWIFT_OPENAPI_GENERATOR_CLONE_DIR"
20
- mkdir -p "$SWIFT_OPENAPI_GENERATOR_CLONE_DIR"
21
-
22
- # Checkout the swift-openapi-generator repo
23
- git \
24
- -c advice.detachedHead=false \
25
- clone \
26
- --branch "$SWIFT_OPENAPI_GENERATOR_GIT_TAG" \
27
- --depth 1 \
28
- "$SWIFT_OPENAPI_GENERATOR_GIT_URL" \
29
- "$SWIFT_OPENAPI_GENERATOR_CLONE_DIR"
30
-
31
- # Build the swift-openapi-generator
32
- swift \
33
- build \
34
- --package-path "$SWIFT_OPENAPI_GENERATOR_CLONE_DIR" \
35
- --configuration release \
36
- --product swift-openapi-generator
37
-
38
12
  # Generate the swift client
39
- "$SWIFT_OPENAPI_GENERATOR_BIN" \
13
+ swift-openapi-generator \
40
14
  generate \
41
15
  --config "$OPENAPI_GENERATOR_CONFIG_PATH" \
42
16
  --output-directory "out/$targetId/Sources/$projectName" \