Skip to content

Commit

Permalink
chore: add /routes entry
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed Sep 4, 2023
1 parent 45c055e commit 8fbb838
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 5 deletions.
6 changes: 6 additions & 0 deletions packages/vite-plugin-react-convention-routes/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @orca-fe/vite-plugin-react-convention-routes

## 0.0.6

### Patch Changes

- chore: add /routes entry

## 0.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-react-convention-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orca-fe/vite-plugin-react-convention-routes",
"version": "0.0.5",
"version": "0.0.6",
"type": "module",
"description": "A vite plugin for react convention routes",
"keywords": [
Expand Down
4 changes: 4 additions & 0 deletions packages/vite-plugin-react-convention-routes/routes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import './typing.d';
import routes from 'virtual:convention-routes';

export default routes;
3 changes: 3 additions & 0 deletions packages/vite-plugin-react-convention-routes/routes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import routes from 'virtual:convention-routes';

export default routes;
11 changes: 7 additions & 4 deletions packages/vite-plugin-react-convention-routes/typing.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
declare module 'virtual:convention-routes' {
import type { RouteObject } from 'react-router';
declare global {
declare module 'virtual:convention-routes' {
import type { RouteObject } from 'react-router';

export const routes: RouteObject [];
export default routes;
}

export const routes: RouteObject [];
export default routes;
}

0 comments on commit 8fbb838

Please sign in to comment.