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

feat: bumped to [email protected] with serializable requests #1978

Merged
merged 5 commits into from
Mar 12, 2025
Merged
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
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -37,13 +37,14 @@
"*": "prettier --ignore-unknown --write"
},
"dependencies": {
"bingo": "^0.5.7",
"bingo": "^0.5.8",
"bingo-fs": "^0.5.4",
"bingo-stratum": "^0.5.4",
"bingo-stratum": "^0.5.5",
"cspell-populate-words": "^0.3.0",
"execa": "^9.5.2",
"git-remote-origin-url": "^4.0.0",
"git-url-parse": "^16.0.1",
"github-default-labels": "^0.1.0",
"html-to-text": "^9.0.5",
"image-size": "^1.2.0",
"input-from-file": "^0.5.4",
@@ -58,7 +59,7 @@
"parse-package-name": "^1.0.0",
"remove-dependencies": "^0.1.0",
"remove-undefined-objects": "^6.0.0",
"set-github-repository-labels": "^0.1.0",
"set-github-repository-labels": "^0.2.0",
"sort-package-json": "^3.0.0",
"title-case": "^4.3.2",
"zod": "^3.24.2"
@@ -78,8 +79,9 @@
"@vitest/coverage-v8": "3.0.7",
"@vitest/eslint-plugin": "1.1.36",
"all-contributors-cli": "6.26.1",
"bingo-requests": "^0.5.4",
"bingo-stratum-testers": "0.5.6",
"bingo-testers": "0.5.4",
"bingo-testers": "^0.5.6",
"console-fail-test": "0.5.0",
"cspell": "8.17.5",
"eslint": "9.21.0",
1,581 changes: 750 additions & 831 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/base.test.ts
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@ describe("base", () => {
github: "[email protected]",
npm: "[email protected]",
},
existingLabels: expect.any(Array),
explainer: [
`\`create-typescript-app\` is a one-stop-shop solution to set up a new or existing repository with the latest and greatest TypeScript tooling.`,
`It includes options not just for building and testing but also automated release management, contributor recognition, GitHub repository settings, and more.`,
16 changes: 16 additions & 0 deletions src/base.ts
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ import npmUser from "npm-user";
import { z } from "zod";

import { inputFromOctokit } from "./inputs/inputFromOctokit.js";
import { getExistingLabels } from "./options/getExistingLabels.js";
import { parsePackageAuthor } from "./options/parsePackageAuthor.js";
import { readAllContributors } from "./options/readAllContributors.js";
import { readDefaultsFromReadme } from "./options/readDefaultsFromReadme.js";
@@ -73,6 +74,16 @@ export const base = createBase({
.describe(
"email address to be listed as the point of contact in docs and packages",
),
existingLabels: z
.array(
z.object({
color: z.string(),
description: z.string(),
name: z.string(),
}),
)
.optional()
.describe("existing labels from the GitHub repository"),
explainer: z
.array(z.string())
.optional()
@@ -155,6 +166,10 @@ export const base = createBase({
}),
);

const existingLabels = lazyValue(async () =>
getExistingLabels(take, await owner(), await repository()),
);

const githubCliUser = lazyValue(async () => {
return swallowError(
await take(inputFromScript, {
@@ -241,6 +256,7 @@ export const base = createBase({
description: async () => await readDescription(packageData, readme),
documentation,
email,
existingLabels,
funding: readFunding,
guide: readGuide,
login: author,
Loading