This commit is contained in:
2021-06-12 17:48:26 +03:00
commit 3e68914c92
56 changed files with 26153 additions and 0 deletions

View File

@ -0,0 +1,15 @@
const runner = require("ts-prune/lib/runner");
const {ignore} = require('./ignore-files');
const error = [];
runner.run({ project: 'tsconfig.dev.json' }, (text) => {
if (ignore.every(ign => !text.includes(ign))) {
error.push(text);
}
});
setTimeout(() => {
if (error.length) {
throw new Error(`Присутствует не используемый код: \n${error.join('\n')}`);
}
}, 0);