Skip to content

fix: use recursive for deploy command directory creation#4943

Merged
zkochan merged 3 commits into
pnpm:mainfrom
ragrag:main
Jun 27, 2022
Merged

fix: use recursive for deploy command directory creation#4943
zkochan merged 3 commits into
pnpm:mainfrom
ragrag:main

Conversation

@ragrag

@ragrag ragrag commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

Currently the deploy command will throw when the deploy directory is nested.

Example running:

pnpm --filter=pkg deploy deploy/pkg

will throw with

 ENOENT  ENOENT: no such file or directory, mkdir '/home/project/deploy/pkg'

This happens when the parent folder (deploy in this case) has not been already created.

This PR adds { recursive: true } to allow creating the deploy directory recursivly.

@ragrag ragrag requested a review from zkochan as a code owner June 27, 2022 19:47
@welcome

welcome Bot commented Jun 27, 2022

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@zkochan

zkochan commented Jun 27, 2022

Copy link
Copy Markdown
Member

Add a changeset

@ragrag ragrag requested a review from zkochan June 27, 2022 21:40
@zkochan zkochan merged commit f4248b5 into pnpm:main Jun 27, 2022
@welcome

welcome Bot commented Jun 27, 2022

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants