nl_tokens: This fixes the references file to work with TS 2 . 0 in the nativescript folder
pl_tokens: function fixRefFile ( ) { var existingRef = '' , refFile = '../../references.d.ts' ; if ( fs . existsSync ( refFile ) ) { existingRef = fs . readFileSync ( refFile ) . toString ( ) ; } if ( existingRef . indexOf ( 'typescript/lib/lib.d.ts' ) === - 1 ) { // has not been previously modified var fix = '/// <reference path="./node_modules/tns-core-modules/tns-core-modules.d.ts" />\n' + '/// <reference path="./node_modules/typescript/lib/lib.d.ts" />\n' ; <mask> . writeFileSync ( refFile , fix , 'utf8' ) ; } }