Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Restore /preview etc package exports; return unresolved path from presets. #19045

Merged
merged 9 commits into from
Aug 31, 2022
6 changes: 3 additions & 3 deletions code/lib/core-common/src/presets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ export const resolveAddonName = (
const path = name;

// when user provides full path, we don't need to do anything!
const managerFile = r(`${path}/manager`);
const managerFile = r(`${path}/manager`) || r(`${path}/manager.js`);
yannbf marked this conversation as resolved.
Show resolved Hide resolved
const registerFile = r(`${path}/register`) || r(`${path}/register-panel`);
const previewFile = r(`${path}/preview`);
const presetFile = r(`${path}/preset`);
const previewFile = r(`${path}/preview`) || r(`${path}/preview.js`);
const presetFile = r(`${path}/preset`) || r(`${path}/preset.js`);

if (!(managerFile || previewFile) && presetFile) {
return {
Expand Down