chore: clean up npm run scripts to make prod the default#14274
Merged
dylanjeffers merged 4 commits intomainfrom May 8, 2026
Merged
chore: clean up npm run scripts to make prod the default#14274dylanjeffers merged 4 commits intomainfrom
dylanjeffers merged 4 commits intomainfrom
Conversation
- 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>
|
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>
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
Contributor
🌐 Web preview readyPreview URL: https://audius-web-preview-pr-14274.audius.workers.dev Unique preview for this PR (deployed from this branch). |
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
npm run webis now the default and runs the web client against production (replacesweb:prod)npm run web:devis renamed tonpm run web:local(running against local services)npm run web:stageis removednpm run mobileis unchanged (already the prod-targeting default)CLAUDE.mdandREADME.mdto reference the new script namesThe
start:dev/start:stage/start:prodscripts insidepackages/webare kept as-is so thatdesktop:dev/desktop:stage/desktop:prodcontinue to work.Test plan
npm run webstarts the web client against prodnpm run web:localstarts the web client against local servicesnpm run web:stageandnpm run web:prodno longer resolve at the rootnpm run mobilestill starts Metro as beforedesktop:dev/desktop:stage/desktop:prodstill workweb:dev/web:stage/web:prod🤖 Generated with Claude Code