diff --git a/bunfig.toml b/bunfig.toml index 8755352..c168b94 100644 --- a/bunfig.toml +++ b/bunfig.toml @@ -1,2 +1,3 @@ [test] +root = "./test" preload = ["./test/setup.ts"] diff --git a/src/commands/clean/deps.ts b/src/commands/clean/deps.ts index 9e7347a..f42eb0f 100644 --- a/src/commands/clean/deps.ts +++ b/src/commands/clean/deps.ts @@ -8,6 +8,7 @@ export const cleanDepsCommand = () => { const command = new Command(); command .name('deps') + .aliases(['dependencies']) .summary('Cleanup repositories dependencies (node_modules).') .description('Cleans all repos dependencies locally installed.') .addOption(sharedOptions.force()) diff --git a/src/commands/clean/dot-env.ts b/src/commands/clean/dot-env.ts index f7d3b9f..08f03b4 100644 --- a/src/commands/clean/dot-env.ts +++ b/src/commands/clean/dot-env.ts @@ -8,6 +8,7 @@ export const cleanDotEnvCommand = () => { const command = new Command(); command .name('dot-env') + .aliases(['env', 'dotenv']) .summary('Cleanup repositories dot env files (.env).') .description( 'Removes the dot env files (.env) for all the DEMS-managed repositories configured.', diff --git a/src/commands/clean/repos.ts b/src/commands/clean/repos.ts index 1478103..25fd087 100644 --- a/src/commands/clean/repos.ts +++ b/src/commands/clean/repos.ts @@ -11,6 +11,7 @@ export const cleanReposCommand = () => { const command = new Command(); command .name('repos') + .aliases(['repositories', 'repo']) .summary("Remove the current project's git repositories.") .description( noIndent(` diff --git a/src/commands/dependencies/copy.ts b/src/commands/dependencies/copy.ts index 5f69353..5ba2660 100644 --- a/src/commands/dependencies/copy.ts +++ b/src/commands/dependencies/copy.ts @@ -17,7 +17,7 @@ export const depsCopyCommand = () => { const config = projectConfig(); for (const repo of config.repositories) { composeExec({ - cmd: [ + command: [ 'cp', `${repo.replace( `${config.compose.project_name}-`,