@directivegames/genesys.sdk 3.3.9 → 3.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -367,9 +367,15 @@ export async function buildProject(projectPath, runTsc, logger, handler) {
|
|
|
367
367
|
logger.log(`Using tsc: ${tscBinary}`);
|
|
368
368
|
// Only type check, don't emit files - esbuild will handle transpilation
|
|
369
369
|
// --incremental speeds up subsequent builds by caching results
|
|
370
|
-
await runCommandAsync(tscCommand, projectFolder, logger);
|
|
370
|
+
const tscResult = await runCommandAsync(tscCommand, projectFolder, logger);
|
|
371
371
|
const durationSec = (Date.now() - beginTime) / 1000;
|
|
372
372
|
logger.log(`Stats: TypeScript type checking completed in ${durationSec}s`);
|
|
373
|
+
if (tscResult.error && tscResult.error.code !== 0) {
|
|
374
|
+
// tsc outputs errors to stdout, not stderr
|
|
375
|
+
const errorOutput = tscResult.stdout || tscResult.stderr || tscResult.error.message;
|
|
376
|
+
await handler.ui.showErrorDialog('TypeScript type checking failed', errorOutput);
|
|
377
|
+
throw new Error(`TypeScript type checking failed: ${errorOutput}`);
|
|
378
|
+
}
|
|
373
379
|
}
|
|
374
380
|
{
|
|
375
381
|
const gameBundleFilePath = path.join(distFolder, ENGINE.DEFAULT_GAME_BUNDLE_NAME);
|
package/dist/src/dependencies.js
CHANGED
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
* Includes dependencies from the main package.
|
|
10
10
|
*/
|
|
11
11
|
export const DEPENDENCIES = {
|
|
12
|
+
'@directivegames/genesys.js': '3.1.25',
|
|
12
13
|
'@electron/rebuild': '4.0.1',
|
|
13
14
|
'@emotion/react': '11.14.0',
|
|
14
15
|
'@emotion/styled': '11.14.1',
|
|
15
16
|
'@mui/icons-material': '7.3.5',
|
|
16
17
|
'@mui/lab': '7.0.0',
|
|
17
18
|
'@mui/material': '7.3.5',
|
|
19
|
+
'@sentry/electron': '7.5.0',
|
|
18
20
|
'chokidar': '4.0.3',
|
|
19
21
|
'commander': '14.0.2',
|
|
20
22
|
'core-util-is': '1.0.3',
|
|
@@ -27,7 +29,6 @@ export const DEPENDENCIES = {
|
|
|
27
29
|
'esbuild': '0.25.12',
|
|
28
30
|
'express': '5.1.0',
|
|
29
31
|
'fix-path': '4.0.0',
|
|
30
|
-
'@directivegames/genesys.js': '3.1.25',
|
|
31
32
|
'jsdom': '27.2.0',
|
|
32
33
|
'minimatch': '10.1.1',
|
|
33
34
|
'multer': '2.0.2',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { fileURLToPath } from 'url';
|
|
4
|
-
import { app, dialog, Menu, session } from 'electron';
|
|
5
|
-
import { BrowserWindow } from 'electron';
|
|
4
|
+
import { app, BrowserWindow, dialog, Menu, session } from 'electron';
|
|
6
5
|
import isDev from 'electron-is-dev';
|
|
7
6
|
import log from 'electron-log';
|
|
8
7
|
import electronUpdater from 'electron-updater';
|
|
9
8
|
import { getAppInfo } from './handler.js';
|
|
10
9
|
import { configureLogging, logger } from './logging.js';
|
|
11
10
|
import { buildAppMenu } from './menu.js';
|
|
11
|
+
import { configureTelemetry } from './telemetry.js';
|
|
12
12
|
import { GENESYS_LOCAL_URL, GENESYS_URL } from './tools/const.js';
|
|
13
13
|
import { createWindow, parseFeatures } from './window.js';
|
|
14
14
|
const { autoUpdater } = electronUpdater;
|
|
@@ -23,6 +23,7 @@ export function getPendingDeepLinkUrl() {
|
|
|
23
23
|
export function clearPendingDeepLinkUrl() {
|
|
24
24
|
pendingDeepLinkUrl = null;
|
|
25
25
|
}
|
|
26
|
+
configureTelemetry();
|
|
26
27
|
configureLogging();
|
|
27
28
|
start();
|
|
28
29
|
function start() {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Sentry from '@sentry/electron';
|
|
2
|
+
export function configureTelemetry() {
|
|
3
|
+
if (process.env.NODE_ENV === 'development') {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
Sentry.init({
|
|
7
|
+
dsn: 'https://f95075352fdd4f89b0a2160f31e08a36@o17083.ingest.us.sentry.io/4505225795862528'
|
|
8
|
+
});
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@directivegames/genesys.sdk",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "Genesys SDK - A development toolkit for game development",
|
|
5
5
|
"author": "Directive Games",
|
|
6
6
|
"main": "index.js",
|
|
@@ -109,12 +109,14 @@
|
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
+
"@directivegames/genesys.js": "^3.1.24",
|
|
112
113
|
"@electron/rebuild": "^4.0.1",
|
|
113
114
|
"@emotion/react": "^11.14.0",
|
|
114
115
|
"@emotion/styled": "^11.14.0",
|
|
115
116
|
"@mui/icons-material": "^7.1.0",
|
|
116
117
|
"@mui/lab": "^7.0.0-beta.12",
|
|
117
118
|
"@mui/material": "^7.1.0",
|
|
119
|
+
"@sentry/electron": "^7.5.0",
|
|
118
120
|
"chokidar": "^4.0.3",
|
|
119
121
|
"commander": "^14.0.2",
|
|
120
122
|
"core-util-is": "^1.0.3",
|
|
@@ -127,7 +129,6 @@
|
|
|
127
129
|
"esbuild": "^0.25.11",
|
|
128
130
|
"express": "^5.1.0",
|
|
129
131
|
"fix-path": "^4.0.0",
|
|
130
|
-
"@directivegames/genesys.js": "^3.1.24",
|
|
131
132
|
"jsdom": "^27.0.0",
|
|
132
133
|
"minimatch": "^10.0.1",
|
|
133
134
|
"multer": "^2.0.2",
|