From e88af75a07b808aec1107565f96490f9cd290486 Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Tue, 19 Sep 2023 17:03:28 -0600 Subject: [PATCH] fix(exports): don't include SSRBase in main barrel file --- package.json | 2 +- scripts/assemble.mjs | 6 ++++-- src/index.ts | 3 +-- src/ssr/index.ts | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 4f02144946..284ca9c57d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@phosphor-icons/react", - "version": "2.0.11", + "version": "2.0.12", "description": "A clean and friendly icon family for React", "author": { "name": "Tobias Fried", diff --git a/scripts/assemble.mjs b/scripts/assemble.mjs index 3a94461138..028ec7f676 100644 --- a/scripts/assemble.mjs +++ b/scripts/assemble.mjs @@ -209,13 +209,15 @@ function generateExports() { let csrIndex = `\ /* GENERATED FILE */ export type { Icon, IconProps, IconWeight } from "./lib"; -export { IconContext, IconBase, SSRBase } from "./lib"; +export { IconContext, IconBase } from "./lib"; `; let ssrIndex = `\ /* GENERATED FILE */ - `; +export { default as SSRBase } from "../lib/SSRBase"; + +`; for (let key in icons) { const name = pascalize(key); csrIndex += `\ diff --git a/src/index.ts b/src/index.ts index a10c4d8118..4f80685336 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,7 +1,6 @@ /* GENERATED FILE */ export type { Icon, IconProps, IconWeight } from "./lib"; -export { IconContext, IconBase, SSRBase } from "./lib"; -export * as SSR from "./ssr"; +export { IconContext, IconBase } from "./lib"; export { AddressBook } from "./csr/AddressBook"; export { AirTrafficControl } from "./csr/AirTrafficControl"; diff --git a/src/ssr/index.ts b/src/ssr/index.ts index 06d8260f47..0e4663757b 100644 --- a/src/ssr/index.ts +++ b/src/ssr/index.ts @@ -1,4 +1,6 @@ /* GENERATED FILE */ +export { default as SSRBase } from "../lib/SSRBase"; + export { AddressBook } from "./AddressBook"; export { AirTrafficControl } from "./AirTrafficControl"; export { Airplane } from "./Airplane";