-
Notifications
You must be signed in to change notification settings - Fork 173
chore: npm -> pnpm #746
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
chore: npm -> pnpm #746
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bbaf366
chore: npm -> pnpm
nirinchev e1b3c28
revert leftovers
nirinchev ae0207b
fix style issues
nirinchev 51ec3e4
don't setup node if we're not going to use it
nirinchev b6a85af
pass correct filters to pnpm test
nirinchev 439a531
Don't run checks on prt
nirinchev f725fb0
export ConnectionStateConnected
nirinchev bf96284
merge main into ni/pnpm
nirinchev a880352
duplicate overrides for npm users
nirinchev 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,6 @@ on: | |
| branches: | ||
| - main | ||
| pull_request: | ||
| pull_request_target: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: {} | ||
|
|
||
|
|
@@ -19,14 +16,15 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Run style check | ||
| run: npm run check | ||
| run: pnpm run check | ||
|
|
||
| check-generate: | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -35,13 +33,14 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| - run: npm run generate | ||
| run: pnpm install --frozen-lockfile | ||
| - run: pnpm run generate | ||
|
|
||
| check-dep: | ||
| name: Check dependencies | ||
|
|
@@ -51,14 +50,16 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies, build and remove dev dependencies | ||
| run: | | ||
| npm ci | ||
| pnpm install --frozen-lockfile | ||
| rm -rf node_modules | ||
| npm pkg set scripts.prepare="exit 0" | ||
| npm install --omit=dev | ||
| - run: npx -y @modelcontextprotocol/[email protected] --cli --method tools/list -- node dist/esm/index.js | ||
| pnpm pkg set scripts.prepare="exit 0" | ||
| pnpm install --prod --frozen-lockfile | ||
| - name: List available tools | ||
| run: pnpm dlx @modelcontextprotocol/[email protected] --cli --method tools/list -- node dist/esm/index.js | ||
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 |
|---|---|---|
|
|
@@ -29,14 +29,15 @@ jobs: | |
| name: Setup Docker Environment | ||
| with: | ||
| set-host: true | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Run tests | ||
| run: npm test | ||
| run: pnpm test | ||
| env: | ||
| SKIP_ATLAS_TESTS: "true" | ||
| SKIP_ATLAS_LOCAL_TESTS: "true" | ||
|
|
@@ -56,18 +57,19 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Run tests | ||
| env: | ||
| MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }} | ||
| MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }} | ||
| MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }} | ||
| run: npm test -- tests/integration/tools/atlas/ | ||
| run: pnpm test tests/integration/tools/atlas/ | ||
| - name: Upload test results | ||
| uses: actions/upload-artifact@v5 | ||
| if: always() | ||
|
|
@@ -84,14 +86,15 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Run tests | ||
| run: npm test -- tests/integration/tools/atlas-local/ | ||
| run: pnpm test tests/integration/tools/atlas-local/ | ||
| - name: Upload test results | ||
| uses: actions/upload-artifact@v5 | ||
| if: always() | ||
|
|
@@ -108,12 +111,13 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: pnpm/action-setup@v4 | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| cache: "pnpm" | ||
| - name: Install dependencies | ||
| run: npm ci | ||
| run: pnpm install --frozen-lockfile | ||
| - name: Download test results | ||
| uses: actions/download-artifact@v6 | ||
| with: | ||
|
|
@@ -131,7 +135,7 @@ jobs: | |
| path: coverage/atlas-local | ||
| - name: Merge coverage reports | ||
| run: | | ||
| npx -y [email protected] "coverage/*/lcov.info" "coverage/lcov.info" | ||
| pnpm dlx [email protected] "coverage/*/lcov.info" "coverage/lcov.info" | ||
| - name: Coveralls GitHub Action | ||
| uses: coverallsapp/[email protected] | ||
| with: | ||
|
|
@@ -146,10 +150,6 @@ jobs: | |
| - uses: actions/checkout@v5 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: actions/setup-node@v6 | ||
| with: | ||
| node-version-file: package.json | ||
| cache: "npm" | ||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get install -y git-secrets | ||
|
|
||
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 |
|---|---|---|
|
|
@@ -3,3 +3,4 @@ coverage | |
| package-lock.json | ||
| tests/tmp | ||
| src/common/atlas/openapi.d.ts | ||
| pnpm-lock.yaml | ||
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.
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.