Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Node 10 requires a callback to rmdir#69

Open
gust42 wants to merge 5 commits intophonegap:masterfrom
gust42:master
Open

Node 10 requires a callback to rmdir#69
gust42 wants to merge 5 commits intophonegap:masterfrom
gust42:master

Conversation

@gust42
Copy link
Copy Markdown

@gust42 gust42 commented Nov 5, 2018

Makes it work with Node 10

@gust42 gust42 mentioned this pull request Nov 5, 2018
exists = fs.existsSync(basepath);
if (exists) {
fs.rmdir(basepath);
fs.rmdir(basepath, function () {});
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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

@angelika94
Copy link
Copy Markdown

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

+1

@r1si
Copy link
Copy Markdown

r1si commented Apr 16, 2019

+1 please merge!

@sebastianjonasson
Copy link
Copy Markdown

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
Copy Markdown

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

@andycorm
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

sami016 commented Oct 9, 2019

Need this also. Is the project dead/inactive?

@spraddles
Copy link
Copy Markdown

spraddles commented Jan 19, 2020

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

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

9 participants