Skip to content

Describe deploying without a build script - #471

Draft
tnkuehne wants to merge 3 commits into
mainfrom
docs-optional-app-build
Draft

tnkuehne wants to merge 3 commits into
mainfrom
docs-optional-app-build

Conversation

@tnkuehne

Copy link
Copy Markdown
Contributor

Documentation for #469. widefleet deploy and widefleet preview run the project's build script only when package.json defines one, and --skip-build is gone.

Changes

  • CLI reference: the --skip-build row is replaced by one sentence on when the build script runs.
  • Previews reference, app development, app services and Workflows guides no longer mention --skip-build.

Before publishing

widefleet deploy and preview run the project's build script when
package.json declares it and otherwise bundle the Worker entry directly,
so --skip-build is gone. Server builds install only from a committed
pnpm-lock.yaml, skip the install for a project without dependencies, and
fail with the missing file named when dependencies have no lockfile.
…cepts

pnpm already reports a missing lockfile and finds a workspace's root
lockfile, so server builds keep running pnpm install --frozen-lockfile for
every project with package.json. Build script detection accepts a byte
order mark and script values of any type. The documentation moves to its
own pull request until a release includes this change.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 63ca108 Nov 28 2026, 04:50 PM

tnkuehne added a commit that referenced this pull request Nov 28, 2026
An app without a framework build, such as a plain Worker with static
assets, still has a package.json for its development tools. `widefleet
deploy` ran `pnpm run build` whenever package.json existed, so such apps
had to deploy with `--skip-build`, and server builds, which run
`widefleet deploy`, failed with "Missing script: build".

## Changes

- `widefleet deploy` and `widefleet preview` run the project's `build`
script when package.json defines one. Without it they print `No build
script in package.json; bundling the Worker entry as is.` and bundle the
configured entry. The check accepts a byte order mark and script values
of any type, as pnpm does; an invalid package.json fails with its parse
error.
- `--skip-build` is removed.
- Server builds are unchanged: they run `pnpm install --frozen-lockfile`
for every project with package.json, so pnpm finds a workspace's root
lockfile and reports a missing one.
- Tests no longer pass `--skip-build`. A CLI test covers a project whose
package.json has no build script.
- The SvelteKit starter README describes the build step instead of the
flag.

Documentation: #471 (draft until a release includes this).

## Checks

- `cargo test -p platform-cli`, `cargo fmt --check`, `cargo clippy
--all-targets -D warnings`
- `pnpm typecheck`, `pnpm lint`, `pnpm format:check`
- CLI tests (`cli.test.ts`, `service-documentation.test.ts`,
`organization-selection.integration.test.ts`) and CLI package tests with
a packaged debug binary
- `runtime/deployment.test.ts` needs Docker and runs in CI.
Base automatically changed from optional-app-build to main November 28, 2026 16:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant