chore: clean up npm run scripts to make prod the default#14274
chore: clean up npm run scripts to make prod the default#14274dylanjeffers wants to merge 2 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>
|
Caution Review the following alerts detected in dependencies. According to your organization's Security Policy, you must resolve all "Block" alerts before proceeding. Learn more about Socket for GitHub.
|
🌐 Web preview readyPreview URL: https://audius-web-preview-pr-14274.audius.workers.dev Unique preview for this PR (deployed from this branch). |
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