You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
539 B

/**
* this is the entrypoint for electron when developing locally. Using ts-node
* allows us to write all of the electron main process code in typescript
* and compile on the fly. The alternative approach is to run tsc to save
* the compiled js code to disk, but this slows down the live reloading
* done by nodemon.
*/
// import tsconfig
const config = require('../electron/tsconfig.json');
// register the typescript compiler
require('ts-node').register(config);
// import the main process typescript code
require('../electron');