Skip to content

Commit

Permalink
docs: 将项目依赖管理工具从 npm 更改为 pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
TBXark committed Dec 24, 2024
1 parent 9ff6f48 commit 1302b12
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions doc/cn/DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@
## 命令行部署
1. 准备部署所需的 Telegram Bot Token 和 OpenAI API Key
2. `mv wrangler-example.toml wrangler.toml`, 然后修改相应配置
3. `yarn install`
4. `yarn run deploy:build`
3. `pnpm install`
4. `pnpm run deploy:dist`
12 changes: 6 additions & 6 deletions doc/cn/LOCAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ toml 内容与cloudflare workers配置文件兼容
## 本地运行

```shell
npm install
npm run start:local
pnpm install
pnpm run start:local
```
or

```shell
npm install
npm run build:local
CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml npm run start:dist
pnpm install
pnpm run build:local
CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml pnpm run start:dist
```


Expand All @@ -49,7 +49,7 @@ docker build -t chatgpt-telegram-workers:latest .
```
or
```shell
npm run build:docker # 更快(直接使用本地构建的结果创建镜像)
pnpm run build:docker # 更快(直接使用本地构建的结果创建镜像)
```

### 2. 运行容器
Expand Down
4 changes: 2 additions & 2 deletions doc/en/DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ Thank [**科技小白堂**](https://www.youtube.com/@lipeng0820) for providing t

1. Prepare the required Telegram Bot Token and OpenAI API Key
2. `mv wrangler-example.toml wrangler.toml`, then modify the corresponding configuration
3. `yarn install`
4. `yarn run deploy:build`
3. `pnpm install`
4. `pnpm run deploy:dist`
12 changes: 6 additions & 6 deletions doc/en/LOCAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ The toml content is compatible with Cloudflare Workers configuration files.
## Local run

```shell
npm install
npm run start:local
pnpm install
pnpm run start:local
```
or

```shell
npm install
npm run build:local
CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml npm run start:dist
pnpm install
pnpm run build:local
CONFIG_PATH=./config.json TOML_PATH=./wrangler.toml pnpm run start:dist
```


Expand All @@ -49,7 +49,7 @@ docker build -t chatgpt-telegram-workers:latest .
```
or
```shell
npm run build:docker # Faster (directly use the locally built results to create the image)
pnpm run build:docker # Faster (directly use the locally built results to create the image)
```

### 2. Run container
Expand Down

0 comments on commit 1302b12

Please sign in to comment.