Skip to content

Commit

Permalink
fix: Fix issues in the build and release process.
Browse files Browse the repository at this point in the history
Fix/node 16 build
  • Loading branch information
alexanderson1993 authored May 28, 2024
2 parents 895fee0 + d3c5534 commit df7e5c5
Show file tree
Hide file tree
Showing 9 changed files with 4,396 additions and 4,419 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Cache node modules
uses: actions/cache@v1
env:
Expand Down Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- uses: actions/setup-python@v4
if: startsWith(matrix.os, 'macos')
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: Cache node modules
uses: actions/cache@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [3.13.0](https://github.com/Thorium-Sim/thorium/compare/3.12.1...3.13.0) (2024-05-27)


### Features

* Add manual Firebase integration for Space EdVentures data collection. ([34892e3](https://github.com/Thorium-Sim/thorium/commit/34892e3d167143254222a4ace51a6e922f2c767a))

## [3.12.1](https://github.com/Thorium-Sim/thorium/compare/3.12.0...3.12.1) (2024-03-16)


Expand Down
43 changes: 14 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thorium",
"version": "3.12.1",
"version": "3.13.0",
"description": "Starship Simulator Controls",
"private": true,
"repository": {
Expand All @@ -27,7 +27,7 @@
"start:client": "react-app-rewired start",
"start:server": "ts-node-dev --project server/tsconfig.json server/index.ts",
"watch:electron": "wait-on http://localhost:3000 && electron .",
"start:electron": "BROWSER=none npm-run-all --parallel -l start:client watch:server watch:electron",
"start:electron": "BROWSER=none npm-run-all --parallel -l start:client start:server watch:electron",
"build": "cross-env NODE_ENV=production npm-run-all build:*",
"build:client": "react-app-rewired --max_old_space_size=4096 build",
"build:server": "tsc -p server",
Expand Down Expand Up @@ -64,9 +64,7 @@
},
"proxy": "http://localhost:3001",
"nodemonConfig": {
"watch": [
"server/"
],
"watch": ["server/"],
"ignore": [
".git",
"./src/*",
Expand All @@ -82,12 +80,8 @@
"last 1 safari version"
],
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint"
],
"*.{css,scss}": [
"stylelint"
],
"*.{js,jsx,ts,tsx}": ["eslint"],
"*.{css,scss}": ["stylelint"],
"**/*.+(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|mdx|graphql|vue)": [
"prettier --write"
]
Expand All @@ -104,9 +98,7 @@
"directories": {
"output": "./packages"
},
"publish": {
"provider": "github"
},
"publish": { "provider": "github" },
"files": [
"electron/**/*",
"!**/node_modules/**/*",
Expand Down Expand Up @@ -135,15 +127,10 @@
]
},
"win": {
"target": [
"zip",
"portable"
],
"target": ["zip", "portable"],
"icon": "./public/icon.ico"
},
"linux": {
"category": "Utility"
}
"linux": { "category": "Utility" }
},
"bin": "./server/index.js",
"pkg": {
Expand All @@ -163,9 +150,7 @@
]
},
"release": {
"branches": [
"main"
],
"branches": ["main"],
"tagFormat": "${version}",
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down Expand Up @@ -257,6 +242,7 @@
"react-use-gesture": "^7.0.4",
"request": "^2.88.0",
"rng": "^0.2.2",
"sass": "^1.77.2",
"simplex-noise": "^2.4.0",
"subscriptions-transport-ws": "^0.9.16",
"three": "^0.116.1",
Expand Down Expand Up @@ -327,11 +313,11 @@
"babel-preset-react": "^6.24.1",
"babel-preset-react-app": "^9.0.2",
"bodymovin": "^4.13.0",
"bootstrap": "^4.3.1",
"canvas": "^2.6.0",
"bootstrap": "^4.6.0",
"canvas": "^2.11.2",
"centered-pan-zoom": "^2.0.0",
"cross-env": "^7.0.0",
"electron": "^9.0.4",
"electron": "^11.0.0",
"electron-builder": "23.0.2",
"electron-builder-notarize": "^1.1.2",
"electron-notarize": "^1.0.0",
Expand All @@ -347,7 +333,6 @@
"lint-staged": "^10.2.4",
"match-sorter": "^4.0.2",
"midimessage": "^1.0.5",
"node-sass": "^4.12.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"rc-menu": "^8.0.0-alpha.1",
Expand Down Expand Up @@ -401,7 +386,7 @@
"@babel/preset-env": "^7.8.7"
},
"volta": {
"node": "14.21.3"
"node": "16.20.2"
},
"packageManager": "[email protected]"
}
3 changes: 2 additions & 1 deletion public/electron/helpers/multiWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ function addWindow({main, x, y, loadedUrl, server}) {
kiosk: false,
webPreferences: {
contextIsolation: true,
nodeIntegration: false,
nodeIntegration: true,
sandbox: true,
enableRemoteModule: true
},
};
if (server) {
Expand Down
2 changes: 1 addition & 1 deletion server/bootstrap/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function responseForOperation(requestContext) {
opName,
requestContext.context,
);
timeout = setTimeout(() => resolve({error: "fail"}), 500);
timeout = setTimeout(() => { resolve({ error: "fail", data: {} }) }, 500);
});
}

Expand Down
Loading

0 comments on commit df7e5c5

Please sign in to comment.