From 1cd17ea31b342cfc6daf3b85d4a3f4717f0b7c87 Mon Sep 17 00:00:00 2001 From: Lin Onetwo Date: Thu, 5 Jan 2023 14:57:40 +0800 Subject: [PATCH] chore: build rs-type before start dev --- client-app/README.md | 2 +- client-app/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client-app/README.md b/client-app/README.md index be71ac4c4a..cac1cfff2b 100644 --- a/client-app/README.md +++ b/client-app/README.md @@ -23,7 +23,7 @@ We will provide its binary binding soon, to replace the git-submodule, before Oc On this folder: - `pnpm dev:app` will start a vite server -- `pnpm build:prerequisite` will link the Octobase and prepare affine dist html and tauri preload script +- `pnpm build:prerequisite` will link the Octobase and prepare affine dist html and tauri preload script, also will generate ts type from rs. You should run this before start your first development time. On project root folder: diff --git a/client-app/package.json b/client-app/package.json index e1875f5a0c..052a8166c3 100644 --- a/client-app/package.json +++ b/client-app/package.json @@ -7,7 +7,7 @@ "module": "true", "scripts": { "dev:app": "cross-env NODE_ENV=development tauri dev", - "build:prerequisite": "pnpm build:submodules && pnpm build:affine && pnpm build:preload", + "build:prerequisite": "pnpm build:submodules && pnpm build:rs-types && pnpm build:affine && pnpm build:preload", "dev:web": "vite", "build:rs-types": "zx scripts/generateTsTypingsFromJsonSchema.mjs", "build:web": "tsc && vite build",