@@ -26,8 +26,8 @@ const afterViteCA = async (
2626
2727const vite : Recipe = {
2828 descriptiveName : {
29- name : '@vitejs/ create-app (https://vitejs.dev/guide/#scaffolding-your-first-vite-project)' ,
30- value : 'vite- create-app '
29+ name : 'create-vite (https://vitejs.dev/guide/#scaffolding-your-first-vite-project)' ,
30+ value : 'create-vite '
3131 } ,
3232 shortName : 'vite' ,
3333 configUpdate : ( { cfg, packageManager } ) => ( {
@@ -77,26 +77,15 @@ const vite: Recipe = {
7777 if ( packageManager === 'yarn' ) {
7878 await shell (
7979 'yarn' ,
80- [
81- 'create' ,
82- '@vitejs/app' ,
83- `${ cfg . appName } ` ,
84- '--template' ,
85- `${ template } `
86- ] ,
80+ [ 'create' , 'vite' , `${ cfg . appName } ` , '--template' , `${ template } ` ] ,
8781 {
8882 cwd
8983 }
9084 )
9185 } else {
9286 await shell (
9387 'npx' ,
94- [
95- '@vitejs/create-app@latest' ,
96- `${ cfg . appName } ` ,
97- '--template' ,
98- `${ template } `
99- ] ,
88+ [ 'create-vite@latest' , `${ cfg . appName } ` , '--template' , `${ template } ` ] ,
10089 {
10190 cwd
10291 }
@@ -105,7 +94,7 @@ const vite: Recipe = {
10594
10695 await afterViteCA ( cwd , cfg . appName , template )
10796 } ,
108- postInit : async ( { cwd, packageManager } ) => {
97+ postInit : async ( { cwd, packageManager, cfg } ) => {
10998 // we don't have a consistent way to rebuild and
11099 // esbuild has hit all the bugs and struggles to install on the postinstall
111100 await shell ( 'node' , [ './node_modules/esbuild/install.js' ] , { cwd } )
@@ -115,8 +104,10 @@ const vite: Recipe = {
115104 await shell ( 'npm' , [ 'run' , 'build' ] , { cwd } )
116105 }
117106 console . log ( `
118- Your installation completed. Change directories to \`${ cwd } \`.
119- To start, run ${ packageManager === 'yarn' ? 'yarn' : 'npm run' } tauri ${
107+ Your installation completed.
108+
109+ $ cd ${ cfg . appName } .
110+ $ ${ packageManager === 'yarn' ? 'yarn' : 'npm run' } tauri ${
120111 packageManager === 'npm' ? '--' : ''
121112 } dev
122113 ` )
0 commit comments