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

fix(core): take output.indexFiles setting into account #1770

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AllieJonsson
Copy link
Contributor

Status

READY

Description

Fixes #1769
It appears only split-tags mode checked the indexFiles flag, but not anymore!
The linked PR below fixed this issue for mock imports for split-tags, but the change is necessary for all modes, both mock imports and regular imports.

Related PRs

List related PRs against other branches:

branch PR
AlmarAubel:fix-mock-import-indexFiles link

Todos

  • Tests
  • Documentation
  • Changelog Entry (unreleased)

Copy link
Member

@soartec-lab soartec-lab left a comment

Choose a reason for hiding this comment

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

Thank you for your response. I have requested one minor correction.

tests/configs/fetch.config.ts Outdated Show resolved Hide resolved
Copy link
Member

@soartec-lab soartec-lab left a comment

Choose a reason for hiding this comment

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

@AllieJonsson

Thanks!
I added a comment for refactoring.

@@ -132,3 +138,15 @@ export const writeSingleMode = async ({
throw `Oups... 🍻. An Error occurred while writing file => ${e}`;
}
};

const generateImports = (
Copy link
Member

@soartec-lab soartec-lab Dec 28, 2024

Choose a reason for hiding this comment

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

This functionality is currently in split-tags, but should be common since it is used in all modes.
You can create a file like generate-imports-for-builder in the same directory.
There is already a function with the same name in utils, so I want to name the function  generateImportsForBuilder to avoid confusion.

@soartec-lab soartec-lab self-assigned this Dec 28, 2024
@soartec-lab soartec-lab added the enhancement New feature or request label Dec 28, 2024
@soartec-lab soartec-lab added this to the 7.3.1 milestone Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mode single, tags and split generates code that assumes indexFiles is set to true
3 participants