From 42ecf2efc30d299f3866b567dc3848bea9602e44 Mon Sep 17 00:00:00 2001 From: sycombs Date: Tue, 28 Nov 2023 13:04:30 -0600 Subject: [PATCH] index.js exports --- packages/terra-folder-tree/package.json | 2 +- packages/terra-folder-tree/src/FolderTree.jsx | 1 - packages/terra-folder-tree/src/index.js | 5 +++++ 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 packages/terra-folder-tree/src/index.js diff --git a/packages/terra-folder-tree/package.json b/packages/terra-folder-tree/package.json index f8a70ede31d..47cf9066e0c 100644 --- a/packages/terra-folder-tree/package.json +++ b/packages/terra-folder-tree/package.json @@ -1,6 +1,6 @@ { "name": "terra-folder-tree", - "main": "lib/FolderTree.js", + "main": "lib/index.js", "version": "1.0.0-alpha.1", "description": "Terra Folder Tree is a vertical menu that displays files and folders in a hierarchical tree structure.", "repository": { diff --git a/packages/terra-folder-tree/src/FolderTree.jsx b/packages/terra-folder-tree/src/FolderTree.jsx index 5cf173da0fc..6f157016a6c 100644 --- a/packages/terra-folder-tree/src/FolderTree.jsx +++ b/packages/terra-folder-tree/src/FolderTree.jsx @@ -46,5 +46,4 @@ const FolderTree = ({ children, title, headerLevel }) => ( FolderTree.propTypes = propTypes; FolderTree.defaultProps = defaultProps; -FolderTree.Item = FolderTreeItem; export default FolderTree; diff --git a/packages/terra-folder-tree/src/index.js b/packages/terra-folder-tree/src/index.js new file mode 100644 index 00000000000..83b8f39f8d4 --- /dev/null +++ b/packages/terra-folder-tree/src/index.js @@ -0,0 +1,5 @@ +import FolderTree from './FolderTree'; +import FolderTreeItem from './subcomponents/FolderTreeItem'; + +FolderTree.Item = FolderTreeItem; +export default FolderTree;