File tree 5 files changed +4
-5
lines changed
5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 14
14
15
15
exports . chalk = require ( 'chalk' )
16
16
exports . execa = require ( 'execa' )
17
- exports . cmdShim = require ( 'util' ) . promisify ( require ( 'cmd-shim' ) )
Original file line number Diff line number Diff line change 20
20
"homepage" : " https://github.com/vuejs/vue-cli/packages/@vue/cli-shared-utils#readme" ,
21
21
"dependencies" : {
22
22
"chalk" : " ^2.3.0" ,
23
- "cmd-shim" : " ^2.0.2" ,
24
23
"execa" : " ^0.10.0" ,
25
24
"joi" : " ^12.0.0" ,
26
25
"node-ipc" : " ^9.1.1" ,
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ const { clearConsole } = require('./util/clearConsole')
14
14
const PromptModuleAPI = require ( './PromptModuleAPI' )
15
15
const writeFileTree = require ( './util/writeFileTree' )
16
16
const { formatFeatures } = require ( './util/features' )
17
- const setupDevProject = require ( './util/setupDevProject' )
18
17
const fetchRemotePreset = require ( './util/fetchRemotePreset' )
19
18
20
19
const {
@@ -134,7 +133,7 @@ module.exports = class Creator extends EventEmitter {
134
133
this . emit ( 'creation' , { event : 'plugins-install' } )
135
134
if ( isTestOrDebug ) {
136
135
// in development, avoid installation process
137
- await setupDevProject ( context )
136
+ await require ( './util/ setupDevProject' ) ( context )
138
137
} else {
139
138
await installDeps ( context , packageManager , cliOptions . registry )
140
139
}
Original file line number Diff line number Diff line change 1
1
// cross-platform executable link, mostly for Windows
2
+ // this file is dev-only.
2
3
3
4
const fs = require ( 'fs-extra' )
4
5
const path = require ( 'path' )
5
- const { cmdShim } = require ( '@vue/cli-shared-utils' )
6
+ const cmdShim = require ( 'util' ) . promisify ( require ( 'cmd-shim' ) )
6
7
7
8
exports . linkBin = async ( src , dest ) => {
8
9
if ( ! process . env . VUE_CLI_TEST && ! process . env . VUE_CLI_DEBUG ) {
Original file line number Diff line number Diff line change 31
31
"@vue/cli-ui" : " ^3.0.0-beta.15" ,
32
32
"@vue/cli-ui-addon-webpack" : " ^3.0.0-beta.15" ,
33
33
"chalk" : " ^2.3.0" ,
34
+ "cmd-shim" : " ^2.0.2" ,
34
35
"commander" : " ^2.12.2" ,
35
36
"debug" : " ^3.1.0" ,
36
37
"deepmerge" : " ^2.0.1" ,
You can’t perform that action at this time.
0 commit comments