Fix TS errors and weird instances of undefined error due to prisma upgrade and turbo cache (#3475)
* Fix TS errors * Always reexecute prisma postinstall as prisma version might change after yarnpull/3233/head^2
parent
c500952dca
commit
faac59fb8e
|
@ -23,7 +23,7 @@ export function handleErrorsJson(response: Response) {
|
||||||
|
|
||||||
export function handleErrorsRaw(response: Response) {
|
export function handleErrorsRaw(response: Response) {
|
||||||
if (response.status === 204) {
|
if (response.status === 204) {
|
||||||
return {};
|
return "{}";
|
||||||
}
|
}
|
||||||
if (!response.ok && response.status < 200 && response.status >= 300) {
|
if (!response.ok && response.status < 200 && response.status >= 300) {
|
||||||
response.text().then(console.log);
|
response.text().then(console.log);
|
||||||
|
|
|
@ -113,6 +113,9 @@
|
||||||
"outputs": ["../../node_modules/@prisma/client/**", "../../node_modules/@prisma/admin-client/**"],
|
"outputs": ["../../node_modules/@prisma/client/**", "../../node_modules/@prisma/admin-client/**"],
|
||||||
"inputs": ["./schema.prisma", "./prisma/schema.prisma"]
|
"inputs": ["./schema.prisma", "./prisma/schema.prisma"]
|
||||||
},
|
},
|
||||||
|
"@calcom/prisma#post-install": {
|
||||||
|
"cache": false
|
||||||
|
},
|
||||||
"start": {},
|
"start": {},
|
||||||
"embed-tests": {
|
"embed-tests": {
|
||||||
"cache": false
|
"cache": false
|
||||||
|
|
Loading…
Reference in New Issue