Skip to content
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 .changes/clack-prompts-update-v1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"covector": patch:deps
---

Upgrade `@clack/prompts` to v1.
99 changes: 77 additions & 22 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Jacob Bolda <me@jacobbolda.com>",
"license": "Apache-2.0",
"scripts": {
"covector": "node --conditions=development --import=tsx ./packages/covector/bin/covector.mjs",
"covector": "node --conditions=development ./packages/covector/bin/covector.mjs",
"build": "npm run build --workspaces --if-present",
"build:action": "npm run build:action -w action",
"run:action:source": "npm run run:source -w action",
Expand Down
2 changes: 1 addition & 1 deletion packages/action/src/comment/postGithubComment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DefaultArtifactClient } from "@actions/artifact";
import fs from "node:fs/promises";
import path from "node:path";
import type { getOctokit } from "@actions/github";
import { until, Operation } from "effection";
import { until, type Operation } from "effection";
import { Logger } from "@covector/types";

export function* postGithubComment({
Expand Down
2 changes: 1 addition & 1 deletion packages/changelog/src/get.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { all, Operation } from "effection";
import { all, type Operation } from "effection";
import { readChangelog } from "@covector/files";

import type {
Expand Down
2 changes: 1 addition & 1 deletion packages/changelog/src/write.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { all, Operation } from "effection";
import { all, type Operation } from "effection";
import { writeChangelog } from "@covector/files";

import type { LoadedFile } from "@covector/types";
Expand Down
4 changes: 2 additions & 2 deletions packages/covector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/jbolda/covector.git"
},
"engines": {
"node": ">=18"
"node": ">=20.12"
},
"type": "module",
"exports": {
Expand All @@ -32,7 +32,7 @@
"test": "vitest"
},
"dependencies": {
"@clack/prompts": "^0.10.0",
"@clack/prompts": "^1.6.0",
"@covector/apply": "0.10.0",
"@covector/assemble": "0.12.0",
"@covector/changelog": "0.12.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/covector/src/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const add = function* ({
text({
message: `Please summarize the changes that occurred.`,
validate(value) {
if (value.length === 0) return "You must enter a summary.";
if (!value || value.length === 0) return "You must enter a summary.";
},
}),
);
Expand All @@ -117,7 +117,7 @@ export const add = function* ({
message: `Please name the change file.`,
initialValue: branchName,
validate(answer) {
if (answer.length === 0) return "You must enter a file name.";
if (!answer || answer.length === 0) return "You must enter a file name.";
if (!answer.endsWith(".md"))
return "File name must end with the .md file extension.";
if (existsSync(join(cwd, changeFolder, `${answer}`)))
Expand Down
2 changes: 1 addition & 1 deletion packages/covector/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { intro, outro, group, cancel, text, confirm } from "@clack/prompts";
import * as fs from "fs/promises";
import type { Dir } from "fs";
import path from "path";
import { Operation, all, until } from "effection";
import { type Operation, all, until } from "effection";
import { readPkgFile } from "@covector/files";
import type { Logger, Covector, PackageFile } from "@covector/types";

Expand Down
2 changes: 1 addition & 1 deletion packages/covector/src/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type {
ChangeContext,
ConfigFile,
} from "@covector/types";
import { until, Operation } from "effection";
import { until, type Operation } from "effection";

export function* version({
logger,
Expand Down
Loading