Skip to content

Instantly share code, notes, and snippets.

@vvakame
Last active August 29, 2015 14:20
Show Gist options
  • Save vvakame/1d10fbef9a19fc8c05f7 to your computer and use it in GitHub Desktop.
Save vvakame/1d10fbef9a19fc8c05f7 to your computer and use it in GitHub Desktop.

sample for pull request

$ node ~/work/TypeScript/built/local/tsc.js --project ./
$ echo $?
0
$ cat index.js
var str = "hello!";
console.log(str);
$ node ~/work/TypeScript/built/local/tsc.js --project ./tsconfig-es6.json
$ echo $?
0
$ cat index.js
let str = "hello!";
console.log(str);

BTW. in #681954bc59a58da949de42272333b3b33f72bce9

$ tsc -v
message TS6029: Version 1.5.0-beta
$ tsc --project ./not-exists/
error TS6050: Unable to open file 'not-exists/tsconfig.json'.
$ node ~/work/TypeScript/bin/tsc.js --project ./not-exists/
error TS5014: Failed to parse file 'not-exists/tsconfig.json': Unexpected token u.
$ node ~/work/TypeScript/built/local/tsc.js --project ./not-exists/
error TS6050: Unable to open file 'not-exists'.
let str = "hello!";
console.log(str);
{
"compilerOptions": {
"target": "es6"
},
"files": [
"index.ts"
]
}
{
"compilerOptions": {
"target": "es5"
},
"files": [
"index.ts"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment