11import { isNullish } from '@dfinity/utils' ;
22import kleur from 'kleur' ;
3- import { modules , troublemakers } from '../modules/modules' ;
3+ import { modules } from '../modules/modules' ;
44import { buildContext } from '../services/context.services' ;
55import type { Module } from '../services/modules/module.services' ;
66import type { CliContext } from '../types/context' ;
@@ -16,12 +16,6 @@ export const deploy = async (args?: string[]) => {
1616 installFn : installModulesParallel ,
1717 postInstallFn : postInstallModulesParallel
1818 } ) ;
19- await deployModules ( {
20- context,
21- mods : troublemakers ,
22- installFn : installModulesSerial ,
23- postInstallFn : postInstallModulesSerial
24- } ) ;
2519} ;
2620
2721interface DeployModulesParams {
@@ -101,16 +95,3 @@ const postInstallModulesParallel = async ({
10195 } )
10296 ) ;
10397} ;
104-
105- // Installing one after the other is slower 😢
106- const installModulesSerial = async ( { context, mods} : { context : CliContext ; mods : Module [ ] } ) => {
107- for ( const mod of mods ) {
108- await mod . install ( context ) ;
109- }
110- } ;
111-
112- const postInstallModulesSerial = async ( { context, mods} : { context : CliContext ; mods : Module [ ] } ) => {
113- for ( const mod of mods ) {
114- await mod . postInstall ( context ) ;
115- }
116- } ;
0 commit comments