2020-03-23 02:47:25 +02:00
|
|
|
const execa = require('execa');
|
|
|
|
|
|
|
|
const rootDir = `${__dirname}/../../../`;
|
|
|
|
process.chdir(rootDir);
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
src: [
|
2020-11-05 18:58:23 +02:00
|
|
|
'packages/app-mobile/**/*.tsx',
|
|
|
|
'packages/app-mobile/**/*.ts',
|
|
|
|
'packages/app-desktop/**/*.tsx',
|
|
|
|
'packages/app-desktop/**/*.ts',
|
|
|
|
'packages/app-cli/**/*.tsx',
|
|
|
|
'packages/app-cli/**/*.ts',
|
2020-03-23 02:47:25 +02:00
|
|
|
],
|
|
|
|
fn: async function() {
|
|
|
|
const promise = execa('node', ['node_modules/typescript/bin/tsc', '--project', 'tsconfig.json'], { cwd: rootDir });
|
|
|
|
promise.stdout.pipe(process.stdout);
|
|
|
|
return promise;
|
|
|
|
},
|
|
|
|
};
|