npm run build doesn’t include my src folder using vite

I am trying to build a vite website. I can successfully npm run dev and everything works but when I try to build it, only the index.html and the /public folder is used. My entire /src gets ignored. This is my current file organisation:

.
├── dist
├── index.html
├── node_modules
├── package-lock.json
├── package.json
├── public
│   ├── fonts
│   ├── gif
│   └── icons
├── readme.md
├── src
│   ├── html
│   ├── js
│   ├── scss
│   └── vite-env.d.ts

Content of my package.json

  "scripts": {
    "dev": "vite",
    "build": "vite build",
    "preview": "vite preview"
  },

Is it how a vite project is meant to be organised ?
How can I build my project so that my src folder (with all my style, js and other pages) can be included ?
(and yes I have read Changing the input and output directory in Vite as well as other StackOverflow post as well as the vite config documentation and I am lost)