Velociraptor Logo

#Reloading on file changes

Use the watch property to watch for file changes and restart processes automatically.

🧪 Unstable

When set to true, the entrypoint and all local files the entrypoint(s) static import(s) will be watched.

scripts:
  start:
    cmd: server.ts
    watch: true

Pass a string or array of strings to add additional paths to the watched files:

scripts:
  start:
    cmd: server.ts
    watch: ./assets
    # or
    watch:
      - ./public
      - ./assets