mirror of
https://github.com/bitbonsai/mcpvault.git
synced 2026-09-19 07:37:47 +08:00
chore: migrate to Node 24 with corepack for npm version management
- Update Node.js version from 22 to 24 in .nvmrc - Add packageManager field to enforce npm 10.9.0 via corepack - Enable corepack in all CI workflows to ensure consistent npm version - Update developer setup instructions in README This fixes lockfile sync issues between local development and CI by ensuring all developers use the same npm version (10.9.0) automatically through corepack.
This commit is contained in:
committed by
Mauricio Wolff
parent
57ba8edeba
commit
9acfcea868
@@ -24,6 +24,9 @@ jobs:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
cache: npm
|
||||
|
||||
- name: Enable corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
@@ -46,6 +49,9 @@ jobs:
|
||||
node-version-file: .nvmrc
|
||||
cache: npm
|
||||
|
||||
- name: Enable corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: Verify lockfile integrity
|
||||
run: npm ci
|
||||
|
||||
@@ -65,6 +71,9 @@ jobs:
|
||||
with:
|
||||
node-version-file: .nvmrc
|
||||
|
||||
- name: Enable corepack
|
||||
run: corepack enable
|
||||
|
||||
# https://blog.npmjs.org/post/626173315965468672/npm-v7-series-why-keep-package-lockjson
|
||||
- name: Check lockfile is up to date
|
||||
run: |
|
||||
|
||||
@@ -24,6 +24,9 @@ jobs:
|
||||
node-version-file: .nvmrc
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
- name: Enable corepack
|
||||
run: corepack enable
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
|
||||
@@ -135,12 +135,16 @@ npx @mauricio.wolff/mcp-obsidian@latest /path/to/your/obsidian/vault
|
||||
### For Developers
|
||||
|
||||
1. Clone this repository
|
||||
2. Install dependencies with npm:
|
||||
2. Use the correct Node.js version:
|
||||
```bash
|
||||
npm install
|
||||
nvm use # Uses Node 24 from .nvmrc
|
||||
```
|
||||
3. Install dependencies with npm:
|
||||
```bash
|
||||
npm install # Corepack automatically uses npm 10.9.0
|
||||
```
|
||||
|
||||
3. Test locally with MCP inspector:
|
||||
4. Test locally with MCP inspector:
|
||||
```bash
|
||||
npx @modelcontextprotocol/inspector npm start /path/to/your/vault
|
||||
```
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
"author": "bitbonsai",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"packageManager": "npm@10.9.0+sha512.65a9c38a8172948f617a53619762cd77e12b9950fe1f9239debcb8d62c652f2081824b986fee7c0af6c0a7df615becebe4bf56e17ec27214a87aa29d9e038b4b",
|
||||
"main": "dist/server.js",
|
||||
"bin": {
|
||||
"mcp-obsidian": "./dist/server.js",
|
||||
|
||||
Reference in New Issue
Block a user