Skip to content

Conversation

@danez
Copy link
Contributor

@danez danez commented Feb 9, 2023

This fixes a regression of #4819

In the migration to TS I missed that the frameworks return by list() have a specific order. The order is defined in the variable FRAMEWORK_NAMES.

So instead of using glob() to find a all json files I reverted to used the FRAMEWORK_NAMES list.

For this I had to rearrange some stuff, because in the JavaScript file that generates the list of frameworks we cannot import TypeScript files.


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code 🧑‍💻. This ensures
    we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or
    something that`s on fire 🔥 (e.g. incident related), you can skip this step.
  • Read the contribution guidelines 📖. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) 🧪
  • Update or add documentation (if features were changed or added) 📝
  • Make sure the status checks below are successful ✅

A picture of a cute animal (not mandatory, but encouraged)

@danez danez self-assigned this Feb 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2023

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

"name": "vuepress",
"version": "4.5.6",
"name": "@vue/cli-service",
"version": "1.2.3",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an example of what was wrong, vuepress, should be returned first, before vue.

"build:browser": "run-s build:browser:*",
"build:browser:core": "vite build",
"build:browser:site-root": "cpy index.html ./dist",
"pretest": "run-s prebuild",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

when running npm test locally ensure that the generated files are up2date. We do not need to run the whole build before the test, but only the file generation

@danez danez enabled auto-merge (squash) February 9, 2023 11:32
@danez danez merged commit 45c0cf2 into main Feb 9, 2023
@danez danez deleted the fi-order branch February 9, 2023 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants