@@ -3,7 +3,7 @@ import { writeFile } from "node:fs/promises";
3
3
import { join } from "node:path" ;
4
4
import { chalkError , chalkWarning , cliLink } from "../utilities/cliOutput.js" ;
5
5
import { createTempDir } from "../utilities/fileSystem.js" ;
6
- import { docs , getInTouch } from "../utilities/links.js " ;
6
+ import { links } from "@trigger.dev/core/v3 " ;
7
7
8
8
export type WarningsCheckReturn =
9
9
| {
@@ -46,27 +46,27 @@ export function checkLogsForErrors(logs: string) {
46
46
const errors : LogParserOptions = [
47
47
{
48
48
regex : / E r r o r : P r o v i d e d - - s c h e m a a t (?< schema > .* ) d o e s n ' t e x i s t / ,
49
- message : `Prisma generate failed to find the specified schema at "$schema".\nDid you include it in config.additionalFiles ? ${ cliLink (
50
- "Config docs" ,
51
- docs . config . prisma
49
+ message : `Prisma generate failed to find the specified schema at "$schema".\nDid you configure the Prisma extension correctly ? ${ cliLink (
50
+ "Extension docs" ,
51
+ links . docs . config . prisma
52
52
) } `,
53
53
} ,
54
54
{
55
55
regex : / @ p r i s m a \/ c l i e n t d i d n o t i n i t i a l i z e y e t / ,
56
- message : `Prisma client not initialized yet.\nDid you forget to add the postinstall script ? ${ cliLink (
57
- "Config docs" ,
58
- docs . config . prisma
56
+ message : `Prisma client not initialized yet.\nDid you configure the Prisma extension ? ${ cliLink (
57
+ "Extension docs" ,
58
+ links . docs . config . prisma
59
59
) } `,
60
60
} ,
61
61
{
62
62
regex : / s h : 1 : (?< packageOrBinary > .* ) : n o t f o u n d / ,
63
- message : `$packageOrBinary not found\n\nIf it's a package: Include it in ${ cliLink (
64
- "config. additionalPackages" ,
65
- docs . config . prisma
66
- ) } \nIf it's a binary: Please ${ cliLink (
67
- "get in touch " ,
68
- getInTouch
69
- ) } and we'll see what we can do! `,
63
+ message : `$packageOrBinary not found\n\nIf it's a package: Use the ${ cliLink (
64
+ "additionalPackages extension " ,
65
+ links . docs . config . additionalPackages
66
+ ) } \nIf it's a binary: Check the other ${ cliLink (
67
+ "build extensions " ,
68
+ links . docs . config . extensions
69
+ ) } `,
70
70
} ,
71
71
] ;
72
72
@@ -101,10 +101,10 @@ export function checkLogsForWarnings(logs: string): WarningsCheckReturn {
101
101
const warnings : LogParserOptions = [
102
102
{
103
103
regex : / p r i s m a : w a r n W e c o u l d n o t f i n d y o u r P r i s m a s c h e m a / ,
104
- message : `Prisma generate failed to find the default schema. Did you include it in config.additionalFiles ? ${ cliLink (
105
- "Config docs" ,
106
- docs . config . prisma
107
- ) } \nCustom schema paths require a postinstall script like this: \`prisma generate --schema=./custom/path/to/schema.prisma\` `,
104
+ message : `Prisma generate failed to find the default schema. Did you configure the Prisma extension correctly ? ${ cliLink (
105
+ "Extension docs" ,
106
+ links . docs . config . prisma
107
+ ) } `,
108
108
shouldFail : true ,
109
109
} ,
110
110
] ;
0 commit comments