File tree 3 files changed +8
-0
lines changed
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ const execa = require('execa')
5
5
const resolve = require ( 'resolve' )
6
6
const inquirer = require ( 'inquirer' )
7
7
const Generator = require ( './Generator' )
8
+ const cloneDeep = require ( 'lodash.clonedeep' )
8
9
const sortObject = require ( './util/sortObject' )
9
10
const installDeps = require ( './util/installDeps' )
10
11
const clearConsole = require ( './util/clearConsole' )
@@ -71,6 +72,8 @@ module.exports = class Creator {
71
72
options = await this . promptAndResolveOptions ( )
72
73
}
73
74
75
+ // clone before mutating
76
+ options = cloneDeep ( options )
74
77
// inject core service
75
78
options . plugins [ '@vue/cli-service' ] = Object . assign ( {
76
79
projectName : name
Original file line number Diff line number Diff line change 37
37
"inquirer" : " ^4.0.1" ,
38
38
"isbinaryfile" : " ^3.0.2" ,
39
39
"klaw-sync" : " ^3.0.2" ,
40
+ "lodash.clonedeep" : " ^4.5.0" ,
40
41
"minimist" : " ^1.2.0" ,
41
42
"mkdirp" : " ^0.5.1" ,
42
43
"resolve" : " ^1.5.0" ,
Original file line number Diff line number Diff line change @@ -6355,6 +6355,10 @@ lodash.clone@3.0.3:
6355
6355
lodash._bindcallback "^3.0.0"
6356
6356
lodash._isiterateecall "^3.0.0"
6357
6357
6358
+ lodash.clonedeep@^4.5.0 :
6359
+ version "4.5.0"
6360
+ resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"
6361
+
6358
6362
lodash.cond@^4.3.0 :
6359
6363
version "4.5.2"
6360
6364
resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5"
You can’t perform that action at this time.
0 commit comments