diff --git a/packages/cli/index.ts b/packages/cli/index.ts index df1c946..d865a19 100644 --- a/packages/cli/index.ts +++ b/packages/cli/index.ts @@ -91,12 +91,13 @@ const main = defineCommand({ }, run: async ({ args }) => { console.log('args', args) + const ignoredPaths = ["**/node_modules/**", ".git"] const paths = args._.length > 0 ? await glob(args._, { expandDirectories: false, onlyDirectories: true, absolute: true, - ignore: ["**/node_modules", ".git"], + ignore: ignoredPaths, }) : [process.cwd()]; console.log('paths', paths) @@ -105,7 +106,7 @@ const main = defineCommand({ expandDirectories: false, onlyDirectories: true, absolute: true, - ignore: ["**/node_modules", ".git"], + ignore: ignoredPaths, }); const formData = new FormData(); @@ -243,7 +244,7 @@ const main = defineCommand({ cwd: templateDir, dot: true, onlyFiles: true, - ignore: ["**/node_modules", ".git"], // always ignore node_modules and .git + ignore: ignoredPaths, // always ignore node_modules and .git }); const filteredFiles = files.filter((file) => !ig.ignores(file));