oscartbeaumont / rspc

A framework for building typesafe web backends in Rust
https://rspc.dev
MIT License
1.1k stars 50 forks source link

Tauri example fails - depends on the astro example? #202

Open TeamDman opened 11 months ago

TeamDman commented 11 months ago

https://github.com/oscartbeaumont/rspc/blob/52108ca0bdf423ba78d5da8d3945436be696cb0a/examples/tauri/src-tauri/tauri.conf.json#L3-L4

Looks like it depends on pnpm and expects the astro build to happen?

$ npm run tauri dev 
npm ERR! Missing script: "tauri"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\TeamD\AppData\Local\npm-cache\_logs\2023-07-25T01_13_25_471Z-debug-0.log

# Teamy @ Teamy-Desktop in D:\Repos\rust\rspc\examples\tauri on git:main [21:13:25]
$ npm run dev      

> @rspc/examples-tauri@0.0.0 dev
> tauri dev

     Running BeforeDevCommand (`pnpm --filter @rspc/examples-astro -- dev`)
../astro                                 |  WARN  The field "pnpm" was found in D:\Repos\rust\rspc\examples\astro/package.json. This will not take effect. You should configure "pnpm" at the root of the workspace instead.

> @rspc/examples-astro@0.0.0 dev D:\Repos\rust\rspc\examples\astro
> astro dev

'astro' is not recognized as an internal or external command,
operable program or batch file.
D:\Repos\rust\rspc\examples\astro:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @rspc/examples-astro@0.0.0 dev: `astro dev`
Exit status 1
 WARN   Local package.json exists, but node_modules missing, did you mean to install?
       Error The "beforeDevCommand" terminated with a non-zero status code.