-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unify non-icon exports in svg/font indices (#693)
* Unify non-icon exports in svg/font indices * Fix for discrepancy in file location * Fix typo
- Loading branch information
Showing
3 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = function addRexportsToIndex(indexContents, rootPath = `.`) { | ||
indexContents.push(`export { FluentIconsProps } from \'${rootPath}/utils/FluentIconsProps.types\'`); | ||
indexContents.push(`export { default as wrapIcon } from \'${rootPath}/utils/wrapIcon\'`); | ||
indexContents.push(`export { default as bundleIcon } from \'${rootPath}/utils/bundleIcon\'`); | ||
indexContents.push(`export { createFluentIcon } from \'${rootPath}/utils/createFluentIcon\'`); | ||
indexContents.push(`export { createFluentFontIcon } from \'${rootPath}/utils/fonts/createFluentFontIcon\'`); | ||
indexContents.push(`export type { FluentIcon } from \'${rootPath}/utils/createFluentIcon\'`); | ||
indexContents.push(`export * from \'${rootPath}/utils/useIconState\'`); | ||
indexContents.push(`export * from \'${rootPath}/utils/constants\'`); | ||
indexContents.push(`export { IconDirectionContextProvider, useIconContext } from \'${rootPath}/contexts/index\'`); | ||
indexContents.push(`export type { IconDirectionContextValue } from \'${rootPath}/contexts/index\'`); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters