1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-02 12:47:41 +02:00

Tools: Remove .d.ts and .map files from ignored files (not needed anymore)

This commit is contained in:
Laurent Cozic 2023-01-11 18:54:54 +00:00
parent 29e4a335fb
commit 91c3986f88
3 changed files with 14 additions and 3117 deletions

File diff suppressed because it is too large Load Diff

1554
.gitignore vendored

File diff suppressed because it is too large Load Diff

View File

@ -51,19 +51,20 @@ module.exports = {
return `${s.join('.')}.js`; return `${s.join('.')}.js`;
}); });
const ignoredMapFiles = tsFiles.map(f => { // const ignoredMapFiles = tsFiles.map(f => {
const s = f.split('.'); // const s = f.split('.');
s.pop(); // s.pop();
return `${s.join('.')}.js.map`; // return `${s.join('.')}.js.map`;
}); // });
const ignoredDefFiles = tsFiles.map(f => { // const ignoredDefFiles = tsFiles.map(f => {
const s = f.split('.'); // const s = f.split('.');
s.pop(); // s.pop();
return `${s.join('.')}.d.ts`; // return `${s.join('.')}.d.ts`;
}); // });
const ignoredFiles = ignoredJsFiles.concat(ignoredMapFiles).concat(ignoredDefFiles); // const ignoredFiles = ignoredJsFiles.concat(ignoredMapFiles).concat(ignoredDefFiles);
const ignoredFiles = ignoredJsFiles;
ignoredFiles.sort(); ignoredFiles.sort();
const regex = /(# AUTO-GENERATED - EXCLUDED TYPESCRIPT BUILD)[\s\S]*(# AUTO-GENERATED - EXCLUDED TYPESCRIPT BUILD)/; const regex = /(# AUTO-GENERATED - EXCLUDED TYPESCRIPT BUILD)[\s\S]*(# AUTO-GENERATED - EXCLUDED TYPESCRIPT BUILD)/;