Skip to content

Commit 6f773a7

Browse files
committed
Prettify
1 parent fef3495 commit 6f773a7

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

cli.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ compilerInstance.ports.completeStaticBuild.subscribe(async function (output) {
2727
// For snapshots to work we need to wrap the function call that starts
2828
// the Gren application, with a hint that tells the V8 engine what the
2929
// main function is
30-
30+
3131
const compiledSrc = await fs.readFile(jsBuildPath, "utf-8");
32-
32+
3333
const initRegex = /this\.Gren\..+\(\{\}\);/g;
3434
const initCall = compiledSrc.match(initRegex)[0];
3535
const snapshotCompatibleSrc = compiledSrc.replace(
@@ -41,15 +41,15 @@ v8.startupSnapshot.setDeserializeMainFunction(function() {
4141
});
4242
`,
4343
);
44-
44+
4545
await fs.writeFile(jsBuildPath, snapshotCompatibleSrc);
4646

4747
// We then need to generate the snapshot
48-
48+
4949
const nodePath = process.execPath;
5050
await fs.writeFile(seaConfigPath, JSON.stringify(seaConfig));
5151
cp.execFileSync(nodePath, ["--experimental-sea-config", seaConfigPath]);
52-
52+
5353
// Then copy the node executable and inject the snapshot into it
5454
await fs.copyFile(nodePath, binPath);
5555

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ async function execute(path, args, options) {
2626
/* Get the version of the Gren compiler
2727
*/
2828
async function version() {
29-
const stdout = await handleFailableExecution(process.cwd(), ["--version"], {});
29+
const stdout = await handleFailableExecution(
30+
process.cwd(),
31+
["--version"],
32+
{},
33+
);
3034
return stdout.trim();
3135
}
3236

terminal/Docs.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ data Output
3636

3737
-- RUN
3838

39-
type Task a = Task.Task Exit.Docs a
39+
type Task a = Task.Task Exit.Docs a
4040

4141
run :: Flags -> IO ()
4242
run flags@(Flags _ report) =

0 commit comments

Comments
 (0)