Skip to content

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?)

@t2t2 t2t2 merged commit 1b1b26b into obs-websocket-community-projects:master Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants