From f2c5a97f417214e058afb23e178460bbc03f6309 Mon Sep 17 00:00:00 2001 From: Barry Yip Date: Sat, 7 Jun 2025 23:29:47 +0800 Subject: [PATCH] Fix: smithery deployment --- Dockerfile | 4 ++-- smithery.yaml | 11 +++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index c8c99f7..10d0ca8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,8 +7,8 @@ WORKDIR /app # Copy package files COPY package.json package-lock.json ./ -# Install dependencies without running scripts -RUN npm install --ignore-scripts +# Install dependencies +RUN npm ci # Copy source code COPY . . diff --git a/smithery.yaml b/smithery.yaml index 9998c55..a51ba94 100644 --- a/smithery.yaml +++ b/smithery.yaml @@ -7,7 +7,10 @@ startCommand: properties: discordToken: type: string - description: The bot token for Discord integration. - commandFunction: - |- - config => ({command: 'node', args: ['./build/index.js', '--transport', 'http', '--port', '8080'], env: {DISCORD_TOKEN: config.discordToken}}) \ No newline at end of file + description: "The bot token for Discord integration." + commandFunction: | + config => ({ + command: 'node', + args: ['./build/index.js', '--transport', 'http', '--port', '8080'], + env: {DISCORD_TOKEN: config.discordToken} + }) \ No newline at end of file