From 9bd8b432c3308fb3728ddbadfc2b06dfcf47c250 Mon Sep 17 00:00:00 2001 From: Sebastian Schmidt Date: Mon, 14 Nov 2022 18:08:29 -0800 Subject: [PATCH] Add typings support to d.ts package PiperOrigin-RevId: 488519074 --- mediapipe/tasks/web/BUILD | 3 +++ mediapipe/tasks/web/package.json | 1 + 2 files changed, 4 insertions(+) diff --git a/mediapipe/tasks/web/BUILD b/mediapipe/tasks/web/BUILD index ddc35ab21..b8777e785 100644 --- a/mediapipe/tasks/web/BUILD +++ b/mediapipe/tasks/web/BUILD @@ -63,6 +63,7 @@ pkg_npm( substitutions = { "__NAME__": "audio", "__DESCRIPTION__": "MediaPipe Audio Tasks", + "__TYPES__": "audio.d.ts", }, tgz = "audio.tgz", deps = [ @@ -117,6 +118,7 @@ pkg_npm( substitutions = { "__NAME__": "text", "__DESCRIPTION__": "MediaPipe Text Tasks", + "__TYPES__": "text.d.ts", }, tgz = "text.tgz", deps = [ @@ -171,6 +173,7 @@ pkg_npm( substitutions = { "__NAME__": "vision", "__DESCRIPTION__": "MediaPipe Vision Tasks", + "__TYPES__": "vision.d.ts", }, tgz = "vision_pkg.tgz", deps = [ diff --git a/mediapipe/tasks/web/package.json b/mediapipe/tasks/web/package.json index 5b2dce245..1870f18a6 100644 --- a/mediapipe/tasks/web/package.json +++ b/mediapipe/tasks/web/package.json @@ -12,6 +12,7 @@ }, "author": "mediapipe@google.com", "license": "Apache-2.0", + "types": "__TYPES__", "dependencies": { "google-protobuf": "^3.21.2" },