Skip to content

Commit

Permalink
fix: recursive file search in create-pylon
Browse files Browse the repository at this point in the history
The recursive file search in the create-pylon package has been refactored to simplify the code. The unnecessary check for excluding "node_modules" directories has been removed, as it breaks when npm create pylon installs the dist inside the "node_modules"
  • Loading branch information
schettn committed Sep 6, 2024
1 parent 004af3e commit 4fe7fec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/create-pylon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ const readdirFilesSyncRecursive = (dir: string): string[] => {
files.forEach(file => {
const filePath = path.join(dir, file)

if (
fs.statSync(filePath).isDirectory() &&
!filePath.includes('node_modules')
) {
if (fs.statSync(filePath).isDirectory()) {
result.push(...run(filePath))
}

Expand Down

0 comments on commit 4fe7fec

Please sign in to comment.