Skip to content

Commit 7f14271

Browse files
committed
lint
1 parent 0e82a08 commit 7f14271

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

packages/@apphosting/build/src/bin/localbuild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import { program } from "commander";
66
program
77
.argument("<projectRoot>", "path to the project's root directory")
88
.option("--framework <framework>")
9-
.action(async (projectRoot, opts) => {
10-
await localBuild(projectRoot, opts.framework);
9+
.action(async (projectRoot, opts) => {
10+
await localBuild(projectRoot, opts.framework);
1111
});
1212

1313
program.parse();

packages/@apphosting/build/src/index.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
import promiseSpawn from "@npmcli/promise-spawn";
2-
import { readFileSync, existsSync } from "fs"
2+
import { readFileSync, existsSync } from "fs";
33
import { join } from "path";
44
import { yellow, bgRed, bold } from "colorette";
55
import { OutputBundleConfig } from "@apphosting/common";
66
import { SupportedFrameworks, Framework } from "@apphosting/common";
77
import { parse as parseYaml } from "yaml";
88

9-
export async function localBuild(projectRoot: string, framework?: string): Promise<OutputBundleConfig> {
9+
export async function localBuild(
10+
projectRoot: string,
11+
framework?: string,
12+
): Promise<OutputBundleConfig> {
1013
if (framework && SupportedFrameworks.includes(framework as Framework)) {
1114
// TODO(#382): Skip this if there's a custom build command in apphosting.yaml.
1215
return await adapterBuild(projectRoot, framework);
1316
}
1417
throw new Error("framework not supported");
1518
}
1619

17-
export async function adapterBuild(projectRoot: string, framework: string): Promise<OutputBundleConfig> {
20+
export async function adapterBuild(
21+
projectRoot: string,
22+
framework: string,
23+
): Promise<OutputBundleConfig> {
1824
// TODO(#382): support other apphosting.*.yaml files.
1925
// TODO(#382): parse apphosting.yaml for environment variables / secrets needed during build time.
2026

packages/@apphosting/common/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import * as path from "node:path";
44

55
// List of apphosting supported frameworks.
66
export const SupportedFrameworks = ["nextjs", "angular"] as const;
7-
export type Framework = typeof SupportedFrameworks[number];
8-
7+
export type Framework = (typeof SupportedFrameworks)[number];
98

109
// **** OutputBundleConfig interfaces ****
1110

0 commit comments

Comments
 (0)