mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 09:25:50 +08:00
Add typesRoot to all config files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user