Fix fix-tslint script now that types are in types directory (#15374)

This commit is contained in:
Andy 2017-03-24 15:05:04 -07:00 committed by GitHub
parent 78f4536c66
commit f2eeefbf32
2 changed files with 9 additions and 10 deletions

View File

@ -2,16 +2,11 @@
/// <reference types="node" />
import assert = require("assert");
import * as fs from 'fs';
import * as path from 'path';
import * as fs from "fs";
import * as path from "path";
import JSON = require("comment-json");
function repeat(s: string, count: number) {
return Array(count + 1).join(s);
}
const home = path.join(__dirname, '..');
const home = path.join(__dirname, "..", "types");
for (const dirName of fs.readdirSync(home)) {
if (dirName.startsWith(".") || dirName === "node_modules" || dirName === "scripts") {

View File

@ -4,9 +4,13 @@
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": true,
"baseUrl": "../",
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": "../types",
"typeRoots": [
"../"
"../types"
],
"types": [],
"forceConsistentCasingInFileNames": true