chore: build rs-type before start dev

This commit is contained in:
Lin Onetwo 2023-01-05 14:57:40 +08:00
parent d6dfd9b6ac
commit 1cd17ea31b
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ We will provide its binary binding soon, to replace the git-submodule, before Oc
On this folder: On this folder:
- `pnpm dev:app` will start a vite server - `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: On project root folder:

View File

@ -7,7 +7,7 @@
"module": "true", "module": "true",
"scripts": { "scripts": {
"dev:app": "cross-env NODE_ENV=development tauri dev", "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", "dev:web": "vite",
"build:rs-types": "zx scripts/generateTsTypingsFromJsonSchema.mjs", "build:rs-types": "zx scripts/generateTsTypingsFromJsonSchema.mjs",
"build:web": "tsc && vite build", "build:web": "tsc && vite build",