From b8605b6d83f67566252509a45eeed5e9a5b844bf Mon Sep 17 00:00:00 2001 From: farreldarian Date: Mon, 25 Dec 2023 02:20:30 +0700 Subject: [PATCH] Add success --- packages/generator/src/generator.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/generator/src/generator.ts b/packages/generator/src/generator.ts index d8d8203..53a6013 100644 --- a/packages/generator/src/generator.ts +++ b/packages/generator/src/generator.ts @@ -5,7 +5,7 @@ import { GeneratorOptions, } from '@prisma/generator-helper' import { logger } from '@prisma/sdk' -import path from 'path' +import path, { relative } from 'path' import { GENERATOR_NAME } from './constants' import { writeFileSafely } from './utils/writeFileSafely' import pluralize from 'pluralize' @@ -219,6 +219,13 @@ generatorHandler({ path.join(basePath, 'schema.ts'), `${importCode}\n\n${schemaCode}` ) + + logger.info( + `✨ Successfully generated Drizzle schema to ${relative( + process.cwd(), + basePath + )}` + ) }, })