This repository was archived by the owner on May 26, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "old" : " angular-ui-router" ,
3
+ "new" : " @uirouter/angularjs"
4
+ }
Original file line number Diff line number Diff line change
1
+ #!env node
2
+ "use strict" ;
3
+
4
+ var pkg = require ( '../package.json' ) ;
5
+ var migrate = require ( './migrate.json' ) ;
6
+
7
+ if ( pkg . name === migrate . old ) {
8
+ var warning = 'WARNING! this npm package "' + migrate . old + '" has been renamed to "' + migrate . new + '". Please update your package.json' ;
9
+ var warning2 = 'See https://ui-router.github.io/blog/uirouter-scoped-packages/ for details.' ;
10
+ console . log ( "\x1b[1m\x1b[37m\x1b[41m%s\x1b[0m" , warning ) ;
11
+ console . log ( "\x1b[1m\x1b[37m\x1b[41m%s\x1b[0m" , warning2 ) ;
12
+ }
Original file line number Diff line number Diff line change 12
12
"bundle_events" : " rollup -c --environment EVENTS && rollup -c --environment EVENTS,MINIFY" ,
13
13
"bundle_resolve" : " rollup -c --environment RESOLVE && rollup -c --environment RESOLVE,MINIFY" ,
14
14
"prepare" : " npm run package" ,
15
+ "install" : " node migrate/migratewarn.js" ,
15
16
"noimplicitany" : " tsc --noEmit --noImplicitAny --moduleResolution node --target es6 test/noimplicitany.ts" ,
16
17
"test" : " npm run test:integrate" ,
17
18
"test:ng12" : " karma start --ngversion 1.2" ,
You can’t perform that action at this time.
0 commit comments