From 528c3c55037e7b32d2ef5dfd25974e157bafd900 Mon Sep 17 00:00:00 2001 From: James Garbutt <43081j@users.noreply.github.com> Date: Tue, 17 Jun 2025 13:54:42 +0100 Subject: [PATCH] chore: set title of CLI --- cli.js | 0 src/cli.ts | 4 ++-- src/commands/migrate.ts | 1 + src/test/__snapshots__/cli.test.ts.snap | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 cli.js diff --git a/cli.js b/cli.js old mode 100644 new mode 100755 diff --git a/src/cli.ts b/src/cli.ts index 1d45655..66177e0 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -41,8 +41,8 @@ const subCommands = new Map>([ ]); cli(process.argv.slice(2), defaultCommand, { - name: 'e18e-report', + name: 'cli', version, - description: `${c.cyan('e18e CLI')}`, + description: `${c.cyan('e18e')}`, subCommands }); diff --git a/src/commands/migrate.ts b/src/commands/migrate.ts index 7fa66e6..961921c 100644 --- a/src/commands/migrate.ts +++ b/src/commands/migrate.ts @@ -89,6 +89,7 @@ export async function run(ctx: CommandContext) { const files = await glob(include, { cwd, + ignore: ['node_modules'], absolute: true }); diff --git a/src/test/__snapshots__/cli.test.ts.snap b/src/test/__snapshots__/cli.test.ts.snap index bd0fc4b..7975620 100644 --- a/src/test/__snapshots__/cli.test.ts.snap +++ b/src/test/__snapshots__/cli.test.ts.snap @@ -1,7 +1,7 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html exports[`CLI > should display package report 1`] = ` -"e18e CLI (e18e-report v0.0.1) +"e18e (cli v0.0.1) ┌ Generating report... │