mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-22 18:56:31 +00:00
Convert start.js to typescript
Change-type: patch
This commit is contained in:
parent
683c2da224
commit
746ee50027
@ -14,8 +14,6 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict'
|
|
||||||
|
|
||||||
// See http://electron.atom.io/docs/v0.37.7/api/environment-variables/#electronrunasnode
|
// See http://electron.atom.io/docs/v0.37.7/api/environment-variables/#electronrunasnode
|
||||||
//
|
//
|
||||||
// Notice that if running electron with `ELECTRON_RUN_AS_NODE`, the binary
|
// Notice that if running electron with `ELECTRON_RUN_AS_NODE`, the binary
|
||||||
@ -24,9 +22,7 @@
|
|||||||
// or the entry point file (this file) manually as an argument.
|
// or the entry point file (this file) manually as an argument.
|
||||||
|
|
||||||
if (process.env.ELECTRON_RUN_AS_NODE) {
|
if (process.env.ELECTRON_RUN_AS_NODE) {
|
||||||
// eslint-disable-next-line node/no-missing-require
|
import('./gui/modules/child-writer');
|
||||||
require('./gui/modules/child-writer')
|
|
||||||
} else {
|
} else {
|
||||||
// eslint-disable-next-line node/no-missing-require
|
import('./gui/etcher');
|
||||||
require('./gui/etcher')
|
|
||||||
}
|
}
|
@ -121,7 +121,7 @@ const etcherConfig = {
|
|||||||
externalPackageJson('../package.json')
|
externalPackageJson('../package.json')
|
||||||
],
|
],
|
||||||
entry: {
|
entry: {
|
||||||
etcher: path.join(__dirname, 'lib', 'start.js')
|
etcher: path.join(__dirname, 'lib', 'start.ts')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user