Skip to content

Commit

Permalink
fix(exports): don't include SSRBase in main barrel file
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Sep 19, 2023
1 parent a72ef63 commit e88af75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 4 additions & 2 deletions scripts/assemble.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 += `\
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 2 additions & 0 deletions src/ssr/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit e88af75

Please sign in to comment.