nativescript-nodeify
nativescript-nodeify copied to clipboard
Hook fails if nativescript-nodeify is a devDependency
To reproduce:
rm -rf platforms/androidtns platform add androidtns build android
Here is the output from my terminal. Specifically note the error message at the end:
Preparing project...
Project successfully prepared (android)
Executing after-prepare hook from /path/to/project/hooks/after-prepare/nativescript-dev-babel.js
Processing complete
Executing after-prepare hook from /path/to/project/hooks/after-prepare/nativescript-nodeify.js
Cannot find module '/path/to/project/platforms/android/app/src/main/assets/app/tns_modules/nativescript-nodeify/patch-npm-packages.js'
I believe this is related to #31. Moving the nativescript-nodeify line to dependencies instead of devDependencies solves the problem.