@rasadov/lumoar-sdk 1.1.1 → 1.1.2
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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/index.ts +1 -0
- package/package.json +1 -1
- package/update.sh +6 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/index.ts
CHANGED
package/package.json
CHANGED
package/update.sh
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
# Get the version type from the command line arg
|
|
5
|
+
version_type=$1
|
|
6
|
+
|
|
3
7
|
# Run openapi cli command
|
|
4
|
-
openapi-generator-cli generate -i http://localhost:8000/openapi.json -g typescript-axios -o .
|
|
8
|
+
openapi-generator-cli generate -i http://localhost:8000/openapi.json -g typescript-axios -o . 2>/dev/null || echo "Error: openapi-generator-cli generate failed"
|
|
5
9
|
|
|
6
10
|
# Add export * from "./sdk" to index.ts
|
|
7
11
|
echo "export * from './sdk';" >> index.ts
|
|
8
12
|
|
|
9
13
|
# Update package version
|
|
10
|
-
npm version
|
|
14
|
+
version=$(npm version $version_type --no-git-tag-version)
|
|
11
15
|
|
|
12
16
|
# Commit changes
|
|
13
17
|
git add .
|