Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated typings from obs-websocket 5.0.2 #308

Merged
merged 3 commits into from
Nov 13, 2022

Conversation

dangmai
Copy link
Contributor

@dangmai dangmai commented Oct 13, 2022

Related Issue (if applicable):

#300

Description:

Currently the generate:obs-types NPM run script cannot be successfully run, because the latest release from obs-websocket maps to tag_name 4.9.1-compat which is not a correct commit (and also not the latest non-deprecated version).

In this PR I add the ability to specify a custom commit that we can base the typings off of (using environment variable GH_COMMIT). Then I use commit 5716577019b1ccda01a12db2cba35a023082b7ad which maps to version 5.0.2 in order to generate the updated typings.

Without the GH_COMMIT variable, the old behavior is kept so that later releases from obs-websocket will (hopefully) be automatically picked up.

dangmai and others added 3 commits October 13, 2022 15:09
example: `npm run generate:obs-types master` = `GH_COMMIT=master npm run generate:obs-types`
@t2t2
Copy link
Collaborator

t2t2 commented Nov 13, 2022

Added ability to pass the commit via argv too, a bit easier on windows and GH_COMMIT can be a bit ambiguous (obs-ws-js commit name?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants