Skip to content

Commit

Permalink
fix(remix-testing): fix deps (#4757)
Browse files Browse the repository at this point in the history
* Fix deps for new remix-testing package

* fix lint
  • Loading branch information
brophdawg11 committed Dec 2, 2022
1 parent f7e8020 commit 81bea3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
18 changes: 0 additions & 18 deletions packages/remix-server-runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,3 @@ export type {
UploadHandler,
UploadHandlerPart,
} from "./reexport";

export type {
AgnosticDataRouteObject,
AgnosticIndexRouteObject,
AgnosticNonIndexRouteObject,
AgnosticRouteObject,
InitialEntry,
Location,
MemoryHistory,
StaticHandler,
} from "./router";
export {
createMemoryHistory,
matchRoutes,
unstable_createStaticHandler,
} from "./router";
export type { Update } from "./router/history";
export type { AgnosticRouteMatch } from "./router/utils";
13 changes: 9 additions & 4 deletions packages/remix-testing/create-remix-stub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type {
} from "@remix-run/react";
import { RemixEntry } from "@remix-run/react";
import type {
Action,
AgnosticDataRouteObject,
AgnosticIndexRouteObject,
AgnosticNonIndexRouteObject,
Expand All @@ -17,14 +18,18 @@ import type {
Location,
MemoryHistory,
StaticHandler,
Update,
} from "@remix-run/server-runtime";
} from "@remix-run/router";
import {
createMemoryHistory,
json,
matchRoutes,
unstable_createStaticHandler as createStaticHandler,
} from "@remix-run/server-runtime";
} from "@remix-run/router";
import { json } from "@remix-run/server-runtime";

type Update = {
action: Action;
location: Location;
};

type RemixStubOptions = {
/**
Expand Down
1 change: 1 addition & 0 deletions packages/remix-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"dependencies": {
"@remix-run/node": "1.8.0",
"@remix-run/react": "1.8.0",
"@remix-run/router": "1.0.4",
"@remix-run/server-runtime": "1.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
Expand Down

0 comments on commit 81bea3f

Please sign in to comment.