mirror of
https://github.com/sandbaseai/sandbase-harness.git
synced 2026-09-28 06:03:00 +08:00
fix(ci): copy tsdown config in MCP image (#183)
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user