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:
parent
ac0a89625a
commit
47a05fb4ba
@ -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
11
tsconfig.dev.json
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user