Skip to content

Commit

Permalink
fix: fix trpc paths
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrobin committed Jan 2, 2024
1 parent 67ccd06 commit 9c9d899
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 22 deletions.
12 changes: 6 additions & 6 deletions apps/app/src/app/pages/(examples)/examples/notes/(notes).page.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import { RouteMeta } from '@analogjs/router';
import { waitFor } from '@analogjs/trpc';
import { AsyncPipe, DatePipe, JsonPipe, NgFor, NgIf } from '@angular/common';
import { Component, computed, inject, signal } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterLink } from '@angular/router';
import { waitFor } from '@spartan-ng/trpc';
import { HlmButtonDirective } from '@spartan-ng/ui-button-helm';
import { HlmInputDirective } from '@spartan-ng/ui-input-helm';
import { HlmLabelDirective } from '@spartan-ng/ui-label-helm';
import { HlmSpinnerComponent } from '@spartan-ng/ui-spinner-helm';
import { SignalFormBuilder, SignalInputDirective, V, withErrorComponent } from 'ng-signal-forms';
import { Observable, Subject, catchError, of, switchMap, take, tap } from 'rxjs';
import { InputErrorComponent } from '~/app/shared/input-error/input-error.component';
import { SpartanInputErrorDirective } from '~/app/shared/input-error/input-error.directive';
import { metaWith } from '~/app/shared/meta/meta.util';
import { Note } from '~/db';
import { injectTRPCClient } from '~/trpc-client';
import { Note } from '../../../../../db';
import { injectTRPCClient } from '../../../../../trpc-client';
import { InputErrorComponent } from '../../../../shared/input-error/input-error.component';
import { SpartanInputErrorDirective } from '../../../../shared/input-error/input-error.directive';
import { metaWith } from '../../../../shared/meta/meta.util';
import { NoteSkeletonComponent } from './components/note-skeleton.component';
import { NoteComponent } from './components/note.component';
import { NotesEmptyComponent } from './components/notes-empty.component';
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/server/routes/trpc/[trpc].ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createTrpcNitroHandler } from '@analogjs/trpc';
import { createTrpcNitroHandler } from '@spartan-ng/trpc';
import { createContext } from '../../trpc/context';
import { appRouter } from '../../trpc/routers';
// export API handler
Expand Down
13 changes: 1 addition & 12 deletions apps/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,7 @@ export default defineConfig(({ mode }) => {
include: ['@angular/common', '@angular/forms', 'isomorphic-fetch'],
},
ssr: {
noExternal: [
'@analogjs/trpc/**',
'@spartan-ng/**',
'@angular/cdk/**',
'@ng-icons/**',
'ngx-scrollbar/**',
'ng-signal-forms/**',
],
noExternal: ['@spartan-ng/**', '@angular/cdk/**', '@ng-icons/**', 'ngx-scrollbar/**', 'ng-signal-forms/**'],
},
build: {
target: ['es2020'],
Expand Down Expand Up @@ -89,10 +82,6 @@ export default defineConfig(({ mode }) => {
host: 'https://www.spartan.ng',
},
},
nitro: {
preset: 'vercel',
serveStatic: false,
},
}),
nxViteTsPaths(),
visualizer() as Plugin,
Expand Down
4 changes: 2 additions & 2 deletions libs/trpc/project.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "trpc",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "/src",
"sourceRoot": "libs/trpc/src",
"prefix": "spartan-ng",
"tags": [],
"projectType": "library",
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:ng-packagr",
"outputs": ["{workspaceRoot}/node_modules/@spartan-ng/trpc"],
"outputs": ["{workspaceRoot}/dist/libs/trpc"],
"options": {
"project": "libs/trpc/ng-package.json"
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@analogjs/content": "0.2.19",
"@analogjs/platform": "0.2.19",
"@analogjs/router": "0.2.19",
"@analogjs/trpc": "0.2.19",
"@analogjs/vite-plugin-angular": "0.2.19",
"@angular/animations": "17.0.2",
"@angular/cdk": "17.0.0",
Expand Down

0 comments on commit 9c9d899

Please sign in to comment.