create-typescript-app 2.5.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/lib/base.d.ts +7 -6
- package/lib/base.js +122 -96
- package/lib/blocks/blockAllContributors.d.ts +1 -0
- package/lib/blocks/blockAreTheTypesWrong.d.ts +1 -0
- package/lib/blocks/blockCSpell.d.ts +1 -0
- package/lib/blocks/blockCodecov.d.ts +1 -0
- package/lib/blocks/blockContributingDocs.d.ts +1 -0
- package/lib/blocks/blockContributingDocs.js +2 -2
- package/lib/blocks/blockContributorCovenant.d.ts +1 -0
- package/lib/blocks/blockDevelopmentDocs.d.ts +1 -0
- package/lib/blocks/blockESLint.d.ts +1 -0
- package/lib/blocks/blockESLintComments.d.ts +1 -0
- package/lib/blocks/blockESLintJSDoc.d.ts +1 -0
- package/lib/blocks/blockESLintJSONC.d.ts +1 -0
- package/lib/blocks/blockESLintMarkdown.d.ts +1 -0
- package/lib/blocks/blockESLintMoreStyling.d.ts +1 -0
- package/lib/blocks/blockESLintNode.d.ts +1 -0
- package/lib/blocks/blockESLintNode.js +2 -9
- package/lib/blocks/blockESLintPackageJson.d.ts +1 -0
- package/lib/blocks/blockESLintPerfectionist.d.ts +1 -0
- package/lib/blocks/blockESLintRegexp.d.ts +1 -0
- package/lib/blocks/blockESLintYML.d.ts +1 -0
- package/lib/blocks/blockExampleFiles.d.ts +1 -0
- package/lib/blocks/blockFunding.d.ts +1 -0
- package/lib/blocks/blockGitHubActionsCI.d.ts +1 -0
- package/lib/blocks/blockGitHubApps.d.ts +1 -0
- package/lib/blocks/blockGitHubIssueTemplates.d.ts +1 -0
- package/lib/blocks/blockGitHubPRTemplate.d.ts +1 -0
- package/lib/blocks/blockGitHubPRTemplate.js +1 -1
- package/lib/blocks/blockGitignore.d.ts +1 -0
- package/lib/blocks/blockKnip.d.ts +1 -0
- package/lib/blocks/blockMITLicense.d.ts +1 -0
- package/lib/blocks/blockMarkdownlint.d.ts +1 -0
- package/lib/blocks/blockNvmrc.d.ts +1 -0
- package/lib/blocks/blockPRCompliance.d.ts +1 -0
- package/lib/blocks/blockPackageJson.d.ts +1 -0
- package/lib/blocks/blockPnpmDedupe.d.ts +1 -0
- package/lib/blocks/blockPrettier.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginCurly.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginPackageJson.d.ts +1 -0
- package/lib/blocks/blockPrettierPluginSh.d.ts +1 -0
- package/lib/blocks/blockREADME.d.ts +1 -0
- package/lib/blocks/blockREADME.js +1 -1
- package/lib/blocks/blockReleaseIt.d.ts +1 -0
- package/lib/blocks/blockRenovate.d.ts +1 -0
- package/lib/blocks/blockRepositoryBranchRuleset.d.ts +1 -0
- package/lib/blocks/blockRepositoryLabels.d.ts +1 -0
- package/lib/blocks/blockRepositorySecrets.d.ts +1 -0
- package/lib/blocks/blockRepositorySettings.d.ts +1 -0
- package/lib/blocks/blockSecurityDocs.d.ts +1 -0
- package/lib/blocks/blockTSup.d.ts +1 -0
- package/lib/blocks/blockTemplatedWith.d.ts +1 -0
- package/lib/blocks/blockTypeScript.d.ts +1 -0
- package/lib/blocks/blockVSCode.d.ts +1 -0
- package/lib/blocks/blockVitest.d.ts +1 -0
- package/lib/blocks/index.d.ts +43 -0
- package/lib/blocks/options.fakes.d.ts +1 -0
- package/lib/blocks/options.fakes.js +1 -0
- package/lib/constants.d.ts +8 -0
- package/lib/constants.js +9 -0
- package/lib/data/packageData.d.ts +3 -3
- package/lib/index.d.ts +2 -0
- package/lib/inputs/inputFromOctokit.js +1 -0
- package/lib/options/readAuthor.d.ts +7 -0
- package/lib/options/readAuthor.js +6 -0
- package/lib/options/readEmailFromCodeOfConduct.d.ts +5 -0
- package/lib/options/readEmailFromCodeOfConduct.js +10 -0
- package/lib/options/readEmailFromGit.d.ts +5 -0
- package/lib/options/readEmailFromGit.js +7 -0
- package/lib/options/readEmailFromNpm.d.ts +7 -0
- package/lib/options/readEmailFromNpm.js +6 -0
- package/lib/options/readEmails.d.ts +1 -6
- package/lib/options/readEmails.js +3 -8
- package/lib/options/readEmoji.d.ts +3 -0
- package/lib/options/readEmoji.js +6 -0
- package/lib/options/readExistingLabels.d.ts +9 -0
- package/lib/options/{getExistingLabels.js → readExistingLabels.js} +3 -2
- package/lib/options/readExplainer.d.ts +3 -0
- package/lib/options/readExplainer.js +12 -0
- package/lib/options/readFunding.d.ts +3 -1
- package/lib/options/readFunding.js +6 -6
- package/lib/options/readGitDefaults.d.ts +5 -0
- package/lib/options/readGitDefaults.js +12 -0
- package/lib/options/readGuide.d.ts +3 -1
- package/lib/options/readGuide.js +8 -3
- package/lib/options/readLogo.d.ts +8 -0
- package/lib/options/readLogo.js +19 -0
- package/lib/options/readNode.d.ts +8 -0
- package/lib/options/readNode.js +12 -0
- package/lib/options/readNpmDefaults.d.ts +6 -0
- package/lib/options/readNpmDefaults.js +9 -0
- package/lib/options/readOwner.d.ts +8 -0
- package/lib/options/readOwner.js +9 -0
- package/lib/options/readPackageAuthor.d.ts +8 -0
- package/lib/options/{parsePackageAuthor.js → readPackageAuthor.js} +3 -2
- package/lib/options/readPackageData.d.ts +5 -1
- package/lib/options/readPackageData.js +7 -3
- package/lib/options/readPackageDataFull.d.ts +6 -0
- package/lib/options/readPackageDataFull.js +9 -0
- package/lib/options/readRepository.d.ts +9 -0
- package/lib/options/readRepository.js +6 -0
- package/lib/options/readRulesetId.d.ts +5 -0
- package/lib/options/readRulesetId.js +16 -0
- package/lib/options/readTitle.d.ts +3 -0
- package/lib/options/readTitle.js +13 -0
- package/lib/options/readUsage.d.ts +3 -0
- package/lib/options/readUsage.js +14 -0
- package/lib/options/readUsageFromReadme.d.ts +3 -0
- package/lib/options/{getUsageFromReadme.js → readUsageFromReadme.js} +2 -2
- package/lib/presets/common.d.ts +1 -0
- package/lib/presets/everything.d.ts +1 -0
- package/lib/presets/index.d.ts +3 -0
- package/lib/presets/minimal.d.ts +1 -0
- package/lib/template.d.ts +1 -0
- package/lib/utils/swallowErrorAsync.d.ts +3 -0
- package/lib/utils/swallowErrorAsync.js +10 -0
- package/package.json +3 -3
- package/lib/options/getExistingLabels.d.ts +0 -9
- package/lib/options/getUsageFromReadme.d.ts +0 -3
- package/lib/options/parsePackageAuthor.d.ts +0 -8
- package/lib/options/readDefaultsFromReadme.d.ts +0 -13
- package/lib/options/readDefaultsFromReadme.js +0 -57
- package/lib/options/readGitHubEmail.d.ts +0 -3
- package/lib/options/readGitHubEmail.js +0 -11
- package/lib/utils/tryCatchAsync.d.ts +0 -3
- package/lib/utils/tryCatchAsync.js +0 -10
- package/lib/utils/tryCatchLazyValueAsync.d.ts +0 -3
- package/lib/utils/tryCatchLazyValueAsync.js +0 -8
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function readEmails(npmDefaults: () => Promise<undefined | UserInfo>, packageAuthor: () => Promise<{
|
|
4
|
-
author: string | undefined;
|
|
5
|
-
email: string | undefined;
|
|
6
|
-
}>): Promise<{
|
|
1
|
+
declare function readEmails(getEmailFromCodeOfConduct: () => Promise<string | undefined>, getEmailFromGit: () => Promise<string | undefined>, getEmailFromNpm: () => Promise<string | undefined>): Promise<{
|
|
7
2
|
github: string;
|
|
8
3
|
npm: string;
|
|
9
4
|
} | undefined>;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
async function readEmails(npmDefaults, packageAuthor) {
|
|
5
|
-
const github = await readGitHubEmail() ?? await tryCatchAsync(
|
|
6
|
-
async () => (await $`git config --get user.email`).stdout
|
|
7
|
-
);
|
|
8
|
-
const npm = ((await npmDefaults())?.email ?? (await packageAuthor()).email) || github;
|
|
1
|
+
async function readEmails(getEmailFromCodeOfConduct, getEmailFromGit, getEmailFromNpm) {
|
|
2
|
+
const github = await getEmailFromCodeOfConduct() ?? await getEmailFromGit();
|
|
3
|
+
const npm = await getEmailFromNpm() ?? github;
|
|
9
4
|
return npm ? { github: github || npm, npm } : void 0;
|
|
10
5
|
}
|
|
11
6
|
export {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TakeInput } from 'bingo';
|
|
2
|
+
|
|
3
|
+
declare function readExistingLabels(take: TakeInput, getOwner: () => Promise<string | undefined>, getRepository: () => Promise<string | undefined>): Promise<{
|
|
4
|
+
color: string;
|
|
5
|
+
description: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}[]>;
|
|
8
|
+
|
|
9
|
+
export { readExistingLabels };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { githubDefaultLabels } from "github-default-labels";
|
|
2
2
|
import { inputFromOctokit } from "../inputs/inputFromOctokit.js";
|
|
3
|
-
async function
|
|
3
|
+
async function readExistingLabels(take, getOwner, getRepository) {
|
|
4
|
+
const [owner, repository] = await Promise.all([getOwner(), getRepository()]);
|
|
4
5
|
const existingLabelsActual = owner && repository && await take(inputFromOctokit, {
|
|
5
6
|
endpoint: "GET /repos/{owner}/{repo}/labels",
|
|
6
7
|
options: {
|
|
@@ -18,5 +19,5 @@ async function getExistingLabels(take, owner, repository) {
|
|
|
18
19
|
return githubDefaultLabels;
|
|
19
20
|
}
|
|
20
21
|
export {
|
|
21
|
-
|
|
22
|
+
readExistingLabels
|
|
22
23
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
async function readExplainer(getReadme) {
|
|
2
|
+
const readme = await getReadme();
|
|
3
|
+
const indexOfH2 = readme.indexOf("##");
|
|
4
|
+
if (indexOfH2 === -1) {
|
|
5
|
+
return void 0;
|
|
6
|
+
}
|
|
7
|
+
const lastTag = readme.slice(0, indexOfH2).lastIndexOf(">");
|
|
8
|
+
return readme.slice(lastTag + 1, indexOfH2).split("\n").map((line) => line.trim()).filter(Boolean);
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
readExplainer
|
|
12
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
async function readFunding() {
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
);
|
|
1
|
+
import { inputFromFile } from "input-from-file";
|
|
2
|
+
import { swallowError } from "../utils/swallowError.js";
|
|
3
|
+
async function readFunding(take) {
|
|
4
|
+
return swallowError(
|
|
5
|
+
await take(inputFromFile, { filePath: ".github/FUNDING.yml" })
|
|
6
|
+
)?.split(":")[1]?.trim();
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
readFunding
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import gitRemoteOriginUrl from "git-remote-origin-url";
|
|
2
|
+
import gitUrlParse from "git-url-parse";
|
|
3
|
+
async function readGitDefaults() {
|
|
4
|
+
try {
|
|
5
|
+
return gitUrlParse(await gitRemoteOriginUrl());
|
|
6
|
+
} catch {
|
|
7
|
+
return void 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
readGitDefaults
|
|
12
|
+
};
|
package/lib/options/readGuide.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
async function readGuide() {
|
|
3
|
-
const development = await
|
|
1
|
+
import { inputFromFile } from "input-from-file";
|
|
2
|
+
async function readGuide(take) {
|
|
3
|
+
const development = await take(inputFromFile, {
|
|
4
|
+
filePath: ".github/DEVELOPMENT.md"
|
|
5
|
+
});
|
|
6
|
+
if (development instanceof Error) {
|
|
7
|
+
return void 0;
|
|
8
|
+
}
|
|
4
9
|
const tag = /> .*guided walkthrough, see \[((?!\[).+)\]\((.+)\)/i.exec(
|
|
5
10
|
development
|
|
6
11
|
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { readLogoSizing } from "./readLogoSizing.js";
|
|
2
|
+
async function readLogo(getReadme) {
|
|
3
|
+
const tag = /\n<img.+src=.+>/.exec(await getReadme())?.[0];
|
|
4
|
+
if (!tag) {
|
|
5
|
+
return void 0;
|
|
6
|
+
}
|
|
7
|
+
const src = /src\s*=(.+)['"/]>/.exec(tag)?.[1]?.split(/\s*\w+=/)[0].replaceAll(/^['"]|['"]$/g, "");
|
|
8
|
+
if (!src) {
|
|
9
|
+
return void 0;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
alt: /alt=['"](.+)['"]\s*src=/.exec(tag)?.[1].split(/['"]?\s*\w+=/)[0] ?? "Project logo",
|
|
13
|
+
src,
|
|
14
|
+
...readLogoSizing(src)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
readLogo
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defaults } from "../constants.js";
|
|
2
|
+
import { swallowError } from "../utils/swallowError.js";
|
|
3
|
+
async function readNode(getNvmrc, getPackageDataFull) {
|
|
4
|
+
const { engines } = await getPackageDataFull();
|
|
5
|
+
return {
|
|
6
|
+
minimum: (engines?.node && /[\d+.]+/.exec(engines.node))?.[0] ?? defaults.node.minimum,
|
|
7
|
+
pinned: swallowError(await getNvmrc())?.trim() || defaults.node.pinned
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
readNode
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import npmUser from "npm-user";
|
|
2
|
+
import { swallowErrorAsync } from "../utils/swallowErrorAsync.js";
|
|
3
|
+
async function readNpmDefaults(getNpmWhoami) {
|
|
4
|
+
const whoami = await getNpmWhoami();
|
|
5
|
+
return typeof whoami?.stdout === "string" ? await swallowErrorAsync(npmUser(whoami.stdout)) : void 0;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
readNpmDefaults
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TakeInput } from 'bingo';
|
|
2
|
+
import { GitUrl } from 'git-url-parse';
|
|
3
|
+
|
|
4
|
+
declare function readOwner(take: TakeInput, getGitDefaults: () => Promise<GitUrl | undefined>, getPackageAuthor: () => Promise<{
|
|
5
|
+
author?: string;
|
|
6
|
+
}>): Promise<string | undefined>;
|
|
7
|
+
|
|
8
|
+
export { readOwner };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { inputFromScript } from "input-from-script";
|
|
2
|
+
async function readOwner(take, getGitDefaults, getPackageAuthor) {
|
|
3
|
+
return (await getGitDefaults())?.organization ?? (await getPackageAuthor()).author ?? (await take(inputFromScript, {
|
|
4
|
+
command: "gh config get user -h github.com"
|
|
5
|
+
})).stdout?.toString();
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
readOwner
|
|
9
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import parse from "parse-author";
|
|
2
|
-
function
|
|
2
|
+
async function readPackageAuthor(getPackageDataFull) {
|
|
3
|
+
const packageData = await getPackageDataFull();
|
|
3
4
|
let packageAuthor;
|
|
4
5
|
let packageEmail;
|
|
5
6
|
if (typeof packageData.author === "string") {
|
|
@@ -16,5 +17,5 @@ function parsePackageAuthor(packageData) {
|
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
readPackageAuthor
|
|
20
21
|
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PartialPackageData } from '../types.js';
|
|
2
2
|
|
|
3
|
-
declare function readPackageData(): Promise<
|
|
3
|
+
declare function readPackageData(getPackageDataFull: () => Promise<PartialPackageData>): Promise<{
|
|
4
|
+
dependencies: Record<string, string> | undefined;
|
|
5
|
+
devDependencies: Record<string, string> | undefined;
|
|
6
|
+
scripts: Record<string, string> | undefined;
|
|
7
|
+
}>;
|
|
4
8
|
|
|
5
9
|
export { readPackageData };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return
|
|
1
|
+
async function readPackageData(getPackageDataFull) {
|
|
2
|
+
const original = await getPackageDataFull();
|
|
3
|
+
return {
|
|
4
|
+
dependencies: original.dependencies,
|
|
5
|
+
devDependencies: original.devDependencies,
|
|
6
|
+
scripts: original.scripts
|
|
7
|
+
};
|
|
4
8
|
}
|
|
5
9
|
export {
|
|
6
10
|
readPackageData
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GitUrl } from 'git-url-parse';
|
|
2
|
+
import { PartialPackageData } from '../types.js';
|
|
3
|
+
|
|
4
|
+
declare function readRepository(getGitDefaults: () => Promise<GitUrl | undefined>, getPackageDataFull: () => Promise<PartialPackageData>, options: {
|
|
5
|
+
directory?: string;
|
|
6
|
+
repository?: string;
|
|
7
|
+
}): Promise<string | undefined>;
|
|
8
|
+
|
|
9
|
+
export { readRepository };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { inputFromOctokit } from "../inputs/inputFromOctokit.js";
|
|
2
|
+
async function readRulesetId(take, getOwner, getRepository) {
|
|
3
|
+
const rulesets = await take(inputFromOctokit, {
|
|
4
|
+
endpoint: "GET /repos/{owner}/{repo}/rulesets",
|
|
5
|
+
options: {
|
|
6
|
+
owner: await getOwner(),
|
|
7
|
+
repo: await getRepository()
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
return rulesets?.find(
|
|
11
|
+
(ruleset) => ruleset.name === "Branch protection for main"
|
|
12
|
+
)?.id;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
readRulesetId
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { titleCase } from "title-case";
|
|
2
|
+
async function readTitle(getReadme, getRepository) {
|
|
3
|
+
const text = await getReadme();
|
|
4
|
+
const fromText = (/^<h1\s+align="center">(.+)<\/h1>/.exec(text) ?? /^# (.+)/.exec(text))?.[1];
|
|
5
|
+
if (fromText) {
|
|
6
|
+
return fromText;
|
|
7
|
+
}
|
|
8
|
+
const repositoryValue = await getRepository();
|
|
9
|
+
return repositoryValue && titleCase(repositoryValue).replaceAll("Eslint", "ESLint").replaceAll("Typescript", "TypeScript").replaceAll("-", " ");
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
readTitle
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { readUsageFromReadme } from "./readUsageFromReadme.js";
|
|
2
|
+
async function readUsage(getEmoji, getReadme, getRepository) {
|
|
3
|
+
return readUsageFromReadme(await getReadme()) ?? `\`\`\`shell
|
|
4
|
+
npm i ${await getRepository()}
|
|
5
|
+
\`\`\`
|
|
6
|
+
\`\`\`ts
|
|
7
|
+
import { greet } from "${await getRepository()}";
|
|
8
|
+
|
|
9
|
+
greet("Hello, world! ${await getEmoji()}");
|
|
10
|
+
\`\`\``;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
readUsage
|
|
14
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const startDevelopment = "## Development";
|
|
2
2
|
const startUsage = "## Usage";
|
|
3
|
-
function
|
|
3
|
+
function readUsageFromReadme(readme) {
|
|
4
4
|
const indexOfUsage = readme.indexOf(startUsage);
|
|
5
5
|
if (indexOfUsage === -1) {
|
|
6
6
|
return void 0;
|
|
@@ -16,5 +16,5 @@ function getUsageFromReadme(readme) {
|
|
|
16
16
|
return usage ? usage : void 0;
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
readUsageFromReadme
|
|
20
20
|
};
|
package/lib/presets/common.d.ts
CHANGED
package/lib/presets/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ declare const presets: {
|
|
|
47
47
|
github: string;
|
|
48
48
|
npm: string;
|
|
49
49
|
}>;
|
|
50
|
+
emoji: zod.ZodOptional<zod.ZodString>;
|
|
50
51
|
existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
51
52
|
color: zod.ZodString;
|
|
52
53
|
description: zod.ZodString;
|
|
@@ -162,6 +163,7 @@ declare const presets: {
|
|
|
162
163
|
github: string;
|
|
163
164
|
npm: string;
|
|
164
165
|
}>;
|
|
166
|
+
emoji: zod.ZodOptional<zod.ZodString>;
|
|
165
167
|
existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
166
168
|
color: zod.ZodString;
|
|
167
169
|
description: zod.ZodString;
|
|
@@ -277,6 +279,7 @@ declare const presets: {
|
|
|
277
279
|
github: string;
|
|
278
280
|
npm: string;
|
|
279
281
|
}>;
|
|
282
|
+
emoji: zod.ZodOptional<zod.ZodString>;
|
|
280
283
|
existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
281
284
|
color: zod.ZodString;
|
|
282
285
|
description: zod.ZodString;
|
package/lib/presets/minimal.d.ts
CHANGED
package/lib/template.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare const template: bingo_stratum_lib_types_templates_js.StratumTemplate<{
|
|
|
43
43
|
github: string;
|
|
44
44
|
npm: string;
|
|
45
45
|
}>;
|
|
46
|
+
emoji: zod.ZodOptional<zod.ZodString>;
|
|
46
47
|
existingLabels: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
47
48
|
color: zod.ZodString;
|
|
48
49
|
description: zod.ZodString;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-typescript-app",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 🎁",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"eslint-plugin-markdown": "5.1.0",
|
|
91
91
|
"eslint-plugin-n": "17.16.2",
|
|
92
92
|
"eslint-plugin-package-json": "0.26.2",
|
|
93
|
-
"eslint-plugin-perfectionist": "4.
|
|
93
|
+
"eslint-plugin-perfectionist": "4.10.0",
|
|
94
94
|
"eslint-plugin-regexp": "2.7.0",
|
|
95
95
|
"eslint-plugin-yml": "1.17.0",
|
|
96
96
|
"husky": "9.1.7",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"typescript-eslint": "8.26.0",
|
|
111
111
|
"vitest": "3.0.7"
|
|
112
112
|
},
|
|
113
|
-
"packageManager": "pnpm@10.
|
|
113
|
+
"packageManager": "pnpm@10.6.0",
|
|
114
114
|
"engines": {
|
|
115
115
|
"node": ">=18.3.0"
|
|
116
116
|
},
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
declare function readDefaultsFromReadme(readme: () => Promise<string>, repository: () => Promise<string | undefined>): {
|
|
2
|
-
explainer: () => Promise<string[] | undefined>;
|
|
3
|
-
logo: () => Promise<{
|
|
4
|
-
height?: number;
|
|
5
|
-
width?: number;
|
|
6
|
-
alt: string;
|
|
7
|
-
src: string;
|
|
8
|
-
} | undefined>;
|
|
9
|
-
title: () => Promise<string | undefined>;
|
|
10
|
-
usage: () => Promise<string>;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { readDefaultsFromReadme };
|