Skip to content

Commit

Permalink
Merge pull request #1983 from Hyperkid123/update-pf-overrides
Browse files Browse the repository at this point in the history
Add PF transform wizard overrides
  • Loading branch information
Hyperkid123 authored Mar 13, 2024
2 parents 109b920 + 7ef42f4 commit 90b6169
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/tsc-transform-imports/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function getPossibleLocations(roots: string[], nameBinding: string) {
function getModuleExplicitLocation(roots: string[], relativePath: string) {
const defaultLocation = roots
.map((root) => {
return glob.sync(`${root}/dist/dynamic/**/${relativePath}`);
return glob.sync(`${root}/dist/dynamic/**/${relativePath}`).filter(filterNonStableLocation);
})
.find((r) => r.length > 0)?.[0]
?.split('/dynamic/')
Expand Down Expand Up @@ -102,6 +102,10 @@ if (CORE_DIRECTORIES.length > 0) {
isValidDate: getModuleExplicitLocation(CORE_DIRECTORIES, 'helpers/datetimeUtils'),
ValidatedOptions: getModuleExplicitLocation(CORE_DIRECTORIES, 'helpers/constants'),
capitalize: getModuleExplicitLocation(CORE_DIRECTORIES, 'helpers/util'),
WizardFooterWrapper: getModuleExplicitLocation(CORE_DIRECTORIES, 'components/Wizard'),
WizardFooter: getModuleExplicitLocation(CORE_DIRECTORIES, 'components/Wizard'),
WizardContextProvider: getModuleExplicitLocation(CORE_DIRECTORIES, 'components/Wizard'),
useWizardContext: getModuleExplicitLocation(CORE_DIRECTORIES, 'components/Wizard'),
};
}

Expand Down

0 comments on commit 90b6169

Please sign in to comment.