Skip to content

Commit 6c3b802

Browse files
committed
fix fmt
1 parent aea6f30 commit 6c3b802

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

backend/instance.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { Location } from "./location";
77
import { createPeer, InjectExpress } from "./app";
88
import { AppInfo } from "./appInfo";
99
import { getColorForId } from "./color";
10-
import { Instance as FrontendInstance } from '../types/instance';
11-
import { getInstanceUrl } from './instance_url';
10+
import { Instance as FrontendInstance } from "../types/instance";
11+
import { getInstanceUrl } from "./instance_url";
1212

1313
export type Options = {
1414
basePort: number;

backend/instance_url.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { isWebContainer, HostURL } from '@webcontainer/env';
1+
import { isWebContainer, HostURL } from "@webcontainer/env";
22

33
export function getInstanceUrl(port: number) {
44
if (isWebContainer()) {

backend/run.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import process from 'process';
2-
import open from 'open';
1+
import process from "process";
2+
import open from "open";
33

4-
import { createFrontend, InjectExpress } from './app';
5-
import { Instances, Options } from './instance';
6-
import { getLocation, Location, LocationError } from './location';
7-
import { getAppInfo, AppInfo, AppInfoError } from './appInfo';
4+
import { createFrontend, InjectExpress } from "./app";
5+
import { Instances, Options } from "./instance";
6+
import { getLocation, Location, LocationError } from "./location";
7+
import { getAppInfo, AppInfo, AppInfoError } from "./appInfo";
88

99
export type Inject = {
1010
injectFrontend: InjectExpress;
@@ -29,12 +29,12 @@ function actualRun(appInfo: AppInfo, options: Options, inject: Inject): void {
2929
);
3030

3131
frontend.listen(options.basePort, () => {
32-
console.log('Starting webxdc-dev frontend');
32+
console.log("Starting webxdc-dev frontend");
3333
});
3434

3535
instances.start();
3636

37-
open('http://localhost:' + options.basePort);
37+
open("http://localhost:" + options.basePort);
3838
}
3939

4040
export function run(locationStr: string, options: Options, inject: Inject) {
@@ -49,13 +49,13 @@ export function run(locationStr: string, options: Options, inject: Inject) {
4949
throw e;
5050
}
5151

52-
for (const signal in ['SIGINT', 'SIGTERM']) {
52+
for (const signal in ["SIGINT", "SIGTERM"]) {
5353
process.on(signal, () => {
5454
location.dispose();
5555
});
5656
}
5757

58-
console.log('Starting webxdc project in:', locationStr);
58+
console.log("Starting webxdc project in:", locationStr);
5959

6060
getAppInfo(location)
6161
.then((appInfo) => {

sim/webxdc.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export class DevServerTransport implements Transport {
7575
request.onsuccess = (ev) => resolve(ev);
7676
request.onerror = (ev) => reject(ev);
7777
});
78-
})
78+
}),
7979
);
8080

8181
// we want to reload the window otherwise we won't take the

0 commit comments

Comments
 (0)