-
Notifications
You must be signed in to change notification settings - Fork 5
pnpm - SFW #2207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
pnpm - SFW #2207
Changes from 18 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
f9501d0
PNPM - SFW
prxt6529 3f9b839
WIP
prxt6529 c5c53ae
Merge branch 'main' into pnpm-sfw
prxt6529 42867be
WIP
prxt6529 5fe761f
WIP
prxt6529 3020635
WIP
prxt6529 e2bdb7d
WIP
prxt6529 8e491f1
WIP
prxt6529 8bf4ca3
WIP
prxt6529 613045e
WIP
prxt6529 0684d49
WIP
prxt6529 14c8315
WIP
prxt6529 9529511
WIP
prxt6529 37e9af4
WIP
prxt6529 ce36828
WIP
prxt6529 c20a14a
WIP
prxt6529 02fbcf6
WIP
prxt6529 447aaec
WIP
prxt6529 0daaac3
WIP
prxt6529 8134d15
WIP
prxt6529 f206fb7
WIP
prxt6529 4ed4fbc
WIP
prxt6529 37e7026
Merge branch 'main' into pnpm-sfw
prxt6529 9e5fa29
WIP
prxt6529 25d1b9c
WIP
prxt6529 69ea041
WIP
prxt6529 96abaf7
Merge branch 'main' into pnpm-sfw
prxt6529 b169336
WIP
prxt6529 d5fa859
WIP
prxt6529 34ee678
Test Deploy
prxt6529 88d18d8
Discover page title
prxt6529 9185f41
WIP
prxt6529 d05e2a1
Symlinks fix
prxt6529 b4a8bfe
Fix EB deploy bundle by excluding traced Next symlink dirs
prxt6529 0fdd96e
Exclude runtime node_modules from EB source bundle again
prxt6529 2b7ef43
Bypass EB's default npm install and restore pinned pnpm runtime install
prxt6529 65ce9cd
Fallback to npm-installed pinned pnpm when Corepack is unavailable on EB
prxt6529 cf05274
Load dotenv only in build and dev config phases
prxt6529 3d386b6
Promote zod to runtime dependency for EB startup
prxt6529 31a1056
Keep .next/static in EB bundle while uploading assets to S3
prxt6529 c323f2b
Normalize traced .next/node_modules aliases for EB runtime
prxt6529 2d89b12
Merge branch 'main' into pnpm-sfw
prxt6529 a27bc54
Add traced instrumentation runtime deps for EB startup
prxt6529 0e8fdf1
Add traced instrumentation runtime deps for EB startup 2
prxt6529 49b8660
Disable server Sentry instrumentation on EB runtime
prxt6529 c0669bf
Restore fixed app port 3001 for start-next
prxt6529 d846840
Add ms as traced runtime dependency for EB
prxt6529 4555ce6
Add Reown appkit controllers as EB runtime dependency
prxt6529 2d729f1
Add Reown appkit utils as EB runtime dependency
prxt6529 c516e7e
Restore standalone runtime for staging and EB deploys
prxt6529 ea5080e
Fix standalone NextConfig typing
prxt6529 92b9915
Run 6529 wrapper under bash in staging PM2
prxt6529 68028b6
Start staging standalone via bash and force standalone output
prxt6529 8be6a91
Restore standalone runtime flow for staging and EB deploy
prxt6529 c8e7a24
Preserve standalone symlinks in EB package
prxt6529 dad808a
Remove dangling semver symlink from EB bundle
prxt6529 e9886f9
Remove obsolete EB runtime bandaid dependencies
prxt6529 0cbee5e
Update docs for standalone staging and EB deploy flow
prxt6529 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| container_commands: | ||
| 01_verify_runtime_bundle: | ||
| command: | | ||
| test -d node_modules | ||
| test -f .next/BUILD_ID |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| bin/*.cmd text eol=crlf |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,8 @@ | |
|
|
||
| # dependencies | ||
| /node_modules | ||
| /.pnpm-store | ||
| /.corepack-tmp | ||
| /.pnp | ||
| .pnp.js | ||
|
|
||
|
|
||
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| web: node scripts/start-next.cjs |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,111 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| export COREPACK_HOME="${COREPACK_HOME:-${TMPDIR:-/tmp}/6529-corepack}" | ||
| export COREPACK_ENABLE_DOWNLOAD_PROMPT="0" | ||
| export SEIZE_6529_COMMAND="1" | ||
|
|
||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
| REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" | ||
|
|
||
| command_name="${1:-}" | ||
|
|
||
| if [[ -z "$command_name" ]]; then | ||
| cat <<'EOF' | ||
| Usage: | ||
| 6529 <command> [args...] | ||
|
|
||
| Common commands: | ||
| 6529 bootstrap -> install the global 6529 shim for future shells | ||
| 6529 install -> pnpm run install:secure | ||
| 6529 i -> pnpm run install:secure | ||
| 6529 install:frozen -> pnpm run install:secure:frozen | ||
| 6529 ci -> pnpm run install:secure:frozen | ||
| 6529 install:prod -> pnpm run install:secure:prod | ||
| 6529 dev -> node scripts/dev-with-fallback.cjs | ||
| 6529 build -> pnpm build | ||
| 6529 approve-builds -> pnpm approve-builds | ||
| 6529 prune:prod -> pnpm run prune:prod | ||
| 6529 staging -> bash repo-rooted scripts/staging.sh | ||
| 6529 start -> node scripts/start-next.cjs | ||
| 6529 test -> pnpm test | ||
| 6529 lint -> pnpm lint | ||
|
|
||
| Anything else is forwarded to pnpm unchanged. | ||
| EOF | ||
| exit 1 | ||
| fi | ||
|
|
||
| shift | ||
|
|
||
| case "$command_name" in | ||
| bootstrap) | ||
| exec bash "$REPO_ROOT/scripts/bootstrap-6529-command.sh" "$@" | ||
| ;; | ||
| dev) | ||
| exec node scripts/dev-with-fallback.cjs "$@" | ||
| ;; | ||
| dev:webpack) | ||
| exec env USE_TURBO=false node scripts/dev-with-fallback.cjs "$@" | ||
| ;; | ||
| dev:open) | ||
| exec node scripts/dev-open.cjs "$@" | ||
| ;; | ||
| staging) | ||
| exec bash "$REPO_ROOT/scripts/staging.sh" "$@" | ||
| ;; | ||
| start) | ||
| exec node scripts/start-next.cjs "$@" | ||
|
prxt6529 marked this conversation as resolved.
Outdated
|
||
| ;; | ||
| esac | ||
|
|
||
| clean_path="" | ||
| IFS=':' read -r -a path_parts <<< "${PATH:-}" | ||
| for part in "${path_parts[@]}"; do | ||
| if [[ -z "$part" || "$part" == "$SCRIPT_DIR" ]]; then | ||
| continue | ||
| fi | ||
| if [[ -z "$clean_path" ]]; then | ||
| clean_path="$part" | ||
| else | ||
| clean_path="${clean_path}:$part" | ||
| fi | ||
| done | ||
|
|
||
| REAL_PNPM="$(PATH="$clean_path" command -v pnpm || true)" | ||
|
|
||
| if [[ -z "$REAL_PNPM" ]]; then | ||
| echo "pnpm is not available. Activate the repo-pinned pnpm with Corepack first." >&2 | ||
| exit 1 | ||
| fi | ||
|
|
||
| case "$command_name" in | ||
| i) | ||
| exec "$REAL_PNPM" run install:secure "$@" | ||
| ;; | ||
| install) | ||
| exec "$REAL_PNPM" run install:secure "$@" | ||
| ;; | ||
| ci) | ||
| exec "$REAL_PNPM" run install:secure:frozen "$@" | ||
| ;; | ||
| install:frozen) | ||
| exec "$REAL_PNPM" run install:secure:frozen "$@" | ||
| ;; | ||
| install:prod) | ||
| exec "$REAL_PNPM" run install:secure:prod "$@" | ||
| ;; | ||
| prune:prod) | ||
| exec "$REAL_PNPM" run prune:prod "$@" | ||
| ;; | ||
| run) | ||
| exec "$REAL_PNPM" run "$@" | ||
| ;; | ||
| exec) | ||
| exec "$REAL_PNPM" exec "$@" | ||
| ;; | ||
| *) | ||
| exec "$REAL_PNPM" "$command_name" "$@" | ||
|
prxt6529 marked this conversation as resolved.
|
||
| ;; | ||
| esac | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| @echo off | ||
| setlocal | ||
| cd /d "%~dp0.." | ||
| bash "%~dp06529" %* | ||
|
prxt6529 marked this conversation as resolved.
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "Direct npm usage is blocked in this repository." >&2 | ||
| echo "Use the \`6529\` wrapper instead." >&2 | ||
| echo "Examples:" >&2 | ||
| echo " 6529 install" >&2 | ||
| echo " 6529 dev" >&2 | ||
| echo " 6529 build" >&2 | ||
| exit 1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| echo "Direct npx usage is blocked in this repository." >&2 | ||
| echo "Use the \`6529\` wrapper instead." >&2 | ||
| exit 1 |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.