mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
21 lines
504 B
JavaScript
21 lines
504 B
JavaScript
const execa = require('execa');
|
|
|
|
const rootDir = `${__dirname}/../../../`;
|
|
process.chdir(rootDir);
|
|
|
|
module.exports = {
|
|
src: [
|
|
'ReactNativeClient/**/*.tsx',
|
|
'ReactNativeClient/**/*.ts',
|
|
'ElectronClient/**/*.tsx',
|
|
'ElectronClient/**/*.ts',
|
|
'CliClient/**/*.tsx',
|
|
'CliClient/**/*.ts',
|
|
],
|
|
fn: async function() {
|
|
const promise = execa('node', ['node_modules/typescript/bin/tsc', '--project', 'tsconfig.json'], { cwd: rootDir });
|
|
promise.stdout.pipe(process.stdout);
|
|
return promise;
|
|
},
|
|
};
|