mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-12 11:59:39 +02:00
fix: also check other files
This commit is contained in:

parent
d0074356e9
commit
73abcd869c
@@ -207,8 +207,9 @@ const transformHtml = (filename: string) => {
|
|||||||
const otherFiles = await globby([sourceDirGlob, '!**/*.md', '!**/*.html'], {
|
const otherFiles = await globby([sourceDirGlob, '!**/*.md', '!**/*.html'], {
|
||||||
dot: includeFilesStartingWithDot,
|
dot: includeFilesStartingWithDot,
|
||||||
});
|
});
|
||||||
otherFiles.forEach((file) => {
|
otherFiles.forEach((file: string) => {
|
||||||
copyTransformedContents(file);
|
const transformedContents = readSyncedUTF8file(file); // no transformation is done; just get the contents
|
||||||
|
copyTransformedContents(file, transformedContents, !verifyOnly);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (filesWereTransformed) {
|
if (filesWereTransformed) {
|
||||||
|
Reference in New Issue
Block a user