File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ module.exports = async function emberCliUpdate({
3333 name : 'ember-cli'
3434 } ;
3535
36+ let cwd = process . cwd ( ) ;
37+
3638 let blueprint ;
3739
3840 if ( _blueprint ) {
@@ -43,7 +45,7 @@ module.exports = async function emberCliUpdate({
4345 blueprint = await parseBlueprint ( _blueprint ) ;
4446 blueprint . version = from ;
4547 } else {
46- let { blueprints } = await loadSafeBlueprintFile ( process . cwd ( ) ) ;
48+ let { blueprints } = await loadSafeBlueprintFile ( cwd ) ;
4749
4850 let completeBlueprints = blueprints . filter ( blueprint => ! blueprint . isPartial ) ;
4951 if ( ! completeBlueprints . length ) {
@@ -144,13 +146,13 @@ module.exports = async function emberCliUpdate({
144146 wasRunAsExecutable
145147 } ) ) . promise ;
146148
147- let { blueprints } = await loadSafeBlueprintFile ( process . cwd ( ) ) ;
149+ let { blueprints } = await loadSafeBlueprintFile ( cwd ) ;
148150
149151 let existingBlueprint = blueprints . find ( b => b . name === blueprint . name ) ;
150152
151153 if ( existingBlueprint ) {
152154 await saveBlueprint ( {
153- cwd : process . cwd ( ) ,
155+ cwd,
154156 name : blueprint . name ,
155157 version : endVersion
156158 } ) ;
You can’t perform that action at this time.
0 commit comments