File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,6 @@ const createInstallMachine = (initialContext: InstallMachineContext) => {
264
264
} ,
265
265
done : {
266
266
type : 'final' ,
267
- entry : ( ) => logWithColoredPrefix ( 'stapler' , 'Installation process completed!' ) ,
268
267
} ,
269
268
failed : {
270
269
type : 'final' ,
@@ -455,8 +454,6 @@ export const createProject = async (options: ProjectOptions, projectDir: string)
455
454
let state : StaplerState = initializeState ( projectDir , name , usePayload ) ;
456
455
state . options = options ;
457
456
458
- const currentDir = process . cwd ( ) ;
459
-
460
457
const context : InstallMachineContext = {
461
458
type : 'install' ,
462
459
projectDir : projectDir ,
@@ -466,13 +463,5 @@ export const createProject = async (options: ProjectOptions, projectDir: string)
466
463
const installMachine = createInstallMachine ( context ) ;
467
464
const installActor = createActor ( installMachine ) ;
468
465
469
- installActor . subscribe ( ( state : StateFrom < typeof installMachine > ) => {
470
- if ( state . matches ( 'done' ) ) {
471
- logWithColoredPrefix ( 'stapler' , 'Installation process completed!' ) ;
472
- } else if ( state . matches ( 'failed' ) ) {
473
- console . error ( 'Installation process failed.' ) ;
474
- }
475
- } ) ;
476
-
477
466
installActor . start ( ) ;
478
467
} ;
You can’t perform that action at this time.
0 commit comments