From 5a43857f0eb0b20fae674bb16d62ae34636741fb Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Tue, 21 May 2024 12:19:29 -0700 Subject: [PATCH] Fix typings issue --- .changeset/empty-windows-push.md | 5 +++++ packages/vertexai/package.json | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .changeset/empty-windows-push.md diff --git a/.changeset/empty-windows-push.md b/.changeset/empty-windows-push.md new file mode 100644 index 00000000000..b6c64f14cca --- /dev/null +++ b/.changeset/empty-windows-push.md @@ -0,0 +1,5 @@ +--- +'@firebase/vertexai-preview': patch +--- + +Change `types` paths to point to rolled-up public `d.ts` files. This fixes some TypeScript compiler errors users are seeing. diff --git a/packages/vertexai/package.json b/packages/vertexai/package.json index ccf4fcca84e..05d4ffd85fb 100644 --- a/packages/vertexai/package.json +++ b/packages/vertexai/package.json @@ -11,7 +11,7 @@ "module": "dist/esm/index.esm2017.js", "exports": { ".": { - "types": "./dist/src/index.d.ts", + "types": "./dist/vertexai-preview-public.d.ts", "node": { "require": "./dist/index.cjs.js", "import": "./dist/esm/index.esm2017.js" @@ -37,7 +37,8 @@ "test": "run-p --npm-path npm lint test:browser", "test:ci": "yarn testsetup && node ../../scripts/run_tests_in_ci.js -s test", "test:browser": "yarn testsetup && karma start --single-run", - "api-report": "api-extractor run --local --verbose" + "api-report": "api-extractor run --local --verbose", + "typings:public": "node ../../scripts/build/use_typings.js ./dist/vertexai-preview-public.d.ts" }, "peerDependencies": { "@firebase/app": "0.x",