Skip to content

Commit 3eeb478

Browse files
committed
fix app dependencies for app production builds
1 parent c8d2f4b commit 3eeb478

File tree

5 files changed

+50
-86
lines changed

5 files changed

+50
-86
lines changed

app-shell/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"@types/pump": "^1.1.0",
4545
"@types/uuid": "^3.4.7",
4646
"ajv": "6.12.3",
47+
"axios": "^0.21.1",
4748
"dateformat": "3.0.3",
4849
"electron-context-menu": "3.6.1",
4950
"electron-debug": "3.0.1",
@@ -54,6 +55,7 @@
5455
"form-data": "2.5.0",
5556
"fs-extra": "10.0.0",
5657
"get-stream": "5.1.0",
58+
"lodash": "4.17.21",
5759
"merge-options": "1.0.1",
5860
"mqtt": "4.3.8",
5961
"node-fetch": "2.6.7",

app/package.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
"@types/mixpanel-browser": "^2.35.6",
7575
"@types/node-fetch": "2.6.11",
7676
"@types/styled-components": "^5.1.26",
77-
"axios": "^0.21.1"
77+
"axios": "^0.21.1",
78+
"postcss-apply": "0.12.0",
79+
"postcss-color-mod-function": "3.0.3",
80+
"postcss-import": "16.0.0",
81+
"postcss-preset-env": "9.3.0"
7882
}
7983
}

app/src/redux/shell/remote.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
// access main process remote modules via attachments to `global`
2-
3-
import assert from 'assert'
42
import { EventEmitter } from 'events'
53

64
import type { AxiosRequestConfig } from 'axios'
@@ -11,12 +9,12 @@ const emptyRemote: Remote = {} as any
119

1210
export const remote: Remote = new Proxy(emptyRemote, {
1311
get(_target, propName: string): unknown {
14-
assert(
12+
console.assert(
1513
(global as any).APP_SHELL_REMOTE,
1614
'Expected APP_SHELL_REMOTE to be attached to global scope; is app-shell/src/preload.ts properly configured?'
1715
)
1816

19-
assert(
17+
console.assert(
2018
propName in (global as any).APP_SHELL_REMOTE,
2119
`Expected APP_SHELL_REMOTE.${propName} to exist, is app-shell/src/preload.ts properly configured?`
2220
)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@cypress/webpack-preprocessor": "^5.1.2",
18-
"@electron/rebuild": "3.3.0",
18+
"@electron/rebuild": "3.2.10",
1919
"@octokit/rest": "^19.0.5",
2020
"@rollup/plugin-alias": "^3.1.2",
2121
"@rollup/plugin-babel": "^5.3.0",

0 commit comments

Comments
 (0)