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 = { substitutions = {
"__NAME__": "audio", "__NAME__": "audio",
"__DESCRIPTION__": "MediaPipe Audio Tasks", "__DESCRIPTION__": "MediaPipe Audio Tasks",
"__TYPES__": "audio.d.ts",
}, },
tgz = "audio.tgz", tgz = "audio.tgz",
deps = [ deps = [
@ -117,6 +118,7 @@ pkg_npm(
substitutions = { substitutions = {
"__NAME__": "text", "__NAME__": "text",
"__DESCRIPTION__": "MediaPipe Text Tasks", "__DESCRIPTION__": "MediaPipe Text Tasks",
"__TYPES__": "text.d.ts",
}, },
tgz = "text.tgz", tgz = "text.tgz",
deps = [ deps = [
@ -171,6 +173,7 @@ pkg_npm(
substitutions = { substitutions = {
"__NAME__": "vision", "__NAME__": "vision",
"__DESCRIPTION__": "MediaPipe Vision Tasks", "__DESCRIPTION__": "MediaPipe Vision Tasks",
"__TYPES__": "vision.d.ts",
}, },
tgz = "vision_pkg.tgz", tgz = "vision_pkg.tgz",
deps = [ deps = [

View File

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