Skip to content
DeployAI
WarningCode no_build_script

No build script in package.json

What it means

package.json has no build command, the command that builds the site.

Why it is only a warning

This is a warning. Without a build command we do not know how to build the site, and if it needs a build it may not work.

How to fix it

  1. Add a build command to package.json that builds the site, for example vite build or astro build.
  2. A plain HTML site with no build step does not need one.

Prompt for your agent

Copy it and paste it into your agent. It fixes the project, explains each step, and runs the check again.

DeployAI check found this in the project: No build script in package.json.
Add a "build" script to package.json that produces the site, for example "vite build" or "astro build".
Explain your plan and wait for my approval before architectural changes. Do not remove features without asking.
Explain every step to me in simple words.
When done, run: npx deployai@latest check