Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): 修复 octokit 依赖更新导致 cli 命令执行失败的问题 #1293

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nasty-islands-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/cli": patch
---

修复更新 octokit 依赖后导致 cli 命令执行失败的问题
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"js-yaml": "4.1.0",
"pino": "8.16.2",
"pino-pretty": "10.3.1",
"octokit": "4.0.2",
"@octokit/rest": "20.1.1",
"jszip": "3.10.1",
"dotenv": "16.4.5",
"death": "1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/cli/src/cmd/updateCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
* See the Mulan PSL v2 for more details.
*/

import { Octokit } from "@octokit/rest";
import fs, { existsSync } from "fs";
import { chmod, unlink } from "fs/promises";
import JSZip from "jszip";
// node-fetch is esm only
import fetch from "node-fetch-commonjs";
import { Octokit } from "octokit";
import prompt from "prompts";
import { createProxyAgent, proxyUrl } from "src/config/proxy";
import { logger } from "src/log";
Expand Down
Loading
Loading