From 6d128805fc52cb5770e6a5286e0722a1c4c2e848 Mon Sep 17 00:00:00 2001 From: Hanro Date: Sun, 31 Jul 2022 12:03:33 +0200 Subject: [PATCH] Build dependency update --- build.js | 2 +- package.json | 9 ++++----- src/gui/electron.ts | 4 +++- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/build.js b/build.js index b1432e2..de0c257 100755 --- a/build.js +++ b/build.js @@ -11,7 +11,7 @@ try { console.log("[MSMC]:Compiling....") console.log(execSync(`tsc -b ./tsconfig.dist.json`).toString('ascii')) console.log("[MSMC]:Constructing declarations....") - console.log(execSync(`tsc -b ./tsconfig.dist.json`).toString('ascii')) + console.log(execSync(`tsc -b ./tsconfig.types.json`).toString('ascii')) } catch (e) { console.log(e.toString('ascii')) } \ No newline at end of file diff --git a/package.json b/package.json index d04647f..d0a3550 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "msmc", - "version": "4.0.0-pre5", + "version": "4.0.0-pre7", "description": "A bare bones login library for Minecraft based projects to authenticate individuals with a Microsoft account.", "license": "MIT", "exports": { @@ -40,10 +40,9 @@ }, "devDependencies": { "@types/node": "^17.0.35", - "@types/node-fetch": "^2.6.1", - "@types/webpack": "^5.28.0", - "electron": "^18", - "typescript": "^4.7.2" + "@types/node-fetch": "^2.x", + "@types/webpack": "^5.x", + "typescript": "^4.x" }, "dependencies": { "node-fetch": "2.x", diff --git a/src/gui/electron.ts b/src/gui/electron.ts index da83323..581cb4c 100644 --- a/src/gui/electron.ts +++ b/src/gui/electron.ts @@ -1,7 +1,9 @@ +// @ts-nocheck Electron misbehaved in the dev dependencies. import { err, getDefaultWinProperties, lexcodes } from "../assets.js"; import { auth } from "../auth/auth.js"; + import type { BrowserWindow as TBrowser } from 'electron'; -//@ts-ignore + const dynReq = (typeof __webpack_require__ === "function" ? __non_webpack_require__ : require) as NodeRequire; const BrowserWindow = dynReq("electron").BrowserWindow;