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

Create Build directory if the directory does not exist #560

Open
hinkley-dev opened this issue Aug 17, 2022 · 0 comments
Open

Create Build directory if the directory does not exist #560

hinkley-dev opened this issue Aug 17, 2022 · 0 comments

Comments

@hinkley-dev
Copy link

hinkley-dev commented Aug 17, 2022

I'd like to add

   if (!fs.existsSync(__dirname + '/build')){
    fs.mkdirSync(__dirname + '/build');
}

above line 22 of postInstall.js. When creating the file ..(__dirname, './build/jvm_dll_path.json) I get an error because the empty directory does not exists.

I'd like to create a PR to add this at it should not affect any other changes and will fix the case where the build directory does not exist when using npm to install.

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

No branches or pull requests

1 participant