Skip to content

fix: prevent deletion of app-shell-imports by frontend cleanup task (#24118) (CP: 25.0)#24127

Open
mcollovati wants to merge 1 commit into25.0from
cherry/cherrypick-24118-to-25.0
Open

fix: prevent deletion of app-shell-imports by frontend cleanup task (#24118) (CP: 25.0)#24127
mcollovati wants to merge 1 commit into25.0from
cherry/cherrypick-24118-to-25.0

Conversation

@mcollovati
Copy link
Copy Markdown
Collaborator

TaskRemoveOldFrontendGeneratedFiles deletes files in the frontend generated folder that are not recognized as known generated files. The app-shell-imports.js and app-shell-imports.d.ts files were missing from the known files list, causing them to be deleted when vaadinPrepareFrontend runs without the index generation task, for example when IntelliJ IDEA triggers a Gradle compilation while the dev server is running with hot deploy.

Add APP_SHELL_IMPORTS_NAME and APP_SHELL_IMPORTS_D_TS_NAME to the known files list. Also improve test coverage by verifying all known file types, including Hilla generated files.

Related to #24108

…24118)

`TaskRemoveOldFrontendGeneratedFiles` deletes files in the frontend
generated folder that are not recognized as known generated files. The
`app-shell-imports.js` and `app-shell-imports.d.ts` files were missing
from the known files list, causing them to be deleted when
`vaadinPrepareFrontend` runs without the index generation task, for
example when IntelliJ IDEA triggers a Gradle compilation while the dev
server is running with hot deploy.

Add `APP_SHELL_IMPORTS_NAME` and `APP_SHELL_IMPORTS_D_TS_NAME` to the
known files list. Also improve test coverage by verifying all known file
types, including Hilla generated files.

Related to #24108
@sonarqubecloud
Copy link
Copy Markdown

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.

1 participant