Skip to content
Closed
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
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@
"**/graphql/**/generated/*.ts"
],
"ignoreDependencies": [
"@graphql-typed-document-node/core",
"@shopify/plugin-cloudflare"
],
"vite": {
Expand Down Expand Up @@ -292,9 +291,7 @@
"ignoreBinaries": [
"open"
],
"ignoreDependencies": [
"@graphql-typed-document-node/core"
],
"ignoreDependencies": [],
"vite": {
"config": [
"vite.config.ts"
Expand Down
21 changes: 8 additions & 13 deletions packages/cli-kit/src/public/node/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -727,17 +727,12 @@ export async function copyDirectoryContents(srcDir: string, destDir: string): Pr
await mkdir(destDir)
}

// Get all files and directories in the source directory
const items = await glob(joinPath(srcDir, '**/*'))

const filesToCopy = []

for (const item of items) {
const relativePath = item.replace(srcDir, '').replace(/^[/\\]/, '')
const destPath = joinPath(destDir, relativePath)

filesToCopy.push(copyFile(item, destPath))
}

await Promise.all(filesToCopy)
// Get all files in the source directory relative to srcDir
const items = await glob('**/*', {cwd: srcDir})

await Promise.all(
items.map((item) => {
return copyFile(joinPath(srcDir, item), joinPath(destDir, item))
}),
)
}
Loading