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