diff --git a/cli/sync.ts b/cli/sync.ts index 151244709b..89f7b8dae4 100644 --- a/cli/sync.ts +++ b/cli/sync.ts @@ -356,12 +356,12 @@ function ZipFSElement( ) ? "flow" : p.endsWith("app.json") - ? "app" - : p.endsWith("script.json") - ? "script" - : p.endsWith("resource.json") - ? "resource" - : "other"; + ? "app" + : p.endsWith("script.json") + ? "script" + : p.endsWith("resource.json") + ? "resource" + : "other"; const isJson = p.endsWith(".json"); @@ -391,7 +391,7 @@ function ZipFSElement( yield { isDirectory: false, path: path.join(finalPath, s.path), - async *getChildren() {}, + async *getChildren() { }, // deno-lint-ignore require-await async getContentText() { return s.content; @@ -402,7 +402,7 @@ function ZipFSElement( yield { isDirectory: false, path: path.join(finalPath, "flow.yaml"), - async *getChildren() {}, + async *getChildren() { }, // deno-lint-ignore require-await async getContentText() { return yamlStringify(flow, yamlOptions); @@ -418,7 +418,7 @@ function ZipFSElement( yield { isDirectory: false, path: path.join(finalPath, s.path), - async *getChildren() {}, + async *getChildren() { }, // deno-lint-ignore require-await async getContentText() { return s.content; @@ -429,7 +429,7 @@ function ZipFSElement( yield { isDirectory: false, path: path.join(finalPath, "app.yaml"), - async *getChildren() {}, + async *getChildren() { }, // deno-lint-ignore require-await async getContentText() { return yamlStringify(app, yamlOptions); @@ -494,7 +494,7 @@ function ZipFSElement( r.push({ isDirectory: false, path: removeSuffix(finalPath, ".json") + ".lock", - async *getChildren() {}, + async *getChildren() { }, // deno-lint-ignore require-await async getContentText() { return lock; @@ -517,7 +517,7 @@ function ZipFSElement( removeSuffix(finalPath, ".resource.json") + ".resource.file." + formatExtension, - async *getChildren() {}, + async *getChildren() { }, // deno-lint-ignore require-await async getContentText() { return fileContent; @@ -578,19 +578,19 @@ export async function* readDirRecursiveWithIgnore( // getContentBytes(): Promise; getContentText(): Promise; }[] = [ - { - path: root.path, - ignored: ignore(root.path, root.isDirectory), - isDirectory: root.isDirectory, - c: root.getChildren, - // getContentBytes(): Promise { - // throw undefined; - // }, - getContentText(): Promise { - throw undefined; + { + path: root.path, + ignored: ignore(root.path, root.isDirectory), + isDirectory: root.isDirectory, + c: root.getChildren, + // getContentBytes(): Promise { + // throw undefined; + // }, + getContentText(): Promise { + throw undefined; + }, }, - }, - ]; + ]; while (stack.length > 0) { const e = stack.pop()!; @@ -721,9 +721,9 @@ async function compareDynFSElement( ): Promise { const [m1, m2] = els2 ? await Promise.all([ - elementsToMap(els1, ignore, json, skips), - elementsToMap(els2, ignore, json, skips), - ]) + elementsToMap(els1, ignore, json, skips), + elementsToMap(els2, ignore, json, skips), + ]) : [await elementsToMap(els1, ignore, json, skips), {}]; const changes: Change[] = []; @@ -1273,8 +1273,8 @@ function prettyChanges(changes: Change[]) { log.info( colors.yellow( `~ ${getTypeStrFromPath(change.path)} ` + - change.path + - (change.codebase ? ` (codebase changed)` : "") + change.path + + (change.codebase ? ` (codebase changed)` : "") ) ); if (change.before != change.after) { @@ -1479,8 +1479,7 @@ export async function push(opts: GlobalOptions & SyncOptions) { } const groupedChangesArray = Array.from(groupedChanges.entries()); log.info( - `found changes for ${ - groupedChangesArray.length + `found changes for ${groupedChangesArray.length } items with a total of ${groupedChangesArray.reduce( (acc, [_, changes]) => acc + changes.length, 0 @@ -1787,8 +1786,7 @@ export async function push(opts: GlobalOptions & SyncOptions) { } log.info( colors.bold.green.underline( - `\nDone! All ${changes.length} changes pushed to the remote workspace ${ - workspace.workspaceId + `\nDone! All ${changes.length} changes pushed to the remote workspace ${workspace.workspaceId } named ${workspace.name} (${(performance.now() - start).toFixed(0)}ms)` ) );