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: add included read file sync #509

Merged
merged 1 commit into from
Sep 17, 2024
Merged

Conversation

makamekm
Copy link
Contributor

No description provided.

makamekm

This comment was marked as outdated.

`{% included (${includedRelativePath}) %}\n${includeContent}\n{% endincluded %}`,
);
if (included) {
const content = contentProcessed ?? readFileSync(targetDestPath, 'utf8');
Copy link
Contributor

Choose a reason for hiding this comment

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

copyFile do not return anything
https://github.com/diplodoc-platform/cli/blob/9ad49e878b02cb742dccd8129ee19294d9e35253/src/resolvers/md2md.ts#L80

why not just const content = readFileSync(targetDestPath, 'utf8'); ?

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 implemented for testing purposes

@makamekm makamekm merged commit 8534be2 into master Sep 17, 2024
1 check passed
@makamekm makamekm deleted the add-included-read-file-sync branch September 17, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants