Skip to content

Commit

Permalink
Build dependency update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanro50 committed Jul 31, 2022
1 parent f9494bf commit 6d12880
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
}
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/gui/electron.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 6d12880

Please sign in to comment.