nl_tokens: Fix the NativeScript Package file
pl_tokens: function fixNativeScriptPackage ( ) { var packageJSON = { } , packageFile = '../../package.json' ; packageJSON . <mask> = "NativeScriptApp" ; packageJSON . version = "0.0.0" ; // var AngularJSON = {}; if ( fs . existsSync ( packageFile ) ) { packageJSON = require ( packageFile ) ; } else { console . log ( "This should not happen, your are missing your package.json file!" ) ; return ; } // if (fs.existsSync('../angular2/package.json')) { //     AngularJSON = require('../angular2/package.json'); // } else { //     // Copied from the Angular2.0.0-beta-16 package.json, this is a fall back //     AngularJSON.peerDependencies = { //         "es6-shim": "^0.35.0", //         "reflect-metadata": "0.1.2", //         "rxjs": "5.0.0-beta.6", //         "zone.js": "^0.6.12" //     }; // } packageJSON . nativescript [ 'tns-ios' ] = { version : "2.3.0" } ; packageJSON . nativescript [ 'tns-android' ] = { version : "2.3.0" } ; // Copy over all the Peer Dependencies // for (var key in AngularJSON.peerDependencies) { //     if (AngularJSON.peerDependencies.hasOwnProperty(key)) { //         packageJSON.dependencies[key] = AngularJSON.peerDependencies[key]; //     } // } // TODO: Can we get these from somewhere rather than hardcoding them, maybe need to pull/download the package.json from the default template? if ( ! packageJSON . devDependencies ) { packageJSON . devDependencies = { } ; } packageJSON . devDependencies [ "@types/jasmine" ] = "^2.5.35" ; packageJSON . devDependencies [ "babel-traverse" ] = "6.12.0" ; packageJSON . devDependencies [ "babel-types" ] = "6.11.1" ; packageJSON . devDependencies . babylon = "6.8.4" ; packageJSON . devDependencies . filewalker = "0.1.2" ; packageJSON . devDependencies . lazy = "1.0.11" ; // packageJSON.devDependencies["nativescript-dev-typescript"] = "^0.3.2"; packageJSON . devDependencies . typescript = "^2.0.2" ; fs . writeFileSync ( packageFile , JSON . stringify ( packageJSON , null , 4 ) , 'utf8' ) ; }