Skip to content

Commit

Permalink
chore: use tinyglobby
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Aug 14, 2024
1 parent 8133faa commit d500dad
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { basename } from 'node:path'
import { defineBuildConfig } from 'unbuild'
import fg from 'fast-glob'
import { globSync } from 'tinyglobby'

export default defineBuildConfig({
entries: fg.sync('src/commands/*.ts').map(i => ({
entries: globSync(['src/commands/*.ts']).map(i => ({
input: i.slice(0, -3),
name: basename(i).slice(0, -3),
})),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
"@types/which": "^3.0.4",
"bumpp": "^9.4.2",
"eslint": "^9.8.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"fzf": "^0.5.2",
"ini": "^4.1.3",
"package-manager-detector": "^0.1.1",
"picocolors": "^1.0.1",
"taze": "^0.16.3",
"terminal-link": "^3.0.0",
"tinyglobby": "^0.2.2",
"tsx": "^4.17.0",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
Expand Down
27 changes: 24 additions & 3 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 d500dad

Please sign in to comment.