smee-client: add v2.0.3 (#46909)

This commit is contained in:
Alec Scott 2024-10-10 17:41:32 -07:00 committed by GitHub
parent 22043617aa
commit edff99aab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,6 +20,7 @@ class SmeeClient(Package):
license("ISC") license("ISC")
version("2.0.3", sha256="98ca658cf3214c5116651f2a788c793bc2fe76543f24ada20e8751fcf1de8e1a")
version("1.2.3", sha256="b9afff843fc7a3c2b5d6659acf45357b5db7a739243b99f6d18a9b110981a328") version("1.2.3", sha256="b9afff843fc7a3c2b5d6659acf45357b5db7a739243b99f6d18a9b110981a328")
depends_on("node-js", type=("build", "link", "run")) depends_on("node-js", type=("build", "link", "run"))
@ -31,6 +32,9 @@ class SmeeClient(Package):
def build(self, spec, prefix): def build(self, spec, prefix):
npm = which("npm", required=True) npm = which("npm", required=True)
# Install node-js dependencies of smee-client
npm("install")
# Allow tsc to fail with typing "errors" which don't affect results # Allow tsc to fail with typing "errors" which don't affect results
output = npm("run", "build", output=str, error=str, fail_on_error=False) output = npm("run", "build", output=str, error=str, fail_on_error=False)
if npm.returncode not in (0, 2): if npm.returncode not in (0, 2):