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

Node 10 requires a callback to rmdir #69

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gust42
Copy link

@gust42 gust42 commented Nov 5, 2018

Makes it work with Node 10

@gust42 gust42 mentioned this pull request Nov 5, 2018
@@ -116,7 +116,7 @@ module.exports = {
// remove zip directory if empty
exists = fs.existsSync(basepath);
if (exists) {
fs.rmdir(basepath);
fs.rmdir(basepath, function () {});

Choose a reason for hiding this comment

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

Since the sync function is used above in fs.existsSync, you might want to use fs.rmdirSync instead.

Copy link
Author

Choose a reason for hiding this comment

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

Yeah good point!

@frederikbosch
Copy link

It would be nice if this could be merged so Node 10 is supported.

@angelika94
Copy link

It would be nice if this could be merged so Node 10 is supported.

+1

@r1si
Copy link

r1si commented Apr 16, 2019

+1 please merge!

@sebastianjonasson
Copy link

Not ideal, but I solved this by just updating the source (as in PR) locally. https://github.com/phonegap/node-phonegap-build/issues/68

@badpenguin
Copy link

Wow still not merged? I've got the same problem today and this fixed it.

@andycorm
Copy link

I'm not so awesome at all this node/phonegap config stuff, and my remote build is failing as well. Can someone explain for us dummies how we'd go about using this patched gust42 version of phonegap build?

@gust42
Copy link
Author

gust42 commented Jul 31, 2019

I'm not so awesome at all this node/phonegap config stuff, and my remote build is failing as well. Can someone explain for us dummies how we'd go about using this patched gust42 version of phonegap build?

you can find the file locally on your computer and make the changes, lib/phonegap-build/create/zip.js

@sami016
Copy link

sami016 commented Oct 9, 2019

Need this also. Is the project dead/inactive?

@spraddles
Copy link

spraddles commented Jan 19, 2020

please merge this! this issue has existed for more than a year now!
thanks :-)

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

Successfully merging this pull request may close these issues.

9 participants