|
31 | 31 | }, |
32 | 32 | "default": "./dist/react/index.esm.js" |
33 | 33 | }, |
| 34 | + "./angular": { |
| 35 | + "types": "./dist/angular/index-public.d.ts", |
| 36 | + "node": { |
| 37 | + "import": "./dist/angular/index.esm.js", |
| 38 | + "default": "./dist/angular/index.cjs.js" |
| 39 | + }, |
| 40 | + "browser": { |
| 41 | + "require": "./dist/angular/index.cjs.js", |
| 42 | + "import": "./dist/angular/index.esm.js" |
| 43 | + }, |
| 44 | + "default": "./dist/angular/index.esm.js" |
| 45 | + }, |
34 | 46 | "./package.json": "./package.json" |
35 | 47 | }, |
36 | 48 | "files": [ |
|
39 | 51 | "scripts": { |
40 | 52 | "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", |
41 | 53 | "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", |
| 54 | + "build-only": "rollup -c", |
42 | 55 | "build": "rollup -c && yarn api-report", |
43 | 56 | "build:deps": "lerna run --scope @firebase/telemetry --include-dependencies build", |
44 | 57 | "dev": "rollup -c -w", |
45 | 58 | "test": "run-p --npm-path npm lint test:all", |
46 | 59 | "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", |
47 | 60 | "test:all": "run-p --npm-path npm test:browser test:node", |
48 | 61 | "test:browser": "karma start", |
49 | | - "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha **/*.test.ts src/**/*.test.ts --config ../../config/mocharc.node.js", |
| 62 | + "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha **/*.test.ts src/**/*.test.ts --exclude src/angular/*.test.ts --config ../../config/mocharc.node.js", |
50 | 63 | "trusted-type-check": "tsec -p tsconfig.json --noEmit", |
51 | | - "api-report": "yarn api-report:main && yarn api-report:react && yarn api-report:api-json", |
| 64 | + "api-report": "yarn api-report:main && yarn api-report:react && yarn api-report:angular && yarn api-report:api-json", |
52 | 65 | "api-report:main": "ts-node-script ../../repo-scripts/prune-dts/extract-public-api.ts --package telemetry --packageRoot . --typescriptDts ./dist/index.d.ts --rollupDts ./dist/private.d.ts --untrimmedRollupDts ./dist/internal.d.ts --publicDts ./dist/index-public.d.ts", |
53 | 66 | "api-report:react": "ts-node-script ../../repo-scripts/prune-dts/extract-public-api.ts --package telemetry-react --packageRoot . --typescriptDts ./dist/react/index.d.ts --rollupDts ./dist/react/private.d.ts --untrimmedRollupDts ./dist/react/internal.d.ts --publicDts ./dist/react/index-public.d.ts", |
| 67 | + "api-report:angular": "ts-node-script ../../repo-scripts/prune-dts/extract-public-api.ts --package telemetry-angular --packageRoot . --typescriptDts ./dist/angular/index.d.ts --rollupDts ./dist/angular/private.d.ts --untrimmedRollupDts ./dist/angular/internal.d.ts --publicDts ./dist/angular/index-public.d.ts", |
54 | 68 | "api-report:api-json": "api-extractor run --local --verbose", |
55 | 69 | "typings:public": "node ../../scripts/build/use_typings.js ./dist/index-public.d.ts" |
56 | 70 | }, |
|
66 | 80 | }, |
67 | 81 | "@types/react": { |
68 | 82 | "optional": true |
| 83 | + }, |
| 84 | + "@angular/core": { |
| 85 | + "optional": true |
| 86 | + }, |
| 87 | + "@angular/router": { |
| 88 | + "optional": true |
69 | 89 | } |
70 | 90 | }, |
71 | 91 | "dependencies": { |
|
82 | 102 | }, |
83 | 103 | "license": "Apache-2.0", |
84 | 104 | "devDependencies": { |
| 105 | + "@angular/common": "19.2.15", |
| 106 | + "@angular/compiler": "19.2.15", |
| 107 | + "@angular/core": "19.2.15", |
| 108 | + "@angular/platform-browser": "19.2.15", |
| 109 | + "@angular/router": "19.2.15", |
85 | 110 | "@firebase/app": "0.14.4", |
86 | 111 | "@opentelemetry/sdk-trace-web": "2.1.0", |
87 | 112 | "@rollup/plugin-json": "6.1.0", |
|
95 | 120 | "rollup-plugin-copy": "3.5.0", |
96 | 121 | "rollup-plugin-replace": "2.2.0", |
97 | 122 | "rollup-plugin-typescript2": "0.36.0", |
98 | | - "typescript": "5.5.4" |
| 123 | + "rxjs": "7.8.2", |
| 124 | + "typescript": "5.5.4", |
| 125 | + "zone.js": "0.15.1" |
99 | 126 | }, |
100 | 127 | "repository": { |
101 | 128 | "directory": "packages/telemetry", |
|
0 commit comments