Skip to content

chore: clean up npm run scripts to make prod the default#14274

Merged
dylanjeffers merged 4 commits intomainfrom
dylan/cleanup-npm-scripts
May 8, 2026
Merged

chore: clean up npm run scripts to make prod the default#14274
dylanjeffers merged 4 commits intomainfrom
dylan/cleanup-npm-scripts

Conversation

@dylanjeffers
Copy link
Copy Markdown
Contributor

Summary

  • npm run web is now the default and runs the web client against production (replaces web:prod)
  • npm run web:dev is renamed to npm run web:local (running against local services)
  • npm run web:stage is removed
  • npm run mobile is unchanged (already the prod-targeting default)
  • Updated CLAUDE.md and README.md to reference the new script names

The start:dev / start:stage / start:prod scripts inside packages/web are kept as-is so that desktop:dev / desktop:stage / desktop:prod continue to work.

Test plan

  • npm run web starts the web client against prod
  • npm run web:local starts the web client against local services
  • npm run web:stage and npm run web:prod no longer resolve at the root
  • npm run mobile still starts Metro as before
  • desktop:dev / desktop:stage / desktop:prod still work
  • Search the repo turns up no remaining references to web:dev / web:stage / web:prod

🤖 Generated with Claude Code

- Add `npm run web` (against production) as the default
- Rename `web:dev` to `web:local` (against local services)
- Remove `web:stage` and `web:prod` (prod is now just `web`)
- Update CLAUDE.md and README.md to reference the new script names

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 7, 2026

⚠️ No Changeset found

Latest commit: 689ccae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

packages/web/package.json:
- Rename internal `start` (the vite entry) to `start:vite` to free the
  `start` name for the prod-default wrapper
- `start:dev` → `start:local`; remove `start:stage` and `start:prod`
- `start` is now the prod default
- Apply the same to SSR variants: `start:ssr:dev` → `start:ssr:local`,
  remove `start:ssr:stage` and `start:ssr:prod`, and `start:ssr` is now
  the prod default

turbo.json:
- Register `start:vite` task (mirrors `start`'s persistent + ^build deps)

Root package.json:
- Repoint `web` → `start` and `web:local` → `start:local`
- Rename `desktop:dev` → `desktop:local`, `desktop:prod` → `desktop`,
  and remove `desktop:stage` for symmetry with web

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pull-request-size pull-request-size Bot added size/M and removed size/S labels May 7, 2026
@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 7, 2026

No dependency changes detected. Learn more about Socket for GitHub.

👍 No dependency changes detected in pull request

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🌐 Web preview ready

Preview URL: https://audius-web-preview-pr-14274.audius.workers.dev

Unique preview for this PR (deployed from this branch).
Workflow run

dylanjeffers and others added 2 commits May 8, 2026 13:58
- Drop the `web-stage` debug config (`web:stage` script was removed)
- Rename `web-prod` config to `web` and point it at the new `web`
  script (renamed from `web:prod` — prod is now the default)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Replaces the stale `start:<environment>` / `electron:<environment>`
placeholders with the concrete script names that exist after the
rename, and drops the `stage` environment from the intro since the
staging start scripts were removed in this branch.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dylanjeffers dylanjeffers merged commit e39c397 into main May 8, 2026
14 checks passed
@dylanjeffers dylanjeffers deleted the dylan/cleanup-npm-scripts branch May 8, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant