skip node_modules when copying
This commit is contained in:
parent
52bfa783e1
commit
ed200431f2
|
|
@ -158,7 +158,10 @@ router.post('/apps/:app/deploy', c => {
|
|||
const currentReal = existsSync(currentLink) ? realpathSync(currentLink) : null
|
||||
|
||||
if (currentReal) {
|
||||
cpSync(currentReal, newVersion, { recursive: true })
|
||||
cpSync(currentReal, newVersion, {
|
||||
recursive: true,
|
||||
filter: (src) => !src.split('/').includes('node_modules'),
|
||||
})
|
||||
} else {
|
||||
// First deployment - create directory
|
||||
mkdirSync(newVersion, { recursive: true })
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user