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" },