1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00

Tools: Fixed build

This commit is contained in:
Laurent Cozic 2020-06-24 23:13:32 +01:00
parent ac0a89625a
commit 47a05fb4ba
2 changed files with 12 additions and 1 deletions

View File

@ -45,7 +45,7 @@ gulp.task('watch', function() {
// For watching, we use the actual tsc tool because it's more robust and
// doesn't crash when there's an error
const promise = execa('node', ['node_modules/typescript/bin/tsc', '--watch', '--project', 'tsconfig.json'], { cwd: `${__dirname}` });
const promise = execa('node', ['node_modules/typescript/bin/tsc', '--watch', '--project', 'tsconfig.dev.json'], { cwd: `${__dirname}` });
promise.stdout.pipe(process.stdout);
});

11
tsconfig.dev.json Normal file
View File

@ -0,0 +1,11 @@
{
"extends": "./tsconfig",
"compilerOptions": {
// There's currently a bug in Electron that makes it fail to load the source maps
// (it tries to load them from the root of the app even though they are in
// sub-folders). So to have source maps anyway in dev, we use inline source maps.
// https://github.com/electron/electron/issues/22996
"sourceMap": false,
"inlineSourceMap": true
}
}