Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix if the build path and build path of the server file match #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alexandershved
Copy link
Collaborator

No description provided.

@@ -23,7 +23,7 @@ module.exports = (program, config = {}) => {
`
rm -rf ${config.build.path} &&
mkdir ${config.build.path} &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add -p flag here to prevent same error in future

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's too much. This directory was previously deleted

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? At the beginning this dir could not even exist and mkdir will fail.

For example we want this file structure:

└─┬ app
  └─┬ artifacts
    └── dist

And there is no artifacts at the beginning.

So rm -rf ./artifacts/dist will succeed but mkdir ./artifacts/dist will fail with mkdir: atrifacts: No such file or directory.

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