I was experimenting, and looking at the http://github.com/Microsoft/TSLint repo, and found that passing a config object to ('child_process').spawn() or ('child_process').exec() works well:
This would allow running the executablePath without normalizing it (as seen above). It might also negate any issues with finding standards that might be easier to discover locally, i.e., installed via composer into the same folder and registered with dealerdirect/phpcodesniffer-composer-installer
I was experimenting, and looking at the http://github.com/Microsoft/TSLint repo, and found that passing a config object to
('child_process').spawn()
or('child_process').exec()
works well:This would allow running the
executablePath
without normalizing it (as seen above). It might also negate any issues with finding standards that might be easier to discover locally, i.e., installed via composer into the same folder and registered withdealerdirect/phpcodesniffer-composer-installer