Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update tinyglobby #257

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading