mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 05:50:35 +00:00
The 7.x line ships only a version stub at the `typescript` entry point and no longer exposes the synchronous compiler API, so the `ts.transpileModule` call that `ConnectionMetadata.test.ts` uses to compile `main.ts` and `plugin.ts` into a sandboxed browser context failed with "Cannot read properties of undefined (reading 'CommonJS')", taking all 11 plugin connection tests down. 6.0.3 restores that API and matches the version the frontend and plugins packages already pin. AI-assisted-by: step-5-preview-free
65 lines
2.3 KiB
JSON
65 lines
2.3 KiB
JSON
{
|
|
"name": "mcp-server",
|
|
"version": "1.0.0",
|
|
"description": "MCP server for Penpot integration",
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build:server": "pnpm exec esbuild ./src/index.ts --bundle --platform=node --target=node20 --format=esm --outfile=dist/index.js --external:@modelcontextprotocol/* --external:ws --external:express --external:class-transformer --external:class-validator --external:reflect-metadata --external:pino --external:pino-pretty --external:pino-loki --external:js-yaml --external:sharp --external:nrepl-client --external:ioredis",
|
|
"build": "pnpm run build:server && node ./scripts/copy-resources.js",
|
|
"build:types": "tsc --emitDeclarationOnly --outDir dist",
|
|
"start": "node dist/index.js",
|
|
"start:multi-user": "node dist/index.js --multi-user",
|
|
"start:dev": "node --import ts-node/register src/index.ts",
|
|
"start:dev:multi-user": "node --loader ts-node/esm src/index.ts --multi-user",
|
|
"test": "tsx --test src/*.test.ts",
|
|
"test:integration:export-sema": "tsx scripts/integration-test-export-image-semaphore.ts",
|
|
"types:check": "tsc --noEmit",
|
|
"clean": "rm -rf dist/"
|
|
},
|
|
"keywords": [
|
|
"mcp",
|
|
"penpot",
|
|
"server"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=20"
|
|
},
|
|
"packageManager": "pnpm@12.6.0+sha512.3ef68f951cb111ac204b4a5a16f0b2ddf0da56a96e0413e81d855d9f0b55ef926714709028e1cd00c405c2c5fb7b9e8ec4dc46777c805d0373c2f2ff00fd20ec",
|
|
"dependencies": {
|
|
"@modelcontextprotocol/node": "^2.1.1",
|
|
"@modelcontextprotocol/server": "^2.3.1",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.15.1",
|
|
"express": "^5.2.1",
|
|
"ioredis": "^6.0.0",
|
|
"js-yaml": "^5.4.2",
|
|
"nrepl-client": "^0.3.0",
|
|
"pino": "^10.4.0",
|
|
"pino-loki": "^3.0.0",
|
|
"pino-pretty": "^13.2.0",
|
|
"reflect-metadata": "^0.2.2",
|
|
"sharp": "^0.35.5",
|
|
"ws": "^8.22.0",
|
|
"zod": "^4.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@modelcontextprotocol/client": "^2.3.1",
|
|
"@penpot/mcp-common": "workspace:../common",
|
|
"@types/express": "^5.0.6",
|
|
"@types/js-yaml": "^4.0.9",
|
|
"@types/node": "^26.6.4",
|
|
"@types/ws": "^8.18.2",
|
|
"cross-env": "^10.1.0",
|
|
"esbuild": "^0.28.1",
|
|
"ts-node": "^10.9.2",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^6.0.3"
|
|
},
|
|
"ts-node": {
|
|
"esm": true
|
|
}
|
|
}
|