Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
Update NPM dependencies, compile with typescript v2.0.3 (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Oct 9, 2016
1 parent b0f5ff1 commit 8375782
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
},
"dependencies": {
"colors": "^1.1.2",
"diff": "^2.2.1",
"diff": "^3.0.1",
"findup-sync": "~0.3.0",
"glob": "^7.0.3",
"glob": "^7.1.1",
"optimist": "~0.6.0",
"resolve": "^1.1.7",
"underscore.string": "^3.3.4"
Expand All @@ -33,17 +33,17 @@
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-contrib-clean": "^1.0.0",
"grunt-eslint": "^18.1.0",
"grunt-mocha-test": "^0.12.7",
"grunt-eslint": "^19.0.0",
"grunt-mocha-test": "^0.13.2",
"grunt-npm-command": "^0.1.2",
"grunt-run": "~0.6.0",
"grunt-ts": "^5.1.0",
"grunt-ts": "^5.5.1",
"grunt-tslint": "latest",
"js-yaml": "^3.4.6",
"mocha": "^2.2.5",
"js-yaml": "^3.6.1",
"mocha": "^3.1.0",
"tslint": "latest",
"tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative",
"typescript": "1.8.10"
"typescript": "2.0.3"
},
"peerDependencies": {
"typescript": ">=1.7.3"
Expand Down
3 changes: 1 addition & 2 deletions src/language/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ export function getSourceFile(fileName: string, source: string): ts.SourceFile {
getCanonicalFileName: (filename: string) => filename,
getCurrentDirectory: () => "",
getDefaultLibFileName: () => "lib.d.ts",
// TODO: include this field when compiling with TS 2.0
// getDirectories: (path: string) => [],
getDirectories: (path: string) => [],
getNewLine: () => "\n",
getSourceFile: (filenameToGet: string) => {
if (filenameToGet === normalizedName) {
Expand Down
3 changes: 1 addition & 2 deletions src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ export function runTest(testDirectory: string, rulesDirectory?: string | string[
getCanonicalFileName: (filename: string) => filename,
getCurrentDirectory: () => "",
getDefaultLibFileName: () => ts.getDefaultLibFileName(compilerOptions),
// TODO: include this field when compiling with TS 2.0
// getDirectories: (path: string) => [],
getDirectories: (path: string) => [],
getNewLine: () => "\n",
getSourceFile(filenameToGet: string) {
if (filenameToGet === this.getDefaultLibFileName()) {
Expand Down

0 comments on commit 8375782

Please sign in to comment.