Tools: Fixed build

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

No files matched your search

+1 -1
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
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
}
}