### **Step 3: Add a `seed` Script to `package.json`**

To make the script easy to run, add a `seed` command to the `scripts` section of your `package.json` file. You'll need a tool like `tsx` (a modern replacement for `ts-node`) to execute the TypeScript file directly.

First, install `tsx`:

```bash
npm install --save-dev tsx
```

Then, add the script to your `package.json`:

```json
{
  "name": "flyer-crawler",
  "private": true,
  "version": "0.0.0",
  "type": "module",
  "scripts": {
    "dev": "vite",
    "build": "tsc && vite build",
    "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
    "preview": "vite preview",
    "test": "vitest",
    "seed": "tsx src/db/seed.ts"
  },
  "...": "..."
}
```

### **How to Use**

Now, whenever you or another developer needs to set up a local development environment with fresh, sample data, you can simply run:

```bash
npm run seed
```

This command will execute the script, wipe the database clean, and populate it with the defined sample data, providing a consistent starting point for everyone.
