Skip to content

Commit

Permalink
Fix typings issue (#8256)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored May 21, 2024
1 parent 7381f21 commit 3883133
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/empty-windows-push.md
Original file line number Diff line number Diff line change
@@ -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.
5 changes: 3 additions & 2 deletions packages/vertexai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit 3883133

Please sign in to comment.