Skip to content

Commit

Permalink
Update to TypeScript 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Dec 7, 2016
1 parent aa07292 commit 67e2981
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
],
"scripts": {
"lint": "tslint \"src/**/*.ts\"",
"build": "npm run build-ts",
"build-ts": "rm -rf dist && tsc",
"clean": "rimraf dist",
"tsc": "tsc",
"build": "npm run clean && npm run tsc",
"test-spec": "mocha dist/**/*.spec.js -R spec --bail",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- \"dist/**/*.spec.js\" -R spec --bail",
"test": "npm run build && npm run lint && npm run test-cov",
Expand Down Expand Up @@ -50,10 +51,11 @@
"mocha": "^3.0.0",
"ntypescript": "^1.201507091536.1",
"proxyquire": "^1.7.2",
"rimraf": "^2.5.4",
"semver": "^5.1.0",
"tslint": "^4.0.2",
"tslint-config-standard": "^2.0.0",
"typescript": "^2.0.3",
"typescript": "^2.1.4",
"typings": "^2.0.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ export function register (options: Options = {}): () => Register {

const service = ts.createLanguageService(serviceHost)

getOutput = function (code: string, fileName: string, lineOffset = 0) {
getOutput = function (code: string, fileName: string, lineOffset: number = 0) {
const output = service.getEmitOutput(fileName)

// Get the relevant diagnostics - this is 3x faster than `getPreEmitDiagnostics`.
Expand Down
2 changes: 1 addition & 1 deletion typings.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"globalDevDependencies": {
"chai": "registry:dt/chai#3.4.0+20160216071402",
"mocha": "registry:dt/mocha#2.2.5+20151023103246"
"mocha": "registry:dt/mocha#2.2.5+20161028141524"
},
"devDependencies": {
"semver": "registry:npm/semver#5.0.0+20160211003958"
Expand Down

0 comments on commit 67e2981

Please sign in to comment.