Initial commit
Generated by create-expo-module 56.0.3.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const { spawnSync } = require('child_process');
|
||||
|
||||
// On Windows, executables like `tsc` and `jest` are `.cmd` batch files and cannot be
|
||||
// spawned directly — they require shell: true to resolve. On Unix, shell: true is
|
||||
// unnecessary.
|
||||
function spawnSyncWithAutoShell(command, args, options) {
|
||||
return spawnSync(command, args, { ...options, shell: process.platform === 'win32' });
|
||||
}
|
||||
|
||||
module.exports = { spawnSyncWithAutoShell };
|
||||
Reference in New Issue
Block a user