Skip to content

Commit

Permalink
Add success
Browse files Browse the repository at this point in the history
  • Loading branch information
farreldarian committed Dec 24, 2023
1 parent e13a20d commit b8605b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/generator/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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
)}`
)
},
})

Expand Down

0 comments on commit b8605b6

Please sign in to comment.