Skip to content

Commit a06cb59

Browse files
committed
refactor(cli): remove @stagewise/karton-contract-bridged dependency
1 parent ac74419 commit a06cb59

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

.changeset/wild-papers-build.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"stagewise": patch
3+
---
4+
5+
Locally declare unbundled type import of KartonContract.

apps/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"@stagewise/agent-runtime-node": "workspace:*",
4141
"@stagewise/api-client": "1.4.0",
4242
"@stagewise/karton": "workspace:*",
43-
"@stagewise/karton-contract-bridged": "workspace:*",
4443
"@stagewise/toolbar": "workspace:*",
4544
"@stagewise/toolbar-bridged": "workspace:*",
4645
"@types/express": "^4.17.21",

apps/cli/src/server/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import express, { type Request, type Response } from 'express';
22
import type { WebSocketServer, WebSocket } from 'ws';
33
import { createKartonServer } from '@stagewise/karton/server';
4-
import type { KartonContract } from '@stagewise/karton-contract-bridged';
54
import { createServer } from 'node:http';
65
import { configResolver } from '../config/index.js';
76
import { proxy } from './proxy.js';
@@ -18,6 +17,19 @@ import {
1817
} from './plugin-loader.js';
1918
import { analyticsEvents } from '../utils/telemetry.js';
2019

20+
// ATTENTION: keep in sync with @stagewise/karton-contract-bridged - can't import because types aren't bundled -.-
21+
type KartonContract = {
22+
state: {
23+
noop: boolean;
24+
};
25+
clientProcedures: {
26+
noop: () => Promise<void>;
27+
};
28+
serverProcedures: {
29+
trackCopyToClipboard: () => Promise<void>;
30+
};
31+
};
32+
2133
const __dirname = dirname(fileURLToPath(import.meta.url));
2234

2335
const getImportMap = async (plugins: Plugin[]) => {

pnpm-lock.yaml

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)