Skip to content

Commit b16f5a6

Browse files
committed
refactor: update external dependencies in template files
1 parent b30c300 commit b16f5a6

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

.changeset/odd-geese-greet.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'create-mcp-kit': patch
3+
---
4+
5+
refactor: update external dependencies in template files

packages/create-mcp-kit/rolldown.config.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ export default defineConfig({
1414
},
1515
plugins: [isProd && terser(), typescript()],
1616
external: [
17-
'@clack/prompts',
18-
'picocolors',
17+
'path',
18+
'url',
1919
'fs/promises',
2020
'timers/promises',
21-
'path',
2221
'child_process',
23-
'url',
24-
'@mcp-tool-kit/shared',
22+
'@clack/prompts',
23+
'picocolors',
24+
'handlebars',
2525
'gradient-string',
26+
'@mcp-tool-kit/shared',
2627
],
2728
})

packages/create-mcp-kit/template/server-standard-js/scripts/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const config = {
2121
sourcemap: isDev,
2222
minify: isProd,
2323
platform: 'node',
24-
external: ['yargs', 'node-fetch', 'cors', 'express', 'nanoid', 'zod', 'dotenv', '@modelcontextprotocol/sdk'],
24+
external: ['yargs', 'express', 'nanoid', 'zod', 'dotenv', '@modelcontextprotocol/sdk'],
2525
alias: {
2626
'@': path.resolve(__dirname, '../src'),
2727
},

packages/create-mcp-kit/template/server-standard-ts/scripts/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const config = {
2121
sourcemap: isDev,
2222
minify: isProd,
2323
platform: 'node',
24-
external: ['yargs', 'node-fetch', 'cors', 'express', 'nanoid', 'zod', 'dotenv', '@modelcontextprotocol/sdk'],
24+
external: ['yargs', 'express', 'nanoid', 'zod', 'dotenv', '@modelcontextprotocol/sdk'],
2525
alias: {
2626
'@': path.resolve(__dirname, '../src'),
2727
},

0 commit comments

Comments
 (0)