Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
change src layout to export protobufs
Browse files Browse the repository at this point in the history
  • Loading branch information
balins committed Apr 24, 2024
1 parent 7bf1896 commit 5f20b54
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 25 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,5 @@ jobs:
- name: Check typing
run: npm run build:check

# TODO: uncomment once '[warning] RequestArgs, defined in ./src/base.ts, is referenced by
# HealthApiAxiosParamCreator.HealthApiAxiosParamCreator.__type.healthcheck.__type.__type but not included
# in the documentation.' warning gets resolved
# - name: Check docs
# run: npm run docs:check
- name: Check docs
run: npm run docs
2 changes: 1 addition & 1 deletion codegen/openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ cd $ROOTDIR \
&& npx openapi-generator-cli generate \
-i https://raw.githubusercontent.com/jellyfish-dev/jellyfish/$1/openapi.yaml \
-g typescript-axios \
-o src
-o src/openapi
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
"dist"
],
"exports": {
".": "./dist/index.js"
".": "./dist/index.js",
"./server-notifications": "./dist/protos/jellyfish/server_notifications.js"
},
"scripts": {
"build": "tsc",
"build:check": "tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check .",
"docs": "typedoc src",
"docs:check": "typedoc src --treatWarningsAsErrors",
"gen:proto": "sh codegen/protobuf.sh",
"gen:api": "sh codegen/openapi.sh"
},
Expand Down
21 changes: 4 additions & 17 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfish Media Server
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.4.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export * from "./api";
export * from "./configuration";
export * from "./openapi";

// HACK (?): We want to export server notifications as a sub-package, but still be accessible
// from the parent package's documentation.
export type * from "./protos/jellyfish/server_notifications";
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.gitignore
.npmignore
.openapi-generator-ignore
api.ts
base.ts
common.ts
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions src/openapi/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* tslint:disable */
/* eslint-disable */
/**
* Jellyfish Media Server
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.4.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export * from "./api";
export * from "./configuration";

0 comments on commit 5f20b54

Please sign in to comment.