watchexample

This commit is contained in:
Jacob Nguyen
2025-02-04 20:22:51 -06:00
parent b446871ec7
commit a773a1d658
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@@ -114,6 +114,8 @@ type BuildOptions = {
sern build
```
(that was easy)
## sern build --watch
the watch flag needs a `start` command. Depending on the **lock file** in your project, sern will run this command to reload your project. the build command checks in this order:
@@ -130,8 +132,8 @@ the watch flag needs a `start` command. Depending on the **lock file** in your p
if (pathExistsSync('bun.lock')) return 'bun start';
```
![usage](~/assets/watch-example2.mp4)
(that was easy)
## Adapting Older Projects