Skip to content

Commit 276099c

Browse files
committed
Apply biome check and organize all imports.
1 parent f52bd8c commit 276099c

8 files changed

Lines changed: 9 additions & 10 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AIDBOX_LICENSE_ID ?=
22

33
TYPECHECK = bunx tsc --noEmit
44
FORMAT = bunx biome format --write
5-
LINT = bunx biome lint --diagnostic-level=error --write --unsafe
5+
LINT = bunx biome check --diagnostic-level=error --write --unsafe
66
TEST = bun test
77

88
.PHONY: all typecheck test-typeschema test-register test-codegen test-typescript-r4-example

src/api/builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import * as Path from "node:path";
1111
import { CanonicalManager } from "@atomic-ehr/fhir-canonical-manager";
1212
import { CSharp } from "@root/api/writer-generator/csharp/csharp";
1313
import { registerFromManager } from "@root/typeschema/register";
14-
import { mkTypeSchemaIndex, type TreeShake, treeShake, type TypeSchemaIndex } from "@root/typeschema/utils";
14+
import { mkTypeSchemaIndex, type TreeShake, type TypeSchemaIndex, treeShake } from "@root/typeschema/utils";
1515
import { generateTypeSchemas, TypeSchemaGenerator, TypeSchemaParser } from "@typeschema/index";
1616
import { extractNameFromCanonical, packageMetaToFhir, packageMetaToNpm, type TypeSchema } from "@typeschema/types";
1717
import type { TypeSchemaConfig } from "../config";

src/api/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99

1010
export type { APIBuilderOptions } from "./builder";
11-
export type { TypeScriptOptions } from "./writer-generator/typescript";
12-
export type { CSharpGeneratorOptions } from "./writer-generator/csharp/csharp";
13-
1411
export { APIBuilder } from "./builder";
12+
export type { CSharpGeneratorOptions } from "./writer-generator/csharp/csharp";
13+
export type { TypeScriptOptions } from "./writer-generator/typescript";

src/api/writer-generator/csharp/csharp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from "node:fs";
22
import Path from "node:path";
33
import { pascalCase, uppercaseFirstLetter, uppercaseFirstLetterOfEach } from "@root/api/writer-generator/utils.ts";
4-
import { Writer, type PartialBy, type WriterOptions } from "@root/api/writer-generator/writer.ts";
4+
import { type PartialBy, Writer, type WriterOptions } from "@root/api/writer-generator/writer.ts";
55
import type { Field, Identifier, RegularField } from "@typeschema/types";
66
import { type ChoiceFieldInstance, isChoiceDeclarationField, type RegularTypeSchema } from "@typeschema/types.ts";
77
import type { TypeSchemaIndex } from "@typeschema/utils.ts";

src/cli/commands/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
import { existsSync } from "node:fs";
99
import { resolve } from "node:path";
10+
import { createLogger, error, step, success, warn } from "@root/utils/codegen-logger";
1011
import type { CommandModule } from "yargs";
1112
import { APIBuilder } from "../../api/index";
1213
import { CONFIG_FILE_NAMES, loadConfig } from "../../config";
13-
import { createLogger, error, step, success, warn } from "@root/utils/codegen-logger";
1414
import type { CLIArgv } from "./index";
1515

1616
interface GenerateArgs extends CLIArgv {

src/cli/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* Modern CLI with subcommands for typeschema and code generation
77
*/
88

9+
import { configure, error, header } from "@root/utils/codegen-logger";
910
import yargs from "yargs";
1011
import { hideBin } from "yargs/helpers";
11-
import { configure, error, header } from "@root/utils/codegen-logger";
1212
import { generateCommand } from "./generate";
1313
import { typeschemaCommand } from "./typeschema";
1414

src/cli/commands/typeschema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Commands for validating and managing TypeSchema files
55
*/
66

7-
import type { CommandModule } from "yargs";
87
import { error, info, list } from "@root/utils/codegen-logger";
8+
import type { CommandModule } from "yargs";
99
import { generateTypeschemaCommand } from "./typeschema/generate";
1010

1111
/**

src/cli/commands/typeschema/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66

77
import { mkdir, writeFile } from "node:fs/promises";
88
import { dirname } from "node:path";
9+
import { complete, createLogger, list } from "@root/utils/codegen-logger";
910
import { TypeSchemaGenerator } from "@typeschema/generator";
1011
import type { CommandModule } from "yargs";
1112
import { loadConfig } from "../../../config";
12-
import { complete, createLogger, list } from "@root/utils/codegen-logger";
1313

1414
interface GenerateTypeschemaArgs {
1515
packages: string[];

0 commit comments

Comments
 (0)