mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-13 12:29:42 +02:00
Add generated file to git
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { remark } from 'remark';
|
import { remark } from 'remark';
|
||||||
import type { Code, Root } from 'mdast';
|
import type { Code, Root } from 'mdast';
|
||||||
import { readFileSync, writeFileSync, mkdirSync, copyFileSync, existsSync } from 'fs';
|
import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'fs';
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import flatmap from 'unist-util-flatmap';
|
import flatmap from 'unist-util-flatmap';
|
||||||
import { globby } from 'globby';
|
import { globby } from 'globby';
|
||||||
@@ -61,8 +61,7 @@ const transform = (file: string) => {
|
|||||||
verifyAndCopy(file);
|
verifyAndCopy(file);
|
||||||
});
|
});
|
||||||
if (fileChanged) {
|
if (fileChanged) {
|
||||||
console.log('Please commit the changes to the docs folder');
|
console.log('Committing changes to the docs folder');
|
||||||
exec('git add docs');
|
exec('git add docs');
|
||||||
// process.exit(0);
|
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
Reference in New Issue
Block a user