Skip to content

Commit 069b0c2

Browse files
committed
fix docker build error
1 parent 614bf03 commit 069b0c2

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ COPY --from=dependencies /app/node_modules ./node_modules
1515
ENV NODE_ENV production
1616
# Build the library
1717
RUN yarn tsc -p tsconfig.build.json --sourceMap --inlineSources
18-
# Install only production dependencies
19-
RUN yarn install --frozen-lockfile --production=true --ignore-scripts && yarn cache clean
18+
# Keep all dependencies for playground (including dev dependencies)
19+
RUN yarn cache clean
2020

2121
USER node
2222

playground/resources/ranking/ranking.prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Scope } from '@nestjs/common';
2-
import { Prompt } from '../../../src';
2+
import { Prompt } from '../../../dist';
33
import { z } from 'zod';
44

55
@Injectable({ scope: Scope.REQUEST })

playground/resources/ranking/ranking.resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Scope } from '@nestjs/common';
2-
import { Resource, ResourceTemplate } from '../../../src';
2+
import { Resource, ResourceTemplate } from '../../../dist';
33
import { DexClient } from '@chainstream-io/dex';
44

55
// Define supported chain types based on SDK

playground/resources/ranking/ranking.tool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Scope } from '@nestjs/common';
2-
import { Tool } from '../../../src';
2+
import { Tool } from '../../../dist';
33
import { DexClient } from '@chainstream-io/dex';
44
import { z } from 'zod';
55

playground/resources/token/token.prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Scope } from '@nestjs/common';
2-
import { Prompt } from '../../../src';
2+
import { Prompt } from '../../../dist';
33
import { z } from 'zod';
44

55
@Injectable({ scope: Scope.REQUEST })

playground/resources/token/token.resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Scope } from '@nestjs/common';
2-
import { Resource, ResourceTemplate } from '../../../src';
2+
import { Resource, ResourceTemplate } from '../../../dist';
33
import { DexClient } from '@chainstream-io/dex';
44

55
// Define supported chain types based on SDK

playground/resources/token/token.tool.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Injectable, Scope } from '@nestjs/common';
2-
import { Tool } from '../../../src';
2+
import { Tool } from '../../../dist';
33
import { DexClient } from '@chainstream-io/dex';
44
import { z } from 'zod';
55

@@ -11,7 +11,7 @@ type SortByField = 'marketCapInUsd' | 'liquidityInUsd' | 'priceInUsd' | 'holderC
1111

1212
@Injectable()
1313
export class TokenTool {
14-
constructor(private readonly dexClient: DexClient) {}
14+
// Remove constructor injection of DexClient
1515

1616
@Tool({
1717
name: 'getToken',

playground/servers/server-stateful.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Module } from '@nestjs/common';
22
import { NestFactory } from '@nestjs/core';
33
import { randomUUID } from 'crypto';
4-
import { McpModule } from '../../src';
4+
import { McpModule } from '../../dist';
55
import { RankingResource } from '../resources/ranking/ranking.resource';
66
import { RankingTool } from '../resources/ranking/ranking.tool';
77
import { RankingPrompt } from '../resources/ranking/ranking.prompt';

0 commit comments

Comments
 (0)