From 773f6643cedafd5f232592e2aea56a73b12c0f95 Mon Sep 17 00:00:00 2001 From: Taylor Jones Date: Thu, 10 Nov 2022 20:13:39 -0600 Subject: [PATCH] fix(typescript): provide .d.ts files at the root --- packages/react/src/components/Button/index.js | 3 ++- packages/react/src/components/ButtonSet/index.js | 3 ++- packages/react/src/components/ComboBox/index.js | 4 ++-- packages/react/src/components/DatePicker/index.js | 3 ++- packages/react/src/components/FluidComboBox/index.js | 5 ++--- packages/react/src/components/FluidDatePicker/index.js | 5 ++--- packages/react/src/{index.js => index.ts} | 0 7 files changed, 12 insertions(+), 11 deletions(-) rename packages/react/src/{index.js => index.ts} (100%) diff --git a/packages/react/src/components/Button/index.js b/packages/react/src/components/Button/index.js index 9dbd0aabdb56..b726422eefef 100644 --- a/packages/react/src/components/Button/index.js +++ b/packages/react/src/components/Button/index.js @@ -6,4 +6,5 @@ */ export { default as ButtonSkeleton } from './Button.Skeleton'; -export default from './Button'; +import Button from './Button'; +export default Button; diff --git a/packages/react/src/components/ButtonSet/index.js b/packages/react/src/components/ButtonSet/index.js index c25ef0671462..06b08c9f83ad 100644 --- a/packages/react/src/components/ButtonSet/index.js +++ b/packages/react/src/components/ButtonSet/index.js @@ -5,4 +5,5 @@ * LICENSE file in the root directory of this source tree. */ -export default from './ButtonSet'; +import ButtonSet from './ButtonSet'; +export default ButtonSet; diff --git a/packages/react/src/components/ComboBox/index.js b/packages/react/src/components/ComboBox/index.js index 9fce25724764..2a73ea8e32f4 100644 --- a/packages/react/src/components/ComboBox/index.js +++ b/packages/react/src/components/ComboBox/index.js @@ -4,5 +4,5 @@ * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ - -export default from './ComboBox'; +import ComboBox from './ComboBox'; +export default ComboBox; diff --git a/packages/react/src/components/DatePicker/index.js b/packages/react/src/components/DatePicker/index.js index 29aeef64d08b..e4f1a9717de1 100644 --- a/packages/react/src/components/DatePicker/index.js +++ b/packages/react/src/components/DatePicker/index.js @@ -5,4 +5,5 @@ * LICENSE file in the root directory of this source tree. */ export { default as DatePickerSkeleton } from './DatePicker.Skeleton'; -export default from './DatePicker'; +import DatePicker from './DatePicker'; +export default DatePicker; diff --git a/packages/react/src/components/FluidComboBox/index.js b/packages/react/src/components/FluidComboBox/index.js index 6dc7cb7a7ecb..d41986a4e958 100644 --- a/packages/react/src/components/FluidComboBox/index.js +++ b/packages/react/src/components/FluidComboBox/index.js @@ -4,7 +4,6 @@ * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ - -export default from './FluidComboBox'; -export FluidComboBox from './FluidComboBox'; +import FluidComboBox from './FluidComboBox'; +export default FluidComboBox; export { default as FluidComboBoxSkeleton } from './FluidComboBox.Skeleton'; diff --git a/packages/react/src/components/FluidDatePicker/index.js b/packages/react/src/components/FluidDatePicker/index.js index 4b3107e9f0d0..bc6cecc687e1 100644 --- a/packages/react/src/components/FluidDatePicker/index.js +++ b/packages/react/src/components/FluidDatePicker/index.js @@ -5,7 +5,6 @@ * LICENSE file in the root directory of this source tree. */ -export default from './FluidDatePicker'; -export FluidDatePicker from './FluidDatePicker'; - +import FluidDatePicker from './FluidDatePicker'; +export default FluidDatePicker; export { default as FluidDatePickerSkeleton } from './FluidDatePicker.Skeleton'; diff --git a/packages/react/src/index.js b/packages/react/src/index.ts similarity index 100% rename from packages/react/src/index.js rename to packages/react/src/index.ts