diff --git a/build-win-tenderly.js b/build-win-tenderly.js index d541333cc..274dd9fa2 100644 --- a/build-win-tenderly.js +++ b/build-win-tenderly.js @@ -1,3 +1,5 @@ +//@ts-check + /** * This script is used to build the electron app **with notarization**. It is used for the final build and release process. */ @@ -7,7 +9,7 @@ const build = require('electron-builder').build; const main = async () => { console.log('Building...'); - /** @type import {CliOptions} from "electron-builder" */ + /** @type {import('electron-builder').CliOptions} */ await build({ publish: 'onTag', config: { diff --git a/build-win.js b/build-win.js index 5ff63eed0..fab6a85c3 100644 --- a/build-win.js +++ b/build-win.js @@ -1,10 +1,11 @@ +// @ts-check /** * This script is used to build the electron app **with notarization**. It is used for the final build and release process. */ require('dotenv').config(); const build = require('electron-builder').build; -const { githubPublishOptions } = require('./electron/constants'); +const { githubPublishOptions } = require('./electron/constants/config'); function artifactName() { @@ -16,7 +17,7 @@ function artifactName() { const main = async () => { console.log('Building...'); - /** @type import {CliOptions} from "electron-builder" */ + /** @type {import('electron-builder').CliOptions} */ await build({ publish: 'onTag', config: { diff --git a/build.js b/build.js index 550f90f17..94f64ceae 100644 --- a/build.js +++ b/build.js @@ -4,7 +4,6 @@ */ require('dotenv').config(); const build = require('electron-builder').build; -const { isDev } = require('./electron/constants'); const { githubPublishOptions } = require('./electron/constants/config'); /** diff --git a/build.tester.js b/build.tester.js index 7c1e64433..c902d887b 100644 --- a/build.tester.js +++ b/build.tester.js @@ -1,5 +1,4 @@ -const { githubPublishOptions } = require("./electron/constants/config"); - +//@ts-check /** * This script is used to build the electron app **without** notarization. * @@ -12,7 +11,7 @@ const build = require("electron-builder").build; const main = async () => { console.log("Building..."); - /** @type import {CliOptions} from "electron-builder" */ + /** @type {import('electron-builder').CliOptions} */ await build({ publish: "never", config: {