Add typings support to d.ts package

PiperOrigin-RevId: 488519074
This commit is contained in:
Sebastian Schmidt 2022-11-14 18:08:29 -08:00 committed by Copybara-Service
parent f16e63694e
commit 9bd8b432c3
2 changed files with 4 additions and 0 deletions

View File

@ -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 = [

View File

@ -12,6 +12,7 @@
},
"author": "mediapipe@google.com",
"license": "Apache-2.0",
"types": "__TYPES__",
"dependencies": {
"google-protobuf": "^3.21.2"
},