Skip to content

Commit b4bd01b

Browse files
chore: remove deno only and keep universal cli. update citations of deno install to use npm/bun i -g (#935)
* correct deploy printing * migration + readme * readme tsconfig and ci * docs deploy * fix documentation * fix docs again * remove weird dynamic improts * bump version
1 parent 6b030ad commit b4bd01b

72 files changed

Lines changed: 51 additions & 4514 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-docs.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ jobs:
1818
- name: Set up Bun
1919
uses: oven-sh/setup-bun@v2
2020

21-
- name: Set up Deno
22-
uses: denoland/setup-deno@v2
23-
with:
24-
deno-version: v2.x
25-
2621
- name: Install Deco CLI
27-
run: deno install -Ar -g -n deco jsr:@deco/cli -f
22+
run: bun install -g deco-cli
2823

2924
- name: Install dependencies
3025
run: |

.github/workflows/publish-cli-npm.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- "packages/cli-node/**"
7+
- "packages/cli/**"
88
workflow_dispatch:
99

1010
jobs:
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Build package
3030
run: npm run build
31-
working-directory: packages/cli-node
31+
working-directory: packages/cli
3232

3333
- name: Check if version changed
3434
id: version-check
@@ -50,12 +50,12 @@ jobs:
5050
echo "version-changed=false" >> $GITHUB_OUTPUT
5151
echo "⏭️ Version unchanged ($CURRENT_VERSION), skipping publish"
5252
fi
53-
working-directory: packages/cli-node
53+
working-directory: packages/cli
5454

5555
- name: Publish to NPM
5656
if: steps.version-check.outputs.version-changed == 'true'
5757
run: npm publish
58-
working-directory: packages/cli-node
58+
working-directory: packages/cli
5959
env:
6060
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6161

.github/workflows/publish-cli.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ Views can call server-side tools via typed RPC.
4848

4949
### Requirements
5050

51-
- [Deno](https://docs.deno.com/runtime/) 2.x.x _(temporary — will be optional
52-
after CLI migration)_
5351
- Your preferred JavaScript runtime:
5452
- Recommended: [Bun](https://bun.sh)
5553
- Supported: [Node.js](https://nodejs.org), [Deno](https://deno.land)
@@ -59,7 +57,13 @@ Views can call server-side tools via typed RPC.
5957
1. Install the CLI
6058

6159
```
62-
deno install -Ar -g -n deco jsr:@deco/cli
60+
npm i -g deco-cli
61+
```
62+
63+
or
64+
65+
```
66+
bun i -g deco-cli
6367
```
6468

6569
2. Log in to [deco.chat](https://deco.chat). Don’t have an account? Sign up

apps/web/src/components/workflows/list.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function WorkflowRunsTab() {
299299

300300
function WorkflowEmptyState() {
301301
const [copied, setCopied] = useState(false);
302-
const cliCommand = "deno install -Ar -g -n deco jsr:@deco/cli";
302+
const cliCommand = "npm i -g deco-cli";
303303

304304
const handleCopy = async () => {
305305
await navigator.clipboard.writeText(cliCommand);

docs/.cursor/rules/main.mdc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,13 @@ npm install my-package
200200
### Prerequisites:
201201
- Node.js >=18.0.0
202202
- npm >=8.0.0
203-
- Deno >=2.0.0
204-
- Deco CLI installed: `deno install -Ar -g -n deco jsr:@deco/cli`
205203

206204
### Initial Setup:
207-
1. `deco login` - Authenticate with deco.chat
208-
2. `npm install` - Install all dependencies
209-
3. `npm run configure` - Configure the app with the desired name and select its workspace
210-
4. `npm run dev` - Start development
205+
1. `npm i -g deco-cli` - Ensure deco cli is installed
206+
2. `deco login` - Authenticate with deco.chat
207+
3. `npm install` - Install all dependencies
208+
4. `npm run configure` - Configure the app with the desired name and select its workspace
209+
5. `npm run dev` - Start development
211210

212211
## Integration with Deco Platform
213212

docs/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ with Astro and Starlight.
2828
### Prerequisites
2929

3030
- Node.js ≥18.0.0
31-
- Deno ≥2.0.0
32-
- [Deco CLI](https://deco.chat): `deno install -Ar -g -n deco jsr:@deco/cli`
31+
- [Deco CLI](https://deco.chat): `npm i -g deco-cli`
3332

3433
### Setup
3534

docs/server/deco.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5493,7 +5493,7 @@ export interface Env {
54935493
* "scripts": {
54945494
* "dev": "deco dev",
54955495
* "gen": "deco gen > env.gen.ts",
5496-
* "setup": "deno install -Ar -g -n deco jsr:@deco/cli -f",
5496+
* "setup": "npm i -g deco-cli",
54975497
* "deploy": "wrangler deploy --dry-run --outdir ./dist && deco deploy ./dist"
54985498
* },
54995499
* "dependencies": {

docs/view/src/content/en/getting-started.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ Before you begin, make sure you have the following:
1313

1414
- **Node.js** (v18+ recommended) – required for running the frontend development server and bundling assets.
1515

16-
- **Deno** – used to install and run the deco CLI. Deco's tooling is distributed as a Deno module.
17-
18-
- **deco.chat CLI** – the command-line interface for deco.chat, which you can install via Deno.
16+
- **deco.chat CLI** – the command-line interface for deco.chat, which you can install via NPM.
1917

2018
- **Cloudflare Account** – needed to deploy your app (Cloudflare Workers is the runtime).
2119

@@ -30,10 +28,10 @@ Once your environment is ready, follow these steps to create a new deco.chat pro
3028
Open your terminal and run:
3129

3230
```bash
33-
deno install -Ar -g -n deco jsr:@deco/cli
31+
npm i -g deco-cli
3432
```
3533

36-
This globally installs the deco command. (The CLI is published as a Deno module on the JSR registry.) After installation, you can run `deco --help` to verify it's working.
34+
This globally installs the deco command. After installation, you can run `deco --help` to verify it's working.
3735
</Step>
3836

3937
<Step number={2} title="Log in to deco.chat">

docs/view/src/content/en/guides/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Welcome to deco.chat! This guide will help you create your first MCP server with
1616
Run the following command to install the deco CLI:
1717

1818
```bash
19-
deno install -Ar -g -n deco jsr:@deco/cli
19+
npm i -g deco-cli
2020
```
2121
</Step>
2222

0 commit comments

Comments
 (0)