Cleaned up import paths
This commit is contained in:
parent
3263db9f84
commit
f70b4b34e4
|
|
@ -3,10 +3,6 @@
|
|||
"collection": "@nestjs/schematics",
|
||||
"sourceRoot": "src",
|
||||
"compilerOptions": {
|
||||
"deleteOutDir": true,
|
||||
"assets": [
|
||||
"generated/prisma/package.json"
|
||||
],
|
||||
"watchAssets": true
|
||||
"deleteOutDir": true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
7
package-lock.json
generated
7
package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "pandektes-challenge",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "pandektes-challenge",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"hasInstallScript": true,
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
|
|
@ -67,6 +67,9 @@
|
|||
"tsconfig-paths": "^4.2.0",
|
||||
"typescript": "^5.7.3",
|
||||
"typescript-eslint": "^8.20.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
}
|
||||
},
|
||||
"node_modules/@angular-devkit/core": {
|
||||
|
|
|
|||
21
package.json
21
package.json
|
|
@ -1,23 +1,15 @@
|
|||
{
|
||||
"name": "pandektes-challenge",
|
||||
"version": "0.0.1",
|
||||
"description": "",
|
||||
"author": "",
|
||||
"version": "1.0.0",
|
||||
"description": "Legal document parsing API — extracts case law metadata from PDF/HTML using Gemini AI",
|
||||
"author": "George W.",
|
||||
"private": true,
|
||||
"license": "UNLICENSED",
|
||||
"scripts": {
|
||||
"build": "nest build",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
||||
"build": "nest build && cp src/generated/prisma/package.json dist/src/generated/prisma/package.json",
|
||||
"start": "nest start",
|
||||
"start:dev": "nest start --watch",
|
||||
"start:debug": "nest start --debug --watch",
|
||||
"start:prod": "node dist/main",
|
||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||
"test": "jest",
|
||||
"test:watch": "jest --watch",
|
||||
"test:cov": "jest --coverage",
|
||||
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
||||
"test:e2e": "jest --config ./test/jest-e2e.json",
|
||||
"start:prod": "npm run build && nest start",
|
||||
"postinstall": "prisma generate"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
@ -79,6 +71,9 @@
|
|||
"typescript": "^5.7.3",
|
||||
"typescript-eslint": "^8.20.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"jest": {
|
||||
"moduleFileExtensions": [
|
||||
"js",
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import { GraphQLUpload } from 'graphql-upload-ts';
|
|||
import type { FileUpload } from 'graphql-upload-ts';
|
||||
import { CasesService } from './cases.service';
|
||||
import { CaseLaw } from './entities/case-law.entity';
|
||||
import { StorageService } from '../common/storage/storage.service';
|
||||
import { CaseFileValidationPipe } from '../common/pipes/file-validation.pipe';
|
||||
import { StorageService } from '@app/common/storage/storage.service';
|
||||
import { CaseFileValidationPipe } from '@app/common/pipes/file-validation.pipe';
|
||||
import { CaseStatus } from '../generated/prisma/client.js';
|
||||
|
||||
@Resolver(() => CaseLaw)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { Injectable, NotFoundException, BadRequestException, Logger, Inject } from '@nestjs/common';
|
||||
import { PRISMA_CLIENT, type PrismaClientInstance } from '../common/prisma/prisma.service';
|
||||
import { isUuid } from 'src/common/utils/string.utils';
|
||||
import { PRISMA_CLIENT, type PrismaClientInstance } from '@app/common/prisma/prisma.service';
|
||||
import { isUuid } from '@app/common/utils/string.utils';
|
||||
import { Queue } from 'bullmq';
|
||||
import { StorageService } from 'src/common/storage/storage.service';
|
||||
import { StorageService } from '@app/common/storage/storage.service';
|
||||
import { InjectQueue } from '@nestjs/bullmq';
|
||||
import { CaseStatus } from 'src/generated/prisma/enums';
|
||||
import { CaseStatus } from '../generated/prisma/client.js';
|
||||
|
||||
@Injectable()
|
||||
export class CasesService {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { QueueEventsListener, QueueEventsHost, OnQueueEvent, InjectQueue } from '@nestjs/bullmq';
|
||||
import { Queue } from 'bullmq';
|
||||
import { PRISMA_CLIENT, type PrismaClientInstance } from '../../common/prisma/prisma.service';
|
||||
import { PRISMA_CLIENT, type PrismaClientInstance } from '@app/common/prisma/prisma.service';
|
||||
import { CaseStatus } from '../../generated/prisma/client.js';
|
||||
import { Logger, Inject } from '@nestjs/common';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { Global, Module } from '@nestjs/common';
|
|||
import {
|
||||
PrismaService,
|
||||
PRISMA_CLIENT,
|
||||
} from './prisma.service.js';
|
||||
} from './prisma.service';
|
||||
|
||||
@Global()
|
||||
@Module({
|
||||
|
|
|
|||
|
|
@ -14,7 +14,11 @@
|
|||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
"baseUrl": "./",
|
||||
"paths": {},
|
||||
"paths": {
|
||||
"@app/*": [
|
||||
"./src/*"
|
||||
]
|
||||
},
|
||||
"incremental": true,
|
||||
"skipLibCheck": true,
|
||||
"strictNullChecks": true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue