fix(ci): copy tsdown config in MCP image (#183)

This commit is contained in:
Yao
2026-09-18 21:22:03 +08:00
committed by GitHub
parent 89ae80902f
commit e34956b112
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts
COPY tsconfig.json tsconfig.tests.json tsup.config.ts ./
COPY tsconfig.json tsconfig.tests.json tsdown.config.ts ./
COPY src ./src
RUN npm run build:runtime && npm prune --omit=dev
+2
View File
@@ -34,6 +34,8 @@ describe('MCP OCI distribution', () => {
expect(workflow).not.toContain('npm publish');
expect(dockerfile).toContain('io.modelcontextprotocol.server.name="io.github.sandbaseai/sandbase-harness"');
expect(dockerfile).toContain('RUN npm ci --ignore-scripts');
expect(dockerfile).toContain('COPY tsconfig.json tsconfig.tests.json tsdown.config.ts ./');
expect(dockerfile).not.toContain('tsup.config.ts');
expect(dockerfile).toContain('RUN npm run build:runtime && npm prune --omit=dev');
});