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... │