Skip to content

Commit 3cb5f1b

Browse files
authored
fix(angular): Version registration in prod
2 parents caa1c8d + d8db30a commit 3cb5f1b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"prepare": "pnpm run build",
1919
"build": "pnpm run build:logos && ng-packagr -p ng-package.json",
2020
"build:logos": "tsx generate-logos.ts",
21-
"test": "jest",
21+
"test": "jest --silent",
2222
"publish:tags": "sh -c 'TAG=\"${npm_package_name}@${npm_package_version}\"; git tag --list \"$TAG\" | grep . || git tag \"$TAG\"; git push origin \"$TAG\"'",
2323
"release": "pnpm pack --pack-destination ../../releases/"
2424
},

packages/angular/src/public-api.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
import { isDevMode } from "@angular/core";
18+
import { registerFramework } from "@firebase-ui/core";
19+
1720
export { EmailLinkAuthFormComponent } from "./lib/auth/forms/email-link-auth-form/email-link-auth-form.component";
1821
export { ForgotPasswordAuthFormComponent } from "./lib/auth/forms/forgot-password-auth-form/forgot-password-auth-form.component";
1922
export { PhoneAuthFormComponent } from "./lib/auth/forms/phone-auth-form/phone-auth-form.component";
@@ -44,3 +47,8 @@ export { ContentComponent } from "./lib/components/content/content.component";
4447

4548
// Provider
4649
export * from "./lib/provider";
50+
51+
if (!isDevMode()) {
52+
const pkgJson = require("../package.json");
53+
registerFramework("angular", pkgJson.version);
54+
}

0 commit comments

Comments
 (0)