Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"start": "dist/index.js",
"start:check": "dist/index.js --check",
"start:http": "TRANSPORT=http dist/index.js",
"dev": "npm run build:watch -- --onSuccess \"node dist/index.js\"",
"dev": "npm run build:watch",
"dev:bg": "rimraf dev.log && npm run dev > dev.log 2>&1",
"cli": "npm run build && npm start --",
"inspect": "npx fastmcp inspect src/index.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/pkg.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import type { PackageJson } from 'types-package-json'
import { pathToFileURL } from 'url'
import util from './util.js'

const pkgPath = util.resolve('package.json', util.REPO)
const { default: pkg } = await import(pkgPath, { with: { type: 'json' } }) as { default: Partial<PackageJson> }
const pkgUrl = pathToFileURL(pkgPath).href
const { default: pkg } = await import(pkgUrl, { with: { type: 'json' } }) as { default: Partial<PackageJson> }

export default {
...pkg,
Expand Down