Skip to content

Commit

Permalink
support newest tsc's output
Browse files Browse the repository at this point in the history
Also peg tsc version so future changes don’t break this package
  • Loading branch information
jaredp committed May 11, 2015
1 parent 8c31135 commit 9a8fb99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/typescript-property-accumulator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"underscore.string": "*",
"re-add-comments": "*",
"line-input-stream": "~1.0.1",
"typescript": "*"
"typescript": "1.5.0-beta"
},
"devDependencies": {
"uglify-js": "~2.2",
Expand Down
4 changes: 2 additions & 2 deletions src/typescript-property-accumulator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ addProperties = (tscripts) ->
realErrorCount = 0

tsc = spawn __dirname + '/../node_modules/typescript/bin/tsc', tscripts
lineStream(tsc.stderr).on('line', (line)=>
EREGEX = /error TS2094: The property '(.*)' does not exist on value of type '(.*)'\.\n?$/
lineStream(tsc.stdout).on('line', (line)=>
EREGEX = /error TS2339: Property '(.*)' does not exist on type '(.*)'/
if [match, property, type] = line.match(EREGEX) or no
klass = (classes[type] ||= [])
klass.push property if property not in klass
Expand Down

0 comments on commit 9a8fb99

Please sign in to comment.