File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,13 @@ function upgradeQuasar () {
170170 // installing the new version might fail on Windows
171171 removeSync ( path . join ( root , 'node_modules' , dep . packageName ) )
172172
173- const notPinned = pkg . dependencies [ dep . packageName ] . startsWith ( '^' )
174- params . push ( `${ dep . packageName } @${ notPinned ? '^' : '' } ${ dep . latestVersion } ` )
173+ const pinned = / ^ \d / . test (
174+ pkg . dependencies [ dep . packageName ] ||
175+ pkg . devDependencies [ dep . packageName ] ||
176+ '^' // fallback, just in case
177+ )
178+
179+ params . push ( `${ dep . packageName } @${ pinned ? '' : '^' } ${ dep . latestVersion } ` )
175180 } )
176181
177182 console . log ( )
Original file line number Diff line number Diff line change 11{
22 "name" : " @quasar/cli" ,
3- "version" : " 1.0.4 " ,
3+ "version" : " 1.0.5 " ,
44 "description" : " Quasar Framework global CLI" ,
55 "bin" : {
66 "quasar" : " ./bin/quasar"
You can’t perform that action at this time.
0 commit comments