From ddbf00a4105895299022d2d80febbfda93887c6a Mon Sep 17 00:00:00 2001 From: xudaotutou <13435638964@163.com> Date: Fri, 20 Dec 2024 19:04:55 +0800 Subject: [PATCH] chore(devbox): add postinstall for prisma --- .../devbox/app/[lang]/(platform)/devbox/create/page.tsx | 2 +- frontend/providers/devbox/package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/providers/devbox/app/[lang]/(platform)/devbox/create/page.tsx b/frontend/providers/devbox/app/[lang]/(platform)/devbox/create/page.tsx index 066d4b4d226..fb65d2bbbbd 100644 --- a/frontend/providers/devbox/app/[lang]/(platform)/devbox/create/page.tsx +++ b/frontend/providers/devbox/app/[lang]/(platform)/devbox/create/page.tsx @@ -10,7 +10,7 @@ import { useSearchParams } from 'next/navigation' import { useCallback, useEffect, useMemo, useRef, useState } from 'react' import { FormProvider, useForm } from 'react-hook-form' -import Form from './components/Form' +import Form from './components/Form/index' import Header from './components/Header' import Yaml from './components/Yaml' diff --git a/frontend/providers/devbox/package.json b/frontend/providers/devbox/package.json index 1460d101838..c6002049b8f 100644 --- a/frontend/providers/devbox/package.json +++ b/frontend/providers/devbox/package.json @@ -9,7 +9,9 @@ "lint": "next lint", "ts-lint": "tsc --noEmit", "link-sdk": "rm -rf node_modules/sealos-desktop-sdk && yalc link sealos-desktop-sdk", - "unlink-sdk": "yalc remove --all && pnpm install sealos-desktop-sdk" + "unlink-sdk": "yalc remove --all && pnpm install sealos-desktop-sdk", + "gen-client": "prisma generate --schema ./prisma/schema.prisma", + "postinstall": "pnpm gen-client" }, "dependencies": { "@chakra-ui/react": "^2.8.1",