diff --git a/README.md b/README.md index 5ccb77c53..901042db0 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ module.exports = { When using Phosphor Icons in an SSR environment, within a React Server Component, or in any environment that does not permit the use of the Context API ([Next.js](https://nextjs.org/) Server Component, for example), import icons from the `/dist/ssr` submodule: ```tsx -import { FishIcon } from "@phosphor-icons/react/dist/ssr"; +import { FishIcon } from "@phosphor-icons/react/ssr"; const MyServerComponent = () => { return ; diff --git a/package.json b/package.json index a32d5b66f..029163e3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@phosphor-icons/react", - "version": "2.1.9", + "version": "2.1.10", "description": "A clean and friendly icon family for React", "type": "module", "author": { @@ -36,11 +36,21 @@ "types": "./dist/lib/*.d.ts", "require": "./dist/index.cjs.js" }, + "./lib": { + "import": "./dist/lib/index.es.js", + "types": "./dist/lib/index.d.ts", + "require": "./dist/index.cjs.js" + }, "./dist/ssr": { "import": "./dist/ssr/index.es.js", "types": "./dist/ssr/index.d.ts", "require": "./dist/index.cjs.js" }, + "./ssr": { + "import": "./dist/ssr/index.es.js", + "types": "./dist/ssr/index.d.ts", + "require": "./dist/index.cjs.js" + }, "./dist/ssr/*": { "import": "./dist/ssr/*.es.js", "types": "./dist/ssr/*.d.ts",