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

UI: Fix the order of addons appearing in prebuilt manager #18918

Merged
merged 8 commits into from
Aug 12, 2022

Conversation

ndelangen
Copy link
Member

The addons did not appear in the same order as before, meaning the order in which they are defined in the user's main.ts.

I discovered the reason why:
When I have esbuild write to the file-system, and then read the file-system... The order in which I get them when I read isn't the same as when I wrote.

I changed the behavior to have esbuild NOT write the files to the file-system, when doing so the return value of esbuild contains a outputFiles property. (it does not contain this property when you configure it to write files).

This array of files is in the proper order and contains the correct path.

@shilman shilman changed the title fix the order of addons appearing with prebuild-manager UI: Fix the order of addons appearing with prebuild-manager Aug 12, 2022
@shilman shilman changed the title UI: Fix the order of addons appearing with prebuild-manager UI: Fix the order of addons appearing in prebuilt manager Aug 12, 2022
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small request

code/lib/builder-manager/src/index.ts Outdated Show resolved Hide resolved
@ndelangen ndelangen requested a review from shilman August 12, 2022 12:06
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix typo

code/lib/builder-manager/src/index.ts Outdated Show resolved Hide resolved
code/lib/builder-manager/src/index.ts Outdated Show resolved Hide resolved
code/lib/builder-manager/src/index.ts Outdated Show resolved Hide resolved
code/lib/builder-manager/src/utils/files.ts Outdated Show resolved Hide resolved
@shilman shilman added the ui label Aug 12, 2022
@ndelangen ndelangen merged commit b9aff1e into next Aug 12, 2022
@ndelangen ndelangen deleted the norbert/sb-501-the-order-of-addon-panels-is-not-the branch August 12, 2022 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants