Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try what happens when using a location in node_modules #5229

Draft
wants to merge 1 commit into
base: janpio/nestjs-custom-output
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion typescript/rest-nestjs/prisma/schema.prisma
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
generator client {
provider = "prisma-client-js"
output = "generated/foo"
output = "../node_modules/@foo/bar"
}


Expand Down
2 changes: 1 addition & 1 deletion typescript/rest-nestjs/prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PrismaClient, Prisma } from './generated/foo'
import { PrismaClient, Prisma } from '@foo/bar'

const prisma = new PrismaClient()

Expand Down
2 changes: 1 addition & 1 deletion typescript/rest-nestjs/src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
Query,
} from '@nestjs/common'
import { PrismaService } from './prisma.service'
import { User as UserModel, Post as PostModel, Prisma } from '../prisma/generated/foo'
import { User as UserModel, Post as PostModel, Prisma } from '@foo/bar'

@Controller()
export class AppController {
Expand Down
2 changes: 1 addition & 1 deletion typescript/rest-nestjs/src/prisma.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable, OnModuleInit, INestApplication } from '@nestjs/common'
import { PrismaClient } from '../prisma/generated/foo'
import { PrismaClient } from '@foo/bar'

@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
Expand Down