File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,9 @@ module.exports = function(grunt) {
140
140
} , [
141
141
'angular2-*.tgz'
142
142
] ) ;
143
+ if ( packageFiles . length > 1 ) {
144
+ throw new Error ( 'Multiple packages found!. Delete all but one: ' + packageFiles ) ;
145
+ }
143
146
var angularPackagePath = path . join ( angularDistPath , packageFiles [ 0 ] ) ;
144
147
grunt . config ( 'angularPackagePath' , angularPackagePath ) ;
145
148
} ) ;
@@ -158,6 +161,9 @@ module.exports = function(grunt) {
158
161
} , [
159
162
'tns-core-modules*.tgz'
160
163
] ) ;
164
+ if ( packageFiles . length > 1 ) {
165
+ throw new Error ( 'Multiple packages found!. Delete all but one: ' + packageFiles ) ;
166
+ }
161
167
var nsPackagePath = path . join ( nsDistPath , packageFiles [ 0 ] ) ;
162
168
grunt . config ( 'nsPackagePath' , nsPackagePath ) ;
163
169
} ) ;
You can’t perform that action at this time.
0 commit comments