File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 7
7
},
8
8
"scripts" : {
9
9
"build" : " tsup-node && node ./scripts/build-preview-server.mjs" ,
10
- "prepare " : " pnpm turbo build " ,
10
+ "postbuild " : " pnpm install --frozen-lockfile " ,
11
11
"caniemail:fetch" : " node ./scripts/fill-caniemail-data.mjs" ,
12
12
"clean" : " rm -rf dist" ,
13
13
"dev" : " tsup-node --watch" ,
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ const updatePackageJson = async (builtPreviewAppPath: string) => {
170
170
} ;
171
171
packageJson . scripts . build = 'next build' ;
172
172
packageJson . scripts . start = 'next start' ;
173
+ delete packageJson . scripts . postbuild ;
173
174
174
175
packageJson . name = 'preview-server' ;
175
176
// We remove this one to avoid having resolve issues on our demo build process.
Original file line number Diff line number Diff line change 10
10
],
11
11
"tasks" : {
12
12
"build" : {
13
- "dependsOn" : [" ^build" ],
13
+ "dependsOn" : [" ^build" , " ^postbuild " ],
14
14
"outputs" : [" dist/**" ]
15
15
},
16
+ "postbuild" : {
17
+ "dependsOn" : [" build" ],
18
+ "cache" : false
19
+ },
16
20
"web#build" : {
17
- "dependsOn" : [" ^build" ],
21
+ "dependsOn" : [" ^build" , " ^postbuild " ],
18
22
"env" : [
19
23
" RESEND_API_KEY" ,
20
24
" NEXT_PUBLIC_SUPABASE_URL" ,
23
27
"outputs" : [" .next/**" , " !.next/cache/**" ]
24
28
},
25
29
"demo#build" : {
26
- "dependsOn" : [" ^build" ],
30
+ "dependsOn" : [" ^build" , " ^postbuild " ],
27
31
"outputs" : [" .react-email/**" , " !.react-email/.next/cache/**" ]
28
32
},
29
33
"react-email#build" : {
You can’t perform that action at this time.
0 commit comments