Skip to content

Commit a8426a5

Browse files
committed
Fix all build issues
This includes some new tsconfigs like verbatimModuleSyntax (all the "type" additions to imports) Some changes to imports in storybook entry files Adding non-module css files to Global.d.ts Adding @types/hast and hast-util-sanitize dependencies, that were missing
1 parent eb9d3c2 commit a8426a5

File tree

75 files changed

+216
-182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+216
-182
lines changed

apps/cyberstorm-remix/app/c/community.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { faBook, faDownload } from "@fortawesome/free-solid-svg-icons";
2222
import { faDiscord } from "@fortawesome/free-brands-svg-icons";
2323
import { faArrowUpRight } from "@fortawesome/pro-solid-svg-icons";
2424
import { DapperTs } from "@thunderstore/dapper-ts";
25-
import { OutletContextShape } from "../root";
25+
import { type OutletContextShape } from "../root";
2626
import {
2727
getPublicEnvVariables,
2828
getSessionTools,

apps/cyberstorm-remix/app/c/tabs/PackageSearch/PackageSearch.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
getPublicEnvVariables,
77
getSessionTools,
88
} from "cyberstorm/security/publicEnvVariables";
9-
import { OutletContextShape } from "~/root";
10-
import { Route } from "./+types/PackageSearch";
9+
import { type OutletContextShape } from "~/root";
10+
import type { Route } from "./+types/PackageSearch";
1111

1212
export async function loader({ params, request }: Route.LoaderArgs) {
1313
if (params.communityId) {

apps/cyberstorm-remix/app/commonComponents/Markdown/Sanitize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Schema, sanitize } from "hast-util-sanitize";
2-
import { type Nodes } from "hast";
1+
import { type Schema, sanitize } from "hast-util-sanitize";
2+
import type { Nodes } from "hast";
33

44
/**
55
* Based on:

apps/cyberstorm-remix/app/p/dependants/Dependants.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import "./Dependants.css";
88
import { PackageSearch } from "~/commonComponents/PackageSearch/PackageSearch";
99
import { DapperTs } from "@thunderstore/dapper-ts";
1010
import { PackageOrderOptions } from "../../commonComponents/PackageSearch/components/PackageOrder";
11-
import { OutletContextShape } from "../../root";
11+
import { type OutletContextShape } from "../../root";
1212
import { PageHeader } from "~/commonComponents/PageHeader/PageHeader";
1313
import {
1414
getPublicEnvVariables,
1515
getSessionTools,
1616
} from "cyberstorm/security/publicEnvVariables";
17-
import { Route } from "./+types/Dependants";
17+
import type { Route } from "./+types/Dependants";
1818
import { Suspense } from "react";
1919

2020
export async function loader({ params, request }: Route.LoaderArgs) {

apps/cyberstorm-remix/app/p/packageEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from "@thunderstore/thunderstore-api";
1818
import { formatToDisplayName } from "@thunderstore/cyberstorm/src/utils/utils";
1919
import { DapperTs } from "@thunderstore/dapper-ts";
20-
import { OutletContextShape } from "~/root";
20+
import { type OutletContextShape } from "~/root";
2121
import {
2222
getPublicEnvVariables,
2323
getSessionTools,

apps/cyberstorm-remix/app/p/packageListing.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import {
7272
formatToDisplayName,
7373
} from "@thunderstore/cyberstorm/src/utils/utils";
7474
import { DapperTs } from "@thunderstore/dapper-ts";
75-
import { OutletContextShape } from "~/root";
75+
import { type OutletContextShape } from "~/root";
7676
import { CopyButton } from "~/commonComponents/CopyButton/CopyButton";
7777
import {
7878
getPublicEnvVariables,

apps/cyberstorm-remix/app/p/tabs/Required/Required.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Await, LoaderFunctionArgs } from "react-router";
44
import { useLoaderData, useOutletContext } from "react-router";
55
import { ListingDependency } from "~/commonComponents/ListingDependency/ListingDependency";
66
import { DapperTs } from "@thunderstore/dapper-ts";
7-
import { OutletContextShape } from "~/root";
7+
import { type OutletContextShape } from "~/root";
88
import {
99
getPublicEnvVariables,
1010
getSessionTools,

apps/cyberstorm-remix/app/p/tabs/Wiki/Wiki.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
import { NewButton, NewIcon, SkeletonBox } from "@thunderstore/cyberstorm";
1616
import { faPlus } from "@fortawesome/pro-solid-svg-icons";
1717
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
18-
import { OutletContextShape } from "~/root";
18+
import { type OutletContextShape } from "~/root";
1919
import { Suspense } from "react";
2020
import { ApiError } from "../../../../../../packages/thunderstore-api/src";
2121
import { getPackageWiki } from "@thunderstore/dapper-ts/src/methods/package";

apps/cyberstorm-remix/app/p/tabs/Wiki/WikiNewPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
PackageWikiPageCreateRequestData,
2020
postPackageWikiPageCreate,
2121
} from "@thunderstore/thunderstore-api";
22-
import { OutletContextShape } from "~/root";
22+
import { type OutletContextShape } from "~/root";
2323
import { Markdown } from "~/commonComponents/Markdown/Markdown";
2424
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
2525

apps/cyberstorm-remix/app/p/tabs/Wiki/WikiPageEdit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import {
2929
postPackageWikiPageEdit,
3030
RequestConfig,
3131
} from "@thunderstore/thunderstore-api";
32-
import { OutletContextShape } from "~/root";
32+
import { type OutletContextShape } from "~/root";
3333
import { Markdown } from "~/commonComponents/Markdown/Markdown";
3434
import { classnames } from "@thunderstore/cyberstorm/src/utils/utils";
3535
import { ApiAction } from "@thunderstore/ts-api-react-actions";

0 commit comments

Comments
 (0)