File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 11var fs = require ( "fs" ) ;
22var os = require ( "os" ) ;
3- var path = require ( "path" ) ;
43var hookHelper = require ( "./hooks/hook-helper" ) ;
54var projectDir = hookHelper . findProjectDir ( ) ;
65
76if ( projectDir ) {
8- var bundlePath = path . join ( projectDir , "node_modules/@angular/animations/browser/package.json" ) ;
9-
10- try {
11- var content = require ( bundlePath ) ;
12- content . main = "../bundles/animations-browser.umd.js" ;
13- console . log ( content )
14- fs . writeFileSync ( bundlePath , JSON . stringify ( content ) , "utf8" ) ;
15- } catch ( e ) {
16- console . error ( e . message ) ;
17- }
18-
197 var hooksDir = hookHelper . getHooksDir ( ) ,
208 beforeLivesyncHookDir = hookHelper . getBeforeLivesyncHookDir ( ) ,
219 content = 'module.exports = require("nativescript-angular/hooks/before-livesync");' ;
You can’t perform that action at this time.
0 commit comments