Skip to content

Commit

Permalink
chore: update tinyglobby
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Oct 16, 2024
1 parent c9530fe commit d5c5be7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
20 changes: 2 additions & 18 deletions packages/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,36 +90,20 @@ const main = defineCommand({
},
},
run: async ({ args }) => {
const paths = args._.length
const paths = args._.length > 0
? await glob(args._, {
expandDirectories: false,
onlyDirectories: true,
absolute: true,
})
: [process.cwd()];

if (args._.includes(".") || args._.includes("./")) {
paths.push(process.cwd());
}

const templatePatterns =
typeof args.template === "string"
? [args.template]
: ([...(args.template || [])] as string[]);

const templates = await glob(templatePatterns, {
const templates = await glob(args.template ?? [], {
expandDirectories: false,
onlyDirectories: true,
absolute: true,
});

if (
templatePatterns.includes(".") ||
templatePatterns.includes("./")
) {
templates.push(process.cwd());
}

const formData = new FormData();

const isCompact = !!args.compact;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"package-manager-detector": "^0.1.2",
"pkg-types": "^1.1.1",
"query-registry": "^3.0.1",
"tinyglobby": "0.2.6"
"tinyglobby": "^0.2.9"
},
"devDependencies": {
"@pkg-pr-new/utils": "workspace:^",
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d5c5be7

Please sign in to comment.