From b47a34f04a2e1ff96e187952d55e56ea12919d5f Mon Sep 17 00:00:00 2001 From: chouchouji <1305974212@qq.com> Date: Tue, 29 Oct 2024 17:43:23 +0800 Subject: [PATCH] chore: add format script command --- .prettierignore | 4 ++++ package.json | 1 + src/logger.ts | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index ed9a0b6..eeaf7d3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -4,4 +4,8 @@ CHANGELOG.md .github/** .history/** +README.md +README.zh-CN.md + +package.json pnpm-lock.yaml diff --git a/package.json b/package.json index 37cfb6a..d0ede7b 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "build": "tsup", "release": "pnpm build && node bin/index.js release -c", "lint": "eslint --ext .ts,.js", + "format": "prettier --write .", "commit-lint": "node bin/index.js commit-lint" }, "simple-git-hooks": { diff --git a/src/logger.ts b/src/logger.ts index ae6bccc..1535847 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -16,4 +16,4 @@ export default { title(text: string) { console.log(pico.cyan(text)) }, -} \ No newline at end of file +}