Skip to content

Commit

Permalink
Initial changes for Vertex GA packaging (#8498)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 authored Sep 23, 2024
1 parent d253484 commit 097bd67
Show file tree
Hide file tree
Showing 10 changed files with 27 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .changeset/large-snakes-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'firebase': major
'@firebase/vertexai': major
---

Release VertexAI in Firebase for general availability.
2 changes: 1 addition & 1 deletion .github/workflows/canary-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
NPM_TOKEN_VERTEXAI_PREVIEW: ${{secrets.NPM_TOKEN_VERTEXAI_PREVIEW}}
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}
NPM_TOKEN_APP_COMPAT: ${{ secrets.NPM_TOKEN_APP_COMPAT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease-manual-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
NPM_TOKEN_VERTEXAI_PREVIEW: ${{secrets.NPM_TOKEN_VERTEXAI_PREVIEW}}
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}
NPM_TOKEN_APP_COMPAT: ${{ secrets.NPM_TOKEN_APP_COMPAT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
NPM_TOKEN_VERTEXAI_PREVIEW: ${{secrets.NPM_TOKEN_VERTEXAI_PREVIEW}}
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}
NPM_TOKEN_APP_COMPAT: ${{ secrets.NPM_TOKEN_APP_COMPAT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
NPM_TOKEN_STORAGE: ${{secrets.NPM_TOKEN_STORAGE}}
NPM_TOKEN_STORAGE_TYPES: ${{secrets.NPM_TOKEN_STORAGE_TYPES}}
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
NPM_TOKEN_VERTEXAI_PREVIEW: ${{secrets.NPM_TOKEN_VERTEXAI_PREVIEW}}
NPM_TOKEN_VERTEXAI: ${{secrets.NPM_TOKEN_VERTEXAI}}
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}
NPM_TOKEN_APP_COMPAT: ${{ secrets.NPM_TOKEN_APP_COMPAT }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## API Report File for "@firebase/vertexai-preview"
## API Report File for "@firebase/vertexai"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
Expand Down
18 changes: 9 additions & 9 deletions packages/firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,17 +215,17 @@
},
"default": "./storage/dist/esm/index.esm.js"
},
"./vertexai-preview": {
"types": "./vertexai-preview/dist/vertexai-preview/index.d.ts",
"./vertexai": {
"types": "./vertexai/dist/vertexai/index.d.ts",
"node": {
"require": "./vertexai-preview/dist/index.cjs.js",
"import": "./vertexai-preview/dist/index.mjs"
"require": "./vertexai/dist/index.cjs.js",
"import": "./vertexai/dist/index.mjs"
},
"browser": {
"require": "./vertexai-preview/dist/index.cjs.js",
"import": "./vertexai-preview/dist/esm/index.esm.js"
"require": "./vertexai/dist/index.cjs.js",
"import": "./vertexai/dist/esm/index.esm.js"
},
"default": "./vertexai-preview/dist/esm/index.esm.js"
"default": "./vertexai/dist/esm/index.esm.js"
},
"./compat/analytics": {
"types": "./compat/analytics/dist/compat/analytics/index.d.ts",
Expand Down Expand Up @@ -413,7 +413,7 @@
"@firebase/app-check": "0.8.8",
"@firebase/app-check-compat": "0.3.15",
"@firebase/util": "1.10.0",
"@firebase/vertexai-preview": "0.0.4"
"@firebase/vertexai": "0.0.4"
},
"devDependencies": {
"rollup": "2.79.1",
Expand Down Expand Up @@ -446,7 +446,7 @@
"messaging",
"messaging/sw",
"database",
"vertexai-preview"
"vertexai"
],
"typings": "empty.d.ts"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
* limitations under the License.
*/

export * from '@firebase/vertexai-preview';
export * from '@firebase/vertexai';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "firebase/vertexai-preview",
"name": "firebase/vertexai",
"main": "dist/index.cjs.js",
"browser": "dist/esm/index.esm.js",
"module": "dist/esm/index.esm.js",
"typings": "dist/vertexai-preview/index.d.ts"
"typings": "dist/vertexai/index.d.ts"
}
8 changes: 4 additions & 4 deletions packages/vertexai/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@firebase/vertexai-preview",
"name": "@firebase/vertexai",
"version": "0.0.4",
"description": "A Firebase SDK for VertexAI (preview)",
"description": "A Firebase SDK for VertexAI",
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
"engines": {
"node": ">=18.0.0"
Expand All @@ -11,7 +11,7 @@
"module": "dist/esm/index.esm2017.js",
"exports": {
".": {
"types": "./dist/vertexai-preview-public.d.ts",
"types": "./dist/vertexai-public.d.ts",
"node": {
"require": "./dist/index.cjs.js",
"import": "./dist/esm/index.esm2017.js"
Expand Down Expand Up @@ -40,7 +40,7 @@
"test:skip-clone": "karma start",
"test:browser": "yarn testsetup && karma start",
"api-report": "api-extractor run --local --verbose",
"typings:public": "node ../../scripts/build/use_typings.js ./dist/vertexai-preview-public.d.ts",
"typings:public": "node ../../scripts/build/use_typings.js ./dist/vertexai-public.d.ts",
"trusted-type-check": "tsec -p tsconfig.json --noEmit"
},
"peerDependencies": {
Expand Down

0 comments on commit 097bd67

Please sign in to comment.