Add typesRoot to all config files

This commit is contained in:
Ryan Cavanaugh
2016-05-09 13:52:25 -07:00
parent 7a47e67dcc
commit ab2b4191c5
1770 changed files with 3756 additions and 1841 deletions

View File

@@ -20,7 +20,7 @@ function checkDir(home: string, count: number) {
fs.exists(target, exists => {
if (exists) {
const old = JSON.parse(fs.readFileSync(target, 'utf-8'));
old['typesRoot'] = repeat('../', count);
old['compilerOptions']['typesRoot'] = repeat('../', count);
fs.writeFileSync(target, JSON.stringify(old, undefined, 4));
}
});
@@ -28,7 +28,6 @@ function checkDir(home: string, count: number) {
});
}
});
}
checkDir(path.join(__dirname, '..'), 1);

View File

@@ -3,6 +3,7 @@
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false
"strictNullChecks": false,
"typesRoot": "../"
}
}
}