Skip to content

Commit 88f05b2

Browse files
huntiefacebook-github-bot
authored andcommitted
Fix build for debugger-shell (facebook#53924)
Summary: Pull Request resolved: facebook#53924 Fix failing `yarn build` runs following D83070252. Changelog: [Internal] Reviewed By: motiz88 Differential Revision: D83161092 fbshipit-source-id: 3e9e984699750add82794281a387eac0534da60d
1 parent dc37368 commit 88f05b2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/debugger-shell/src/electron/MainInstanceEntryPoint.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
* @format
99
*/
1010

11-
// $FlowFixMe[unclear-type] We have no Flow types for the Electron API.
12-
const {BrowserWindow, Menu, app, shell, ipcMain} = require('electron') as any;
13-
const SettingsStore = require('./SettingsStore.js');
11+
import SettingsStore from './SettingsStore.js';
12+
1413
const path = require('path');
1514
const util = require('util');
1615

16+
// $FlowFixMe[unclear-type] We have no Flow types for the Electron API.
17+
const {BrowserWindow, Menu, app, shell, ipcMain} = require('electron') as any;
18+
1719
const appSettings = new SettingsStore();
1820
const windowMetadata = new WeakMap<
1921
typeof BrowserWindow,

packages/debugger-shell/src/electron/SettingsStore.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Options = $ReadOnly<{
2929
* - Maintains API and file format compatibility with `electron-store@8.2.0`.
3030
* - Supports the Electron main process only.
3131
*/
32-
class SettingsStore {
32+
export default class SettingsStore {
3333
#defaultValues: Object = {};
3434
path: string;
3535

@@ -126,5 +126,3 @@ class SettingsStore {
126126
fs.writeFileSync(this.path, data, {mode: 0o666});
127127
}
128128
}
129-
130-
module.exports = SettingsStore;

0 commit comments

Comments
 (0)