Open AlexStacker opened 7 years ago
Hi, @jonkemp I want to be able to find the path use alternate search path first and and the option searchPath is not undefined will to be used in next! I change my local modules getPattern.js code:
alternate search path
searchPath
getPattern.js
if (files[destPath].searchPaths && searchPath) { if(searchPath.startsWith('{')){ searchPaths = path.resolve(cwd, searchPath.replace('{', '{' + files[destPath].searchPaths+',')); }else{ searchPaths = path.resolve(cwd, '{'+ files[destPath].searchPaths + ',' + searchPath +'}'); } }else if (files[destPath].searchPaths || searchPath) { searchPaths = path.resolve(cwd, files[destPath].searchPaths || searchPath); }
It work fine for me.would you like to add the feature to the next version?
Can you describe the role of alternate search path more clearly?
It’s been a long time, and I forgot what I was doing at the time. I think it should be close.
Hi, @jonkemp I want to be able to find the path use
alternate search path
first and and the optionsearchPath
is not undefined will to be used in next! I change my local modulesgetPattern.js
code:It work fine for me.would you like to add the feature to the next version?