Skip to content

Commit

Permalink
refactor!: upgrade globby
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 27, 2022
1 parent 60aaad0 commit 8f3a513
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"defu": "^6.1.0",
"esbuild": "^0.15.12",
"fs-extra": "^10.1.0",
"globby": "^11.1.0",
"globby": "^13.1.2",
"jiti": "^1.16.0",
"mri": "^1.2.0",
"pathe": "^0.3.9"
Expand Down
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/make.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import globby from 'globby'
import { resolve, extname, join, basename, dirname } from 'pathe'
import fse from 'fs-extra'
import { InputFile, LoaderOptions, createLoader, OutputFile } from './loader'
Expand Down Expand Up @@ -26,6 +25,7 @@ export async function mkdist (options: MkdistOptions /* istanbul ignore next */
}

// Scan input files
const { globby } = await import('globby')
const filePaths = await globby(options.pattern || '**', { absolute: false, cwd: options.srcDir })
const files: InputFile[] = filePaths.map((path) => {
const srcPath = resolve(options.srcDir!, path)
Expand Down

0 comments on commit 8f3a513

Please sign in to comment.