Skip to content

Commit

Permalink
style: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Jan 31, 2024
1 parent 56a279b commit b4318a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/prepare-packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ async function collectDTSFiles(directory, paths = []) {
const assets = await fs.promises.readdir(directory)
for (let asset of assets) {
const assetPath = join(directory, asset)
const dir = await fs.promises.stat(assetPath)
if (dir.isFile()) {
const fileStat = await fs.promises.stat(assetPath)
if (fileStat.isFile()) {
paths.push(assetPath)
} else {
paths = paths.concat(await collectDTSFiles(assetPath, []))
Expand Down

0 comments on commit b4318a0

Please sign in to comment.