UNPKG

852 BSource Map (JSON)View Raw
1{"version":3,"sources":["../src/run.js"],"names":["options","console","log","file","shell","stdio","runFile"],"mappings":";;;;;;;;;;;;;;;qFAGA,iBAAuBA,OAAvB;AAAA;AAAA;AAAA;AAAA;AAAA,UACMA,oBADN;AAAA;AAAA;AAAA;;AAAA;AAAA,aAEQ,0BAAgBA,OAAhB,CAFR;;AAAA;AAICC,cAAQC,GAAR,cAAuBF,QAAQG,IAA/B;AACA,sDAAoBH,QAAQG,IAA5B,EAAoC,EAApC,EAAwC;AACvCC,cAAO,IADgC;AAEvCC;AAFuC,OAAxC;;AALD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,E;;iBAAeC,O;;;;;AAHf;;AACA;;;;;;kBAaeA,O","file":"run.js","sourcesContent":["import { spawn } from 'child-process-promise'\nimport copyBabelConfig from './babel/copy-config'\n\nasync function runFile(options) {\n\tif (!options[`no-config`]) {\n\t\tawait copyBabelConfig(options)\n\t}\n\tconsole.log(`Running ${options.file}`)\n\tspawn(`babel-node ${options.file}`, [], {\n\t\tshell: true,\n\t\tstdio: `inherit`\n\t})\n}\n\nexport default runFile\n"]}
\No newline at end of file