Skip to content

Commit a484fb2

Browse files
fix: DOs CLI (#1202)
* fix do cli * rollback header * bump package json
1 parent f142352 commit a484fb2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deco-cli",
3-
"version": "0.18.0",
3+
"version": "0.18.1",
44
"description": "CLI for managing decocms.com apps & projects",
55
"license": "MIT",
66
"author": "Deco team",

packages/cli/src/lib/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const readConfigFile = async (cwd?: string) => {
128128
};
129129

130130
const DECO_CHAT_WORKFLOW_BINDING = {
131-
name: "DECO_CHAT_WORKFLOW_DO",
131+
name: "DECO_WORKFLOW_DO",
132132
class_name: "Workflow",
133133
};
134134

@@ -159,7 +159,9 @@ export const writeWranglerConfig = async (
159159

160160
export const addWorkflowDO = async () => {
161161
const wranglerConfig = await readWranglerConfig(process.cwd());
162-
const currentDOs = wranglerConfig.durable_objects?.bindings ?? [];
162+
const currentDOs = (wranglerConfig.durable_objects?.bindings ?? []).filter(
163+
(b) => b.name !== "DECO_CHAT_WORKFLOW_DO",
164+
);
163165
const isWorkflowMigration = (m: { new_classes?: string[] }) =>
164166
m.new_classes?.includes(DECO_CHAT_WORKFLOW_BINDING.class_name);
165167

0 commit comments

Comments
 (0)