Remove unneeded references

This commit is contained in:
Ryan Cavanaugh
2016-05-10 12:22:25 -07:00
parent 50387d4046
commit e808e8e062
1168 changed files with 1308 additions and 1317 deletions

View File

@@ -41,7 +41,11 @@ function checkDir(home: string, count: number) {
return;
}
const testFile = files.filter(f => f.toLowerCase().indexOf('-tests.ts') > 0)[0];
/*
let testFile = path.join(dir, path.basename(dir) + '-tests.ts');
if (!fs.existsSync(testFile)) {
testFile = files.filter(f => f.toLowerCase().indexOf('-tests.ts') > 0)[0];
}
if (testFile) {
old['files'] = ['index.d.ts', testFile];
} else {
@@ -50,6 +54,9 @@ function checkDir(home: string, count: number) {
if (entryPoint !== 'index.d.ts') {
fs.rename(path.join(dir, entryPoint), path.join(dir, 'index.d.ts'));
}
*/
old['compilerOptions']['noEmit'] = true;
fs.writeFileSync(target, JSON.stringify(old, undefined, 4));
console.log('Write to ' + target);