Skip to content

Commit

Permalink
chore: update publint (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jul 28, 2023
1 parent f807aec commit e275496
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"mri": "^1.2.0",
"picocolors": "^1.0.0",
"prompts": "^2.4.2",
"publint": "^0.1.16",
"publint": "^0.2.0",
"semver": "^7.5.4"
},
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
} from "./utils.ts";
import type { release as def } from "./types.d.ts";
import { publint } from "publint";
import { printMessage } from "publint/utils";
import { formatMessage } from "publint/utils";

export const release: typeof def = async ({
repo,
Expand Down Expand Up @@ -43,10 +43,10 @@ export const release: typeof def = async ({

const { pkg, pkgPath, pkgDir } = getPackageInfo(selectedPkg, getPkgDir);

const messages = await publint({ pkgDir });
const { messages } = await publint({ pkgDir });

if (messages.length) {
for (const message of messages) console.log(printMessage(message, pkg));
for (const message of messages) console.log(formatMessage(message, pkg));
const { yes }: { yes: boolean } = await prompts({
type: "confirm",
name: "yes",
Expand Down

0 comments on commit e275496

Please sign in to comment.