Closed caesarsol closed 7 years ago
https://github.com/accurat/accurapp/blob/master/packages/accurapp-scripts/bin/scripts.js#L31
The try catch gives NOT_FOUND even if a sub-sub-module of build.js has a module not found.
try catch
NOT_FOUND
build.js
Would be better to use require.resolve and/or fs.exists() to check for the existence of the script/
require.resolve
fs.exists()
cc @marcofugaro @nkint
https://github.com/accurat/accurapp/blob/master/packages/accurapp-scripts/bin/scripts.js#L31
The
try catch
givesNOT_FOUND
even if a sub-sub-module ofbuild.js
has a module not found.Would be better to use
require.resolve
and/orfs.exists()
to check for the existence of the script/cc @marcofugaro @nkint