-
Notifications
You must be signed in to change notification settings - Fork 58
Amp 145286 use pnpm #1445
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
Draft
daniel-graham-amplitude
wants to merge
42
commits into
main
Choose a base branch
from
AMP-145286-use-pnpm
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Amp 145286 use pnpm #1445
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
4fe099b
start pnpm work
daniel-graham-amplitude 0431f97
chore: migrate to PNPM
daniel-graham-amplitude 4df0188
again
daniel-graham-amplitude 4f79de7
again
daniel-graham-amplitude cbf5e0b
again
daniel-graham-amplitude f25343c
again
daniel-graham-amplitude 7e55407
again
daniel-graham-amplitude 38405c5
again
daniel-graham-amplitude 75c052f
again
daniel-graham-amplitude 073e9b3
again
daniel-graham-amplitude 47fccf4
again
daniel-graham-amplitude 463e38e
again
daniel-graham-amplitude c09eb93
again
daniel-graham-amplitude 1d199c6
again
daniel-graham-amplitude fd30b50
again
daniel-graham-amplitude a7cdb0a
again
daniel-graham-amplitude b8b9cfc
Revert "again"
daniel-graham-amplitude b495ba7
fix broken tests: 3/9
daniel-graham-amplitude e787ff8
test fixes: round 2
daniel-graham-amplitude 1f5e4d0
again
daniel-graham-amplitude 9be3a30
again
daniel-graham-amplitude 28756d4
again
daniel-graham-amplitude 1b17da4
again
daniel-graham-amplitude 2b44bf5
again
daniel-graham-amplitude ac986e6
chore: tweak tsconfig.json
daniel-graham-amplitude 2e7de44
again
daniel-graham-amplitude df621ba
replace yarn build from package.json
daniel-graham-amplitude 93b19e5
again
daniel-graham-amplitude a552c71
Merge branch 'pnpm-migration' of github.com:amplitude/Amplitude-TypeS…
daniel-graham-amplitude 339b28d
again
daniel-graham-amplitude 62e3d69
again
daniel-graham-amplitude 5b52a7d
again
daniel-graham-amplitude 0c4d0d3
again
daniel-graham-amplitude 70d1782
again
daniel-graham-amplitude d041513
again
daniel-graham-amplitude b9de0da
again
daniel-graham-amplitude cdd7000
again
daniel-graham-amplitude bc5b28f
again
daniel-graham-amplitude 78400ed
again
daniel-graham-amplitude 4306e42
again
daniel-graham-amplitude a44ab61
fix: pnpm hoisting problem with unified + setTransport
daniel-graham-amplitude add4784
again
daniel-graham-amplitude 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 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
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
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -28,24 +28,22 @@ jobs: | |||||
| # git branch -f main origin/main | ||||||
| # fi | ||||||
|
|
||||||
| - name: Cache dependencies | ||||||
| uses: actions/cache@v3 | ||||||
| with: | ||||||
| path: '**/node_modules' | ||||||
| key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||||||
|
|
||||||
| - name: Setup pnpm | ||||||
| uses: pnpm/action-setup@v4 | ||||||
|
|
||||||
| - name: Setup Node.js | ||||||
| uses: actions/setup-node@v3 | ||||||
| uses: actions/setup-node@v4 | ||||||
| with: | ||||||
| node-version: '20.x' | ||||||
| cache: 'pnpm' | ||||||
|
|
||||||
| - name: Install project dependencies | ||||||
| run: | | ||||||
| yarn install --frozen-lockfile | ||||||
| pnpm install --frozen-lockfile | ||||||
|
|
||||||
| - name: Build all packages | ||||||
| run: | | ||||||
| yarn build | ||||||
| pnpm build | ||||||
|
|
||||||
| - name: Create .env file | ||||||
| run: | | ||||||
|
|
@@ -55,16 +53,16 @@ jobs: | |||||
| - name: Start dev server | ||||||
| run: | | ||||||
| # Start the dev server | ||||||
| yarn build:vite | ||||||
| yarn start --port 5173 & | ||||||
| pnpm build:vite | ||||||
| pnpm start --port 5173 & | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| # Wait for the server to be ready | ||||||
| sleep 10 | ||||||
| # Verify the server is running | ||||||
| curl -f http://localhost:5173 || exit 1 | ||||||
|
|
||||||
| - name: Run Playwright tests | ||||||
| run: | | ||||||
| yarn test:playwright:ci | ||||||
| pnpm test:playwright:ci | ||||||
|
|
||||||
| - name: Upload Playwright Report | ||||||
| if: always() | ||||||
|
|
||||||
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
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| yarn commitlint --edit $1 | ||
| pnpm commitlint --edit $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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/sh | ||
| . "$(dirname "$0")/_/husky.sh" | ||
|
|
||
| yarn lint:staged | ||
| pnpm lint:staged |
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build action uses pnpm without installing it first
The composite action was updated to use
pnpm install,pnpm build,pnpm test, andpnpm lintcommands, but no step was added to install pnpm (usingpnpm/action-setup@v4). Thepublish-v2.ymlworkflow uses this action without setting up pnpm first, which will cause the publish workflow to fail with "command not found" errors. Other workflows likeci.ymlandci-nx.ymlwere correctly updated to include the pnpm setup step, but this action was not.