mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-27 22:49:20 +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);
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"noImplicitAny": true,
|
||||
"strictNullChecks": false
|
||||
"strictNullChecks": false,
|
||||
"typesRoot": "../"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user