Skip to content

Commit

Permalink
Move router types to /types to keep consistency
Browse files Browse the repository at this point in the history
The rest of the packages now export types in the types.ts file of the
root.
  • Loading branch information
luisherranz committed Mar 5, 2020
1 parent 6b9db57 commit fe790be
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions .changeset/mighty-books-doubt.md
@@ -0,0 +1,7 @@
---
"@frontity/head-tags": patch
"@frontity/router": patch
"@frontity/tiny-router": patch
---

Move router types to @frontity/router/types file to match the placement of the rest of the packages.
6 changes: 3 additions & 3 deletions packages/head-tags/package.json
Expand Up @@ -24,12 +24,12 @@
"url": "https://github.com/frontity/frontity/issues"
},
"dependencies": {
"frontity": "^1.5.0"
"frontity": "^1.5.0",
"@frontity/router": "^1.0.17",
"@frontity/source": "^1.1.0"
},
"devDependencies": {
"@frontity/connect": "^1.0.4",
"@frontity/router": "^1.0.17",
"@frontity/source": "^1.1.0",
"@frontity/wp-source": "^1.5.0"
}
}
2 changes: 1 addition & 1 deletion packages/head-tags/types.ts
@@ -1,6 +1,6 @@
import { Package, Derived } from "frontity/types";
import { InitializedStore } from "@frontity/connect";
import Router from "@frontity/router";
import Router from "@frontity/router/types";
import Source, {
TaxonomyEntity,
PostEntity,
Expand Down
3 changes: 2 additions & 1 deletion packages/router/__tests__/index.test.ts
@@ -1,4 +1,5 @@
import Router from "..";
/* eslint-disable @typescript-eslint/no-unused-vars */
import Router from "../types";

const router: Router = {
state: {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/tiny-router/types.ts
@@ -1,4 +1,4 @@
import Router from "@frontity/router";
import Router from "@frontity/router/types";
import Source from "@frontity/source/types";
import { Action, ServerAction } from "frontity/types";

Expand Down

0 comments on commit fe790be

Please sign in to comment.