Skip to content

Commit fca2b18

Browse files
authored
Add telemetry export to firebase package.json (#9218)
1 parent 7cf2abb commit fca2b18

File tree

4 files changed

+48
-10
lines changed

4 files changed

+48
-10
lines changed

packages/firebase/package.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@
2323
"compat/index.d.ts"
2424
],
2525
"exports": {
26+
"./ai": {
27+
"types": "./ai/dist/ai/index.d.ts",
28+
"node": {
29+
"require": "./ai/dist/index.cjs.js",
30+
"import": "./ai/dist/index.mjs"
31+
},
32+
"browser": {
33+
"require": "./ai/dist/index.cjs.js",
34+
"import": "./ai/dist/esm/index.esm.js"
35+
},
36+
"default": "./ai/dist/esm/index.esm.js"
37+
},
2638
"./analytics": {
2739
"types": "./analytics/dist/analytics/index.d.ts",
2840
"node": {
@@ -227,17 +239,17 @@
227239
},
228240
"default": "./storage/dist/esm/index.esm.js"
229241
},
230-
"./ai": {
231-
"types": "./ai/dist/ai/index.d.ts",
242+
"./telemetry": {
243+
"types": "./telemetry/dist/telemetry/index.d.ts",
232244
"node": {
233-
"require": "./ai/dist/index.cjs.js",
234-
"import": "./ai/dist/index.mjs"
245+
"require": "./telemetry/dist/index.cjs.js",
246+
"import": "./telemetry/dist/index.mjs"
235247
},
236248
"browser": {
237-
"require": "./ai/dist/index.cjs.js",
238-
"import": "./ai/dist/esm/index.esm.js"
249+
"require": "./telemetry/dist/index.cjs.js",
250+
"import": "./telemetry/dist/esm/index.esm.js"
239251
},
240-
"default": "./ai/dist/esm/index.esm.js"
252+
"default": "./telemetry/dist/esm/index.esm.js"
241253
},
242254
"./compat/analytics": {
243255
"types": "./compat/analytics/dist/compat/analytics/index.d.ts",
@@ -418,6 +430,7 @@
418430
"@firebase/messaging-compat": "0.2.23",
419431
"@firebase/storage": "0.14.0",
420432
"@firebase/storage-compat": "0.4.0",
433+
"@firebase/telemetry": "0.0.1",
421434
"@firebase/performance": "0.7.9",
422435
"@firebase/performance-compat": "0.2.22",
423436
"@firebase/remote-config": "0.6.6",
@@ -457,6 +470,7 @@
457470
"storage",
458471
"performance",
459472
"remote-config",
473+
"telemetry",
460474
"messaging",
461475
"messaging/sw",
462476
"database",

packages/firebase/telemetry/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2020 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
export * from '@firebase/telemetry';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase/telemetry",
3+
"main": "dist/index.cjs.js",
4+
"browser": "dist/esm/index.esm.js",
5+
"module": "dist/esm/index.esm.js",
6+
"typings": "dist/storage/index.d.ts"
7+
}

packages/telemetry/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
{
22
"name": "@firebase/telemetry",
33
"version": "0.0.1",
4-
"private": true,
54
"description": "The Firebase Web Telemetry package of the Firebase JS SDK",
65
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
76
"main": "dist/index.node.cjs.js",
8-
"browser": "dist/index.esm.js",
97
"module": "dist/index.esm.js",
8+
"browser": "dist/index.esm.js",
109
"exports": {
1110
".": {
1211
"types": "./dist/index.d.ts",
1312
"node": {
1413
"import": "./dist/node-esm/index.node.esm.js",
15-
"require": "./dist/index.node.cjs.js"
14+
"default": "./dist/index.node.cjs.js"
1615
},
1716
"browser": {
1817
"require": "./dist/index.cjs.js",

0 commit comments

Comments
 (0)