@team-supercharge/oasg 16.7.1-temp-feat-swift-openapi-generator-cd4bb716 → 16.7.1-temp-feat-swift-openapi-generator-e6ad5e94

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-cd4bb716",
3
+ "version": "16.7.1-temp-feat-swift-openapi-generator-e6ad5e94",
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",
@@ -21,4 +21,10 @@ swift-openapi-generator \
21
21
 
22
22
  # Copy Package.swift file
23
23
  cp "$(dirname "$0")/Package.swift" "out/$targetId/"
24
- sed -i '' "s/__PROJECT_NAME__/$projectName/" "out/$targetId/Package.swift"
24
+
25
+ # Replace the placeholder in Package.swift with the project name
26
+ if [[ "$(uname -s)" == "Darwin"* ]]; then
27
+ sed -i '' "s/__PROJECT_NAME__/$projectName/" "out/$targetId/Package.swift"
28
+ else
29
+ sed -i "s/__PROJECT_NAME__/$projectName/" "out/$targetId/Package.swift"
30
+ fi