Skip to content

Commit

Permalink
add node modules and .git to ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
Aslemammad committed Oct 1, 2024
1 parent 93afc9a commit c50180c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ const main = defineCommand({
},
run: async ({ args }) => {
console.log('args', args)
const ignore = ['**/node_modules/**', '.git']
const paths = args._.length > 0
? await glob(args._, {
expandDirectories: false,
onlyDirectories: true,
absolute: true,
ignore,
})
: [process.cwd()];
console.log('paths', paths)
Expand All @@ -104,6 +106,7 @@ const main = defineCommand({
expandDirectories: false,
onlyDirectories: true,
absolute: true,
ignore,
});

const formData = new FormData();
Expand Down

0 comments on commit c50180c

Please sign in to comment.