Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/nextjs-ssr/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"deploy": "pnpm run build && firebase deploy --only hosting:fir-ui-rework-nextjs-ssr"
},
"dependencies": {
"@invertase/firebaseui-react": "latest",
"@invertase/firebaseui-core": "latest",
"@invertase/firebaseui-styles": "latest",
"@invertase/firebaseui-translations": "latest",
"@invertase/firebaseui-react": "workspace:*",
"@invertase/firebaseui-core": "workspace:*",
"@invertase/firebaseui-styles": "workspace:*",
"@invertase/firebaseui-translations": "workspace:*",
"firebase": "^11.10.0",
"next": "15.1.7",
"react": "19.1.1",
Expand Down
8 changes: 4 additions & 4 deletions examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"deploy": "pnpm run build && firebase deploy --only hosting:fir-ui-rework-nextjs-ssg"
},
"dependencies": {
"@invertase/firebaseui-react": "latest",
"@invertase/firebaseui-core": "latest",
"@invertase/firebaseui-styles": "latest",
"@invertase/firebaseui-translations": "latest",
"@invertase/firebaseui-react": "workspace:*",
"@invertase/firebaseui-core": "workspace:*",
"@invertase/firebaseui-styles": "workspace:*",
"@invertase/firebaseui-translations": "workspace:*",
"firebase": "catalog:",
"next": "15.1.7",
"react": "catalog:",
Expand Down
8 changes: 4 additions & 4 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"deploy": "pnpm run build && firebase deploy --only hosting:fir-ui-2025-react"
},
"dependencies": {
"@invertase/firebaseui-react": "latest",
"@invertase/firebaseui-core": "latest",
"@invertase/firebaseui-styles": "latest",
"@invertase/firebaseui-translations": "latest",
"@invertase/firebaseui-react": "workspace:*",
"@invertase/firebaseui-core": "workspace:*",
"@invertase/firebaseui-styles": "workspace:*",
"@invertase/firebaseui-translations": "workspace:*",
"firebase": "^11.6.0",
"react": "catalog:",
"react-dom": "catalog:",
Expand Down
2 changes: 1 addition & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@invertase/firebaseui-angular",
"version": "0.0.4",
"version": "0.0.5",
"files": [
"dist"
],
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@invertase/firebaseui-core",
"version": "0.0.10",
"version": "0.0.11",
"description": "Core authentication service for Firebase UI",
"type": "module",
"main": "./dist/index.cjs",
Expand All @@ -21,7 +21,7 @@
"scripts": {
"prepare": "pnpm run build",
"emulators:start": "firebase emulators:start -P demo-firebaseui",
"build": "tsup",
"build": "tsup --env.PROD=true",
"build:local": "pnpm run build && pnpm pack",
"dev": "tsup --watch",
"lint": "eslint . --ext .ts",
Expand Down
19 changes: 2 additions & 17 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,6 @@ export * from "./register-framework";
export * from "./schemas";
export * from "./translations";

// Detect production mode across different build systems (Vite, webpack/Next.js, etc.)
const isDevelopment = typeof process !== "undefined" && process.env.NODE_ENV === "production";

const isViteProduction =
typeof import.meta !== "undefined" &&
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(import.meta as any)?.env &&
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(import.meta as any).env.PROD === true;

// Check if in production mode
const isProduction = isDevelopment || isViteProduction;

if (isProduction) {
// Extract framework name from package name (e.g., "@invertase/firebaseui-react" -> "react")
const frameworkName = pkgJson.name.replace("@invertase/firebaseui-", "");
registerFramework(frameworkName, pkgJson.version);
if (import.meta.env.PROD) {
registerFramework("core", pkgJson.version);
}
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@invertase/firebaseui-react",
"version": "0.0.9",
"version": "0.0.10",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
Expand All @@ -17,7 +17,7 @@
],
"scripts": {
"prepare": "pnpm run build",
"build": "tsup && pnpm run build:logos",
"build": "tsup --env.PROD=true && pnpm run build:logos",
"build:local": "pnpm run build && pnpm pack",
"build:logos": "pnpm dlx @svgr/cli --icon --typescript --no-index --jsx-runtime automatic --out-dir src/components/logos ../core/brands",
"dev": "tsup --watch",
Expand Down
19 changes: 2 additions & 17 deletions packages/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@ export { PolicyContext } from "./components/policies";
export { FirebaseUIProvider, type FirebaseUIProviderProps } from "./context";
export * from "./hooks";

// Detect production mode across different build systems (Vite, webpack/Next.js, etc.)
const isNodeProduction = typeof process !== "undefined" && process.env.NODE_ENV === "production";

const isViteProduction =
typeof import.meta !== "undefined" &&
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(import.meta as any)?.env &&
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(import.meta as any).env.PROD === true;

// Check if in production mode
const isProduction = isNodeProduction || isViteProduction;

if (isProduction) {
// Extract framework name from package name (e.g., "@invertase/firebaseui-react" -> "react")
const frameworkName = pkgJson.name.replace("@invertase/firebaseui-", "");
registerFramework(frameworkName, pkgJson.version);
if (import.meta.env.PROD) {
registerFramework("react", pkgJson.version);
}
2 changes: 1 addition & 1 deletion packages/styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@invertase/firebaseui-styles",
"version": "0.0.12",
"version": "0.0.13",
"type": "module",
"zshy": {
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/translations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@invertase/firebaseui-translations",
"version": "0.0.7",
"version": "0.0.8",
"description": "Translations for Firebase UI",
"type": "module",
"main": "./dist/index.cjs",
Expand Down
102 changes: 24 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.