diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c911a99..1a3c3a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,7 +42,7 @@ jobs: run: npm run test-ci - name: 'Report Coverage' - if: always() + if: (github.event_name == 'pull_request' && github.event.action != 'closed') uses: davelosert/vitest-coverage-report-action@v2 - name: Building Frontend diff --git a/examples/react-tanstack-router/src/routeTree.gen.ts b/examples/react-tanstack-router/src/routeTree.gen.ts index 289f6b1..95a682f 100644 --- a/examples/react-tanstack-router/src/routeTree.gen.ts +++ b/examples/react-tanstack-router/src/routeTree.gen.ts @@ -10,9 +10,9 @@ // Import Routes -import { Route as rootRoute } from './routes/__root' -import { Route as IndexImport } from './routes/index' -import { Route as AuthCallbackImport } from './routes/auth/callback' +import { Route as rootRoute } from './routes/__root'; +import { Route as AuthCallbackImport } from './routes/auth/callback'; +import { Route as IndexImport } from './routes/index'; // Create/Update Routes @@ -20,75 +20,75 @@ const IndexRoute = IndexImport.update({ id: '/', path: '/', getParentRoute: () => rootRoute, -} as any) +} as any); const AuthCallbackRoute = AuthCallbackImport.update({ id: '/auth/callback', path: '/auth/callback', getParentRoute: () => rootRoute, -} as any) +} as any); // Populate the FileRoutesByPath interface declare module '@tanstack/react-router' { interface FileRoutesByPath { '/': { - id: '/' - path: '/' - fullPath: '/' - preLoaderRoute: typeof IndexImport - parentRoute: typeof rootRoute - } + id: '/'; + path: '/'; + fullPath: '/'; + preLoaderRoute: typeof IndexImport; + parentRoute: typeof rootRoute; + }; '/auth/callback': { - id: '/auth/callback' - path: '/auth/callback' - fullPath: '/auth/callback' - preLoaderRoute: typeof AuthCallbackImport - parentRoute: typeof rootRoute - } + id: '/auth/callback'; + path: '/auth/callback'; + fullPath: '/auth/callback'; + preLoaderRoute: typeof AuthCallbackImport; + parentRoute: typeof rootRoute; + }; } } // Create and export the route tree export interface FileRoutesByFullPath { - '/': typeof IndexRoute - '/auth/callback': typeof AuthCallbackRoute + '/': typeof IndexRoute; + '/auth/callback': typeof AuthCallbackRoute; } export interface FileRoutesByTo { - '/': typeof IndexRoute - '/auth/callback': typeof AuthCallbackRoute + '/': typeof IndexRoute; + '/auth/callback': typeof AuthCallbackRoute; } export interface FileRoutesById { - __root__: typeof rootRoute - '/': typeof IndexRoute - '/auth/callback': typeof AuthCallbackRoute + __root__: typeof rootRoute; + '/': typeof IndexRoute; + '/auth/callback': typeof AuthCallbackRoute; } export interface FileRouteTypes { - fileRoutesByFullPath: FileRoutesByFullPath - fullPaths: '/' | '/auth/callback' - fileRoutesByTo: FileRoutesByTo - to: '/' | '/auth/callback' - id: '__root__' | '/' | '/auth/callback' - fileRoutesById: FileRoutesById + fileRoutesByFullPath: FileRoutesByFullPath; + fullPaths: '/' | '/auth/callback'; + fileRoutesByTo: FileRoutesByTo; + to: '/' | '/auth/callback'; + id: '__root__' | '/' | '/auth/callback'; + fileRoutesById: FileRoutesById; } export interface RootRouteChildren { - IndexRoute: typeof IndexRoute - AuthCallbackRoute: typeof AuthCallbackRoute + IndexRoute: typeof IndexRoute; + AuthCallbackRoute: typeof AuthCallbackRoute; } const rootRouteChildren: RootRouteChildren = { IndexRoute: IndexRoute, AuthCallbackRoute: AuthCallbackRoute, -} +}; export const routeTree = rootRoute ._addFileChildren(rootRouteChildren) - ._addFileTypes() + ._addFileTypes(); /* ROUTE_MANIFEST_START { diff --git a/examples/react-tanstack-router/src/style.css b/examples/react-tanstack-router/src/style.css index 90ad286..0b8e317 100644 --- a/examples/react-tanstack-router/src/style.css +++ b/examples/react-tanstack-router/src/style.css @@ -10,4 +10,4 @@ html { } body { @apply bg-gray-50 text-gray-950 dark:bg-gray-900 dark:text-gray-200; -} \ No newline at end of file +}