Skip to content

Commit

Permalink
Fix format and build order
Browse files Browse the repository at this point in the history
  • Loading branch information
bterlson committed Sep 11, 2024
1 parent fa66701 commit d55ef12
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/components/Declaration.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Children } from "@alloy-js/core/jsx-runtime";
import { OutputSymbol } from "../binder.js";
import { createContext, useContext, ComponentContext } from "../context.js";
import { Refkey, refkey } from "../refkey.js";
import { useContext } from "../context.js";
import { BinderContext } from "../context/binder.js";
import { DeclarationContext } from "../context/declaration.js";
import { Refkey, refkey } from "../refkey.js";

export interface DeclarationProps {
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/Output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import { NamePolicy } from "../name-policy.js";
import { SourceDirectory } from "./SourceDirectory.js";

// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { SourceFile } from "./SourceFile.js";
import { BinderContext } from "../context/binder.js";
import { NamePolicyContext } from "../context/name-policy.js";
import { SourceFile } from "./SourceFile.js";

export interface OutputProps {
children?: Children;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/components/SourceFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
} from "@alloy-js/core/jsx-runtime";
import { join } from "pathe";
import { useContext } from "../context.js";
import { Refkey } from "../refkey.js";
import { SourceDirectoryContext } from "../context/source-directory.js";
import { SourceFileContext } from "../context/source-file.js";
import { Refkey } from "../refkey.js";

export interface SourceFileProps {
path: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/components/source-file.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
useContext,
} from "@alloy-js/core";
import { expect, it } from "vitest";
import "../../testing/extend-expect.js";
import { SourceDirectoryContext } from "../../src/context/source-directory.js";
import "../../testing/extend-expect.js";

it("tracks its content", () => {
let context;
Expand Down
2 changes: 1 addition & 1 deletion packages/csharp/src/components/Class.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from "../modifiers.js";
import { useCSharpNamePolicy } from "../name-policy.js";
import { CSharpOutputSymbol } from "../symbols/csharp-output-symbol.js";
import { useCSharpScope, createCSharpMemberScope } from "../symbols/scopes.js";
import { createCSharpMemberScope, useCSharpScope } from "../symbols/scopes.js";
import { Name } from "./Name.jsx";
import { Parameters } from "./Parameters.jsx";

Expand Down
2 changes: 1 addition & 1 deletion packages/csharp/src/components/Enum.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as core from "@alloy-js/core";
import { AccessModifier, getAccessModifier } from "../modifiers.js";
import { useCSharpNamePolicy } from "../name-policy.js";
import { CSharpOutputSymbol } from "../symbols/csharp-output-symbol.js";
import { useCSharpScope, createCSharpMemberScope } from "../symbols/scopes.js";
import { createCSharpMemberScope, useCSharpScope } from "../symbols/scopes.js";
import { Name } from "./Name.jsx";

// properties for creating an enum
Expand Down
3 changes: 3 additions & 0 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
"@microsoft/api-extractor": "^7.47.7",
"@microsoft/api-extractor-model": "^7.29.6",
"@microsoft/tsdoc": "^0.15.0",
"@alloy-js/typescript": "workspace:~",
"@alloy-js/java": "workspace:~",
"@alloy-js/csharp": "workspace:~",
"redent": "^4.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
}
}
2 changes: 0 additions & 2 deletions packages/typescript/src/components/BarrelFile.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {
mapJoin,
memo,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
SourceDirectory,
SourceDirectoryContext,
useContext,
} from "@alloy-js/core";
Expand Down
2 changes: 0 additions & 2 deletions packages/typescript/src/components/Declaration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import { TypeDeclaration } from "./TypeDeclaration.jsx";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { EnumDeclaration } from "./EnumDeclaration.jsx";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { VarDeclaration } from "./VarDeclaration.jsx";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { FunctionDeclaration } from "./FunctionDeclaration.jsx";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import { InterfaceDeclaration } from "./Interface.jsx";

Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/src/components/FunctionDeclaration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { Children } from "@alloy-js/core/jsx-runtime";
import { useTSNamePolicy } from "../name-policy.js";
import { createTSSymbol, TSSymbolFlags, useTSScope } from "../symbols/index.js";
import { Declaration, BaseDeclarationProps } from "./Declaration.js";
import { BaseDeclarationProps, Declaration } from "./Declaration.js";
import { Name } from "./Name.js";

export interface ParameterDescriptor {
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/src/components/TypeDeclaration.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Declaration, BaseDeclarationProps } from "./Declaration.js";
import { BaseDeclarationProps, Declaration } from "./Declaration.js";
import { Name } from "./Name.js";

export interface TypeDeclarationProps extends BaseDeclarationProps {}
Expand Down

0 comments on commit d55ef12

Please sign in to comment.