Skip to content

Commit

Permalink
Fix fix-tslint script now that types are in types directory (Defini…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy authored Mar 24, 2017
1 parent 78f4536 commit f2eeefb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 3 additions & 8 deletions scripts/fix-tslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
8 changes: 6 additions & 2 deletions scripts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2eeefb

Please sign in to comment.