File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
packages/@vue/cli-ui/apollo-server/connectors Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -258,15 +258,6 @@ async function create (input, context) {
258
258
} )
259
259
260
260
const targetDir = path . join ( cwd . get ( ) , input . folder )
261
- cwd . set ( targetDir , context )
262
- creator . context = targetDir
263
-
264
- process . env . VUE_CLI_CONTEXT = targetDir
265
- clearModule ( '@vue/cli-service/webpack.config.js' , targetDir )
266
-
267
- const inCurrent = input . folder === '.'
268
- const name = inCurrent ? path . relative ( '../' , process . cwd ( ) ) : input . folder
269
- creator . name = name
270
261
271
262
// Delete existing folder
272
263
if ( fs . existsSync ( targetDir ) ) {
@@ -283,6 +274,16 @@ async function create (input, context) {
283
274
}
284
275
}
285
276
277
+ cwd . set ( targetDir , context )
278
+ creator . context = targetDir
279
+
280
+ process . env . VUE_CLI_CONTEXT = targetDir
281
+ clearModule ( '@vue/cli-service/webpack.config.js' , targetDir )
282
+
283
+ const inCurrent = input . folder === '.'
284
+ const name = inCurrent ? path . relative ( '../' , process . cwd ( ) ) : input . folder
285
+ creator . name = name
286
+
286
287
// Answers
287
288
const answers = prompts . getAnswers ( )
288
289
await prompts . reset ( )
You can’t perform that action at this time.
0 commit comments