mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-27 22:49:20 +08:00
Remove unneeded references
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user