separated packages

This commit is contained in:
Luke Hagar
2023-04-19 21:48:19 -05:00
parent 87bb486f1f
commit 7fd2b4ceda
3 changed files with 22 additions and 7 deletions

View File

@@ -53,13 +53,29 @@ jobs:
- name: Update config files with new version
id: updateVersion
run: |
yq -i '.npmVersion = "${{ github.event.inputs.version }}"' config.yaml
yq -i '.npmVersion = "${{ github.event.inputs.version }}"' sdk-resources/plexjs-config.yaml
yq -i '.npmVersion = "${{ github.event.inputs.version }}"' sdk-resources/plextv-config.yaml
## Update package.json file with new version
- name: Update package.json version
id: updatePackageJsonVersion
if: steps.updateVersion.outcome == 'success'
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
cd plexjs
jq '.version = "${{ github.event.inputs.version }}"' package.json > package.json.tmp && mv package.json.tmp package.json
- name: Build TS SDK
id: buildTS
run: |
rm -rf plexjs/
java -jar openapi-generator-cli.jar generate -i api-specs/referenced/plex-api-spec.yaml -g typescript-axios -o plexjs/ --global-property skipFormModel=false --config config.yaml
rm -rf plexjs/pms
java -jar openapi-generator-cli.jar generate -i api-specs/pms/pms-spec.yaml -g typescript-axios -o plexjs/pms --global-property skipFormModel=false --config sdk-resources/pms-config.yaml
- name: Build TS SDK
id: buildTS
run: |
rm -rf plexjs/plextv
java -jar openapi-generator-cli.jar generate -i api-specs/plextv/plextv-spec.yaml -g typescript-axios -o plexjs/plextv --global-property skipFormModel=false --config sdk-resources/plextv-config.yaml
- name: After SDK Build
id: buildSDK

View File

@@ -12,7 +12,6 @@
* Do not edit the class manually.
*/
export * from "./api";
export {Configuration, ConfigurationParameters} from "./configuration";
export * from "./plextv/api";
export * from "./pms/api";
export { Configuration, ConfigurationParameters } from "./configuration";