create-typescript-app 2.56.1 → 2.56.2

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.
Files changed (84) hide show
  1. package/lib/base.d.ts +2 -2
  2. package/lib/blocks/blockAllContributors.d.ts +2 -2
  3. package/lib/blocks/blockAllContributors.d.ts.map +1 -1
  4. package/lib/blocks/blockAreTheTypesWrong.d.ts +2 -2
  5. package/lib/blocks/blockCSpell.d.ts +2 -2
  6. package/lib/blocks/blockCSpell.d.ts.map +1 -1
  7. package/lib/blocks/blockCTATransitions.d.ts +2 -2
  8. package/lib/blocks/blockCTATransitions.d.ts.map +1 -1
  9. package/lib/blocks/blockCodecov.d.ts +2 -2
  10. package/lib/blocks/blockContributingDocs.d.ts +2 -2
  11. package/lib/blocks/blockContributorCovenant.d.ts +2 -2
  12. package/lib/blocks/blockDevelopmentDocs.d.ts +2 -2
  13. package/lib/blocks/blockDevelopmentDocs.d.ts.map +1 -1
  14. package/lib/blocks/blockESLint.d.ts +2 -2
  15. package/lib/blocks/blockESLintComments.d.ts +2 -2
  16. package/lib/blocks/blockESLintJSDoc.d.ts +2 -2
  17. package/lib/blocks/blockESLintJSDoc.d.ts.map +1 -1
  18. package/lib/blocks/blockESLintJSONC.d.ts +2 -2
  19. package/lib/blocks/blockESLintJSONC.d.ts.map +1 -1
  20. package/lib/blocks/blockESLintMarkdown.d.ts +2 -2
  21. package/lib/blocks/blockESLintMarkdown.d.ts.map +1 -1
  22. package/lib/blocks/blockESLintMoreStyling.d.ts +2 -2
  23. package/lib/blocks/blockESLintMoreStyling.d.ts.map +1 -1
  24. package/lib/blocks/blockESLintNode.d.ts +2 -2
  25. package/lib/blocks/blockESLintNode.d.ts.map +1 -1
  26. package/lib/blocks/blockESLintPackageJson.d.ts +2 -2
  27. package/lib/blocks/blockESLintPerfectionist.d.ts +2 -2
  28. package/lib/blocks/blockESLintPerfectionist.d.ts.map +1 -1
  29. package/lib/blocks/blockESLintPlugin.d.ts +2 -2
  30. package/lib/blocks/blockESLintPlugin.d.ts.map +1 -1
  31. package/lib/blocks/blockESLintRegexp.d.ts +2 -2
  32. package/lib/blocks/blockESLintYML.d.ts +2 -2
  33. package/lib/blocks/blockExampleFiles.d.ts +2 -2
  34. package/lib/blocks/blockFunding.d.ts +2 -2
  35. package/lib/blocks/blockGitHubActionsCI.d.ts +2 -2
  36. package/lib/blocks/blockGitHubApps.d.ts +2 -2
  37. package/lib/blocks/blockGitHubIssueTemplates.d.ts +2 -2
  38. package/lib/blocks/blockGitHubPRTemplate.d.ts +2 -2
  39. package/lib/blocks/blockGitignore.d.ts +2 -2
  40. package/lib/blocks/blockKnip.d.ts +2 -2
  41. package/lib/blocks/blockMITLicense.d.ts +2 -2
  42. package/lib/blocks/blockMain.d.ts +2 -2
  43. package/lib/blocks/blockNcc.d.ts +2 -2
  44. package/lib/blocks/blockNvmrc.d.ts +2 -2
  45. package/lib/blocks/blockOctoGuide.d.ts +2 -2
  46. package/lib/blocks/blockOctoGuideStrict.d.ts +2 -2
  47. package/lib/blocks/blockPackageJson.d.ts +2 -2
  48. package/lib/blocks/blockPnpmDedupe.d.ts +2 -2
  49. package/lib/blocks/blockPrettier.d.ts +2 -2
  50. package/lib/blocks/blockPrettierPluginCurly.d.ts +2 -2
  51. package/lib/blocks/blockPrettierPluginPackageJson.d.ts +2 -2
  52. package/lib/blocks/blockPrettierPluginSentencesPerLine.d.ts +2 -2
  53. package/lib/blocks/blockPrettierPluginSh.d.ts +2 -2
  54. package/lib/blocks/blockREADME.d.ts +2 -2
  55. package/lib/blocks/blockReleaseIt.d.ts +2 -2
  56. package/lib/blocks/blockRemoveDependencies.d.ts +2 -2
  57. package/lib/blocks/blockRemoveFiles.d.ts +2 -2
  58. package/lib/blocks/blockRemoveWorkflows.d.ts +2 -2
  59. package/lib/blocks/blockRenovate.d.ts +2 -2
  60. package/lib/blocks/blockRepositoryBranchRuleset.d.ts +2 -2
  61. package/lib/blocks/blockRepositoryBranchRuleset.d.ts.map +1 -1
  62. package/lib/blocks/blockRepositoryLabels.d.ts +2 -2
  63. package/lib/blocks/blockRepositorySecrets.d.ts +2 -2
  64. package/lib/blocks/blockRepositorySettings.d.ts +2 -2
  65. package/lib/blocks/blockSecurityDocs.d.ts +2 -2
  66. package/lib/blocks/blockTSDown.d.ts +2 -2
  67. package/lib/blocks/blockTemplatedWith.d.ts +2 -2
  68. package/lib/blocks/blockTypeScript.d.ts +2 -2
  69. package/lib/blocks/blockVSCode.d.ts +2 -2
  70. package/lib/blocks/blockVitest.d.ts +2 -2
  71. package/lib/blocks/blockVitest.d.ts.map +1 -1
  72. package/lib/blocks/blockVitest.js +0 -1
  73. package/lib/blocks/blockVitest.js.map +1 -1
  74. package/lib/blocks/blockWebExt.d.ts +2 -2
  75. package/lib/blocks/blockWebExt.d.ts.map +1 -1
  76. package/lib/index.d.ts +2 -2
  77. package/lib/inputs/inputFromDirectory.d.ts +2 -2
  78. package/lib/inputs/inputFromOctokit.d.ts +2 -2
  79. package/lib/presets/common.d.ts +69 -69
  80. package/lib/presets/common.d.ts.map +1 -1
  81. package/lib/presets/everything.d.ts +69 -69
  82. package/lib/presets/index.d.ts +203 -203
  83. package/lib/presets/minimal.d.ts +69 -69
  84. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum54 from "bingo-stratum";
1
+ import * as bingo_stratum46 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockRepositoryLabels.d.ts
4
- declare const blockRepositoryLabels: bingo_stratum54.BlockWithoutAddons<{
4
+ declare const blockRepositoryLabels: bingo_stratum46.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum55 from "bingo-stratum";
1
+ import * as bingo_stratum44 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockRepositorySecrets.d.ts
4
- declare const blockRepositorySecrets: bingo_stratum55.BlockWithAddons<{
4
+ declare const blockRepositorySecrets: bingo_stratum44.BlockWithAddons<{
5
5
  secrets: {
6
6
  name: string;
7
7
  description: string;
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum56 from "bingo-stratum";
1
+ import * as bingo_stratum48 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockRepositorySettings.d.ts
4
- declare const blockRepositorySettings: bingo_stratum56.BlockWithoutAddons<{
4
+ declare const blockRepositorySettings: bingo_stratum48.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum57 from "bingo-stratum";
1
+ import * as bingo_stratum50 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockSecurityDocs.d.ts
4
- declare const blockSecurityDocs: bingo_stratum57.BlockWithoutAddons<{
4
+ declare const blockSecurityDocs: bingo_stratum50.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum58 from "bingo-stratum";
1
+ import * as bingo_stratum53 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockTSDown.d.ts
4
- declare const blockTSDown: bingo_stratum58.BlockWithAddons<{
4
+ declare const blockTSDown: bingo_stratum53.BlockWithAddons<{
5
5
  properties: Record<string, unknown>;
6
6
  entry: string[];
7
7
  runInCI: string[];
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum59 from "bingo-stratum";
1
+ import * as bingo_stratum51 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockTemplatedWith.d.ts
4
- declare const blockTemplatedWith: bingo_stratum59.BlockWithoutAddons<{
4
+ declare const blockTemplatedWith: bingo_stratum51.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum60 from "bingo-stratum";
1
+ import * as bingo_stratum52 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockTypeScript.d.ts
4
- declare const blockTypeScript: bingo_stratum60.BlockWithAddons<{
4
+ declare const blockTypeScript: bingo_stratum52.BlockWithAddons<{
5
5
  compilerOptions?: {
6
6
  allowArbitraryExtensions?: boolean | undefined;
7
7
  allowImportingTsExtensions?: boolean | undefined;
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum61 from "bingo-stratum";
1
+ import * as bingo_stratum41 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockVSCode.d.ts
4
- declare const blockVSCode: bingo_stratum61.BlockWithAddons<{
4
+ declare const blockVSCode: bingo_stratum41.BlockWithAddons<{
5
5
  settings: Record<string, unknown>;
6
6
  extensions?: string[] | undefined;
7
7
  debuggers?: (Record<string, unknown> & {
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum111 from "bingo-stratum";
1
+ import * as bingo_stratum42 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockVitest.d.ts
4
- declare const blockVitest: bingo_stratum111.BlockWithAddons<{
4
+ declare const blockVitest: bingo_stratum42.BlockWithAddons<{
5
5
  exclude: string[];
6
6
  actionSteps: ({
7
7
  env?: Record<string, string> | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"blockVitest.d.ts","names":[],"sources":["../../src/blocks/blockVitest.ts"],"sourcesContent":[],"mappings":";;;cAyDa,8BAAW;;;IAAX,GAAA,CAAA,QAgOX,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;;;;;;;;;;;;EAhOsB,KAAA,EAAA,MAAA,EAAA"}
1
+ {"version":3,"file":"blockVitest.d.ts","names":[],"sources":["../../src/blocks/blockVitest.ts"],"sourcesContent":[],"mappings":";;;cAyDa,6BAAW;;;IAAX,GAAA,CAAA,QA+NX,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;;;;;;;;;;;;EA/NsB,KAAA,EAAA,MAAA,EAAA"}
@@ -172,7 +172,6 @@ export default defineConfig({
172
172
  test: {
173
173
  clearMocks: true,
174
174
  coverage: {
175
- all: true,
176
175
  ${coverage.exclude?.length ? `exclude: ${JSON.stringify(coverage.exclude)},
177
176
  ` : ""}include: ${JSON.stringify(coverage.include)},
178
177
  reporter: ["html", "lcov"],
@@ -1 +1 @@
1
- {"version":3,"file":"blockVitest.js","names":[],"sources":["../../src/blocks/blockVitest.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { zActionStep } from \"./actions/steps.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockTSDown } from \"./blockTSDown.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileDefineConfig } from \"./intake/intakeFileDefineConfig.js\";\n\nconst zCoverage = z.object({\n\texclude: z.array(z.string()).optional(),\n\tinclude: z.array(z.string()).optional(),\n});\n\nconst zEnvironment = z.string();\n\nconst zExclude = z.array(z.string());\n\nconst zTest = z\n\t.object({\n\t\tcoverage: zCoverage,\n\t\tenvironment: zEnvironment,\n\t\texclude: zExclude,\n\t})\n\t.partial();\n\nfunction intakeFromConfig(files: IntakeDirectory) {\n\tconst rawData = intakeFileDefineConfig(files, [\"vitest.config.ts\"]);\n\tif (typeof rawData?.test !== \"object\") {\n\t\treturn undefined;\n\t}\n\n\tconst parsedData = zTest.safeParse(rawData.test).data;\n\tif (!parsedData) {\n\t\treturn undefined;\n\t}\n\n\treturn {\n\t\tcoverage: parsedData.coverage,\n\t\tenvironment: parsedData.environment,\n\t\texclude: parsedData.exclude,\n\t};\n}\n\nexport const blockVitest = base.createBlock({\n\tabout: {\n\t\tname: \"Vitest\",\n\t},\n\taddons: {\n\t\tactionSteps: z.array(zActionStep).default([]),\n\t\tcoverage: zCoverage.default({}),\n\t\tenvironment: zEnvironment.optional(),\n\t\texclude: zExclude.default([]),\n\t\tflags: z.array(z.string()).default([]),\n\t},\n\tintake({ files, options }) {\n\t\treturn {\n\t\t\t...intakeFromConfig(files),\n\t\t\tflags: options.packageData?.scripts?.test\n\t\t\t\t?.match(/^vitest (.+)/)?.[1]\n\t\t\t\t.split(\" \"),\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { actionSteps, coverage, environment, exclude = [] } = addons;\n\t\tconst excludeText = JSON.stringify(\n\t\t\tArray.from(new Set([\"node_modules\", ...exclude])).sort(),\n\t\t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignorePaths: [\"coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tTesting: {\n\t\t\t\t\t\t\tcontents: `\n[Vitest](https://vitest.dev) is used for tests.\nYou can run it locally on the command-line:\n\n\\`\\`\\`shell\npnpm run test\n\\`\\`\\`\n\nAdd the \\`--coverage\\` flag to compute test coverage and place reports in the \\`coverage/\\` directory:\n\n\\`\\`\\`shell\npnpm run test --coverage\n\\`\\`\\`\n\nNote that [console-fail-test](https://github.com/JoshuaKGoldberg/console-fail-test) is enabled for all test runs.\nCalls to \\`console.log\\`, \\`console.warn\\`, and other console methods will cause a test to fail.\n\n\n\t\t`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\"vitest.configs.recommended\"],\n\t\t\t\t\t\t\tfiles: [\"**/*.test.*\"],\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tentries: {\n\t\t\t\t\t\t\t\t\t\t\"@typescript-eslint/no-unsafe-assignment\": \"off\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tsettings: {\n\t\t\t\t\t\t\t\tvitest: { typecheck: true },\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tignores: [\"coverage\", \"**/*.snap\"],\n\t\t\t\t\timports: [{ source: \"@vitest/eslint-plugin\", specifier: \"vitest\" }],\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.test.ts\": `import { describe, expect, it, vi } from \"vitest\";\n\nimport { greet } from \"./greet.js\";\n\nconst message = \"Yay, testing!\";\n\ndescribe(greet, () => {\n\tit(\"logs to the console once when message is provided as a string\", () => {\n\t\tconst logger = vi.spyOn(console, \"log\").mockImplementation(() => undefined);\n\n\t\tgreet(message);\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs to the console once when message is provided as an object\", () => {\n\t\tconst logger = vi.spyOn(console, \"log\").mockImplementation(() => undefined);\n\n\t\tgreet({ message });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs once when times is not provided in an object\", () => {\n\t\tconst logger = vi.fn();\n\n\t\tgreet({ logger, message });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs a specified number of times when times is provided\", () => {\n\t\tconst logger = vi.fn();\n\t\tconst times = 7;\n\n\t\tgreet({ logger, message, times });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(7);\n\t});\n});\n`,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Test\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm run test --coverage\" }, ...actionSteps],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tentry: [\"src/**/*.test.*\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t\"@vitest/coverage-v8\",\n\t\t\t\t\t\t\t\"@vitest/eslint-plugin\",\n\t\t\t\t\t\t\t\"console-fail-test\",\n\t\t\t\t\t\t\t\"vitest\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\ttest: `vitest ${addons.flags.join(\" \")}`.trim(),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockTSDown({\n\t\t\t\t\tentry: [\"!src/**/*.test.*\"],\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\targs: [\"run\", \"${relativeFile}\"],\n\t\t\t\t\t\t\tautoAttachChildProcesses: true,\n\t\t\t\t\t\t\tconsole: \"integratedTerminal\",\n\t\t\t\t\t\t\tname: \"Debug Current Test File\",\n\t\t\t\t\t\t\tprogram: \"${workspaceRoot}/node_modules/vitest/vitest.mjs\",\n\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\", \"**/node_modules/**\"],\n\t\t\t\t\t\t\tsmartStep: true,\n\t\t\t\t\t\t\ttype: \"node\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\textensions: [\"vitest.explorer\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"vitest.config.ts\": `import { defineConfig } from \"vitest/config\";\n\nexport default defineConfig({\n\ttest: {\n\t\tclearMocks: true,\n\t\tcoverage: {\n\t\t\tall: true,\n\t\t\t${\n\t\t\t\tcoverage.exclude?.length\n\t\t\t\t\t? `exclude: ${JSON.stringify(coverage.exclude)},\n\t\t\t`\n\t\t\t\t\t: \"\"\n\t\t\t}include: ${JSON.stringify(coverage.include)},\n\t\t\treporter: [\"html\", \"lcov\"],\n\t\t},${\n\t\t\tenvironment\n\t\t\t\t? `\n\t\tenvironment: \"${environment}\",`\n\t\t\t\t: \"\"\n\t\t}\n\t\texclude: [${excludeText.slice(1, excludeText.length - 1)}],\n\t\tsetupFiles: [\"console-fail-test/setup\"],\n\t},\n});\n\t`,\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@vitest/coverage-istanbul\",\n\t\t\t\t\t\t\"eslint-plugin-jest\",\n\t\t\t\t\t\t\"eslint-plugin-mocha\",\n\t\t\t\t\t\t\"eslint-plugin-vitest\",\n\t\t\t\t\t\t\"jest mocha\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".mocha*\", \"jest.config.*\", \"vitest.config.{c,j,m}*\"],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"test\"],\n\t\t\t\t}),\n\t\t\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D,WAAW;MACX,MAAM;MACN,CACD;KACD,YAAY,CAAC,kBAAkB;KAC/B,CAAC;IACF;GACD,OAAO,EACN,oBAAoB;;;;;;;KAQpB,SAAS,SAAS,SACf,YAAY,KAAK,UAAU,SAAS,QAAQ,CAAC;OAE7C,GACH,WAAW,KAAK,UAAU,SAAS,QAAQ,CAAC;;MAG7C,cACG;kBACY,YAAY,MACxB,GACH;cACW,YAAY,MAAM,GAAG,YAAY,SAAS,EAAE,CAAC;;;;IAKvD;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ;GACP,wBAAwB,EACvB,cAAc;IACb;IACA;IACA;IACA;IACA;IACA,EACD,CAAC;GACF,iBAAiB,EAChB,OAAO;IAAC;IAAW;IAAiB;IAAyB,EAC7D,CAAC;GACF,qBAAqB,EACpB,WAAW,CAAC,OAAO,EACnB,CAAC;GACF,EACD;;CAEF,CAAC"}
1
+ {"version":3,"file":"blockVitest.js","names":[],"sources":["../../src/blocks/blockVitest.ts"],"sourcesContent":["import { IntakeDirectory } from \"bingo-fs\";\nimport { z } from \"zod\";\n\nimport { base } from \"../base.js\";\nimport { getPackageDependencies } from \"../data/packageData.js\";\nimport { zActionStep } from \"./actions/steps.js\";\nimport { blockCSpell } from \"./blockCSpell.js\";\nimport { blockDevelopmentDocs } from \"./blockDevelopmentDocs.js\";\nimport { blockESLint } from \"./blockESLint.js\";\nimport { blockExampleFiles } from \"./blockExampleFiles.js\";\nimport { blockGitHubActionsCI } from \"./blockGitHubActionsCI.js\";\nimport { blockGitignore } from \"./blockGitignore.js\";\nimport { blockKnip } from \"./blockKnip.js\";\nimport { blockPackageJson } from \"./blockPackageJson.js\";\nimport { blockPrettier } from \"./blockPrettier.js\";\nimport { blockRemoveDependencies } from \"./blockRemoveDependencies.js\";\nimport { blockRemoveFiles } from \"./blockRemoveFiles.js\";\nimport { blockRemoveWorkflows } from \"./blockRemoveWorkflows.js\";\nimport { blockTSDown } from \"./blockTSDown.js\";\nimport { blockVSCode } from \"./blockVSCode.js\";\nimport { intakeFileDefineConfig } from \"./intake/intakeFileDefineConfig.js\";\n\nconst zCoverage = z.object({\n\texclude: z.array(z.string()).optional(),\n\tinclude: z.array(z.string()).optional(),\n});\n\nconst zEnvironment = z.string();\n\nconst zExclude = z.array(z.string());\n\nconst zTest = z\n\t.object({\n\t\tcoverage: zCoverage,\n\t\tenvironment: zEnvironment,\n\t\texclude: zExclude,\n\t})\n\t.partial();\n\nfunction intakeFromConfig(files: IntakeDirectory) {\n\tconst rawData = intakeFileDefineConfig(files, [\"vitest.config.ts\"]);\n\tif (typeof rawData?.test !== \"object\") {\n\t\treturn undefined;\n\t}\n\n\tconst parsedData = zTest.safeParse(rawData.test).data;\n\tif (!parsedData) {\n\t\treturn undefined;\n\t}\n\n\treturn {\n\t\tcoverage: parsedData.coverage,\n\t\tenvironment: parsedData.environment,\n\t\texclude: parsedData.exclude,\n\t};\n}\n\nexport const blockVitest = base.createBlock({\n\tabout: {\n\t\tname: \"Vitest\",\n\t},\n\taddons: {\n\t\tactionSteps: z.array(zActionStep).default([]),\n\t\tcoverage: zCoverage.default({}),\n\t\tenvironment: zEnvironment.optional(),\n\t\texclude: zExclude.default([]),\n\t\tflags: z.array(z.string()).default([]),\n\t},\n\tintake({ files, options }) {\n\t\treturn {\n\t\t\t...intakeFromConfig(files),\n\t\t\tflags: options.packageData?.scripts?.test\n\t\t\t\t?.match(/^vitest (.+)/)?.[1]\n\t\t\t\t.split(\" \"),\n\t\t};\n\t},\n\tproduce({ addons }) {\n\t\tconst { actionSteps, coverage, environment, exclude = [] } = addons;\n\t\tconst excludeText = JSON.stringify(\n\t\t\tArray.from(new Set([\"node_modules\", ...exclude])).sort(),\n\t\t);\n\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockCSpell({\n\t\t\t\t\tignorePaths: [\"coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockDevelopmentDocs({\n\t\t\t\t\tsections: {\n\t\t\t\t\t\tTesting: {\n\t\t\t\t\t\t\tcontents: `\n[Vitest](https://vitest.dev) is used for tests.\nYou can run it locally on the command-line:\n\n\\`\\`\\`shell\npnpm run test\n\\`\\`\\`\n\nAdd the \\`--coverage\\` flag to compute test coverage and place reports in the \\`coverage/\\` directory:\n\n\\`\\`\\`shell\npnpm run test --coverage\n\\`\\`\\`\n\nNote that [console-fail-test](https://github.com/JoshuaKGoldberg/console-fail-test) is enabled for all test runs.\nCalls to \\`console.log\\`, \\`console.warn\\`, and other console methods will cause a test to fail.\n\n\n\t\t`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockESLint({\n\t\t\t\t\textensions: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\textends: [\"vitest.configs.recommended\"],\n\t\t\t\t\t\t\tfiles: [\"**/*.test.*\"],\n\t\t\t\t\t\t\trules: [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tentries: {\n\t\t\t\t\t\t\t\t\t\t\"@typescript-eslint/no-unsafe-assignment\": \"off\",\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\tsettings: {\n\t\t\t\t\t\t\t\tvitest: { typecheck: true },\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tignores: [\"coverage\", \"**/*.snap\"],\n\t\t\t\t\timports: [{ source: \"@vitest/eslint-plugin\", specifier: \"vitest\" }],\n\t\t\t\t}),\n\t\t\t\tblockExampleFiles({\n\t\t\t\t\tfiles: {\n\t\t\t\t\t\t\"greet.test.ts\": `import { describe, expect, it, vi } from \"vitest\";\n\nimport { greet } from \"./greet.js\";\n\nconst message = \"Yay, testing!\";\n\ndescribe(greet, () => {\n\tit(\"logs to the console once when message is provided as a string\", () => {\n\t\tconst logger = vi.spyOn(console, \"log\").mockImplementation(() => undefined);\n\n\t\tgreet(message);\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs to the console once when message is provided as an object\", () => {\n\t\tconst logger = vi.spyOn(console, \"log\").mockImplementation(() => undefined);\n\n\t\tgreet({ message });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs once when times is not provided in an object\", () => {\n\t\tconst logger = vi.fn();\n\n\t\tgreet({ logger, message });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(1);\n\t});\n\n\tit(\"logs a specified number of times when times is provided\", () => {\n\t\tconst logger = vi.fn();\n\t\tconst times = 7;\n\n\t\tgreet({ logger, message, times });\n\n\t\texpect(logger).toHaveBeenCalledWith(message);\n\t\texpect(logger).toHaveBeenCalledTimes(7);\n\t});\n});\n`,\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockGitignore({\n\t\t\t\t\tignores: [\"/coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockGitHubActionsCI({\n\t\t\t\t\tjobs: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: \"Test\",\n\t\t\t\t\t\t\tsteps: [{ run: \"pnpm run test --coverage\" }, ...actionSteps],\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockKnip({\n\t\t\t\t\tentry: [\"src/**/*.test.*\"],\n\t\t\t\t}),\n\t\t\t\tblockPackageJson({\n\t\t\t\t\tproperties: {\n\t\t\t\t\t\tdevDependencies: getPackageDependencies(\n\t\t\t\t\t\t\t\"@vitest/coverage-v8\",\n\t\t\t\t\t\t\t\"@vitest/eslint-plugin\",\n\t\t\t\t\t\t\t\"console-fail-test\",\n\t\t\t\t\t\t\t\"vitest\",\n\t\t\t\t\t\t),\n\t\t\t\t\t\tscripts: {\n\t\t\t\t\t\t\ttest: `vitest ${addons.flags.join(\" \")}`.trim(),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\t\tblockPrettier({\n\t\t\t\t\tignores: [\"/coverage\"],\n\t\t\t\t}),\n\t\t\t\tblockTSDown({\n\t\t\t\t\tentry: [\"!src/**/*.test.*\"],\n\t\t\t\t}),\n\t\t\t\tblockVSCode({\n\t\t\t\t\tdebuggers: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\targs: [\"run\", \"${relativeFile}\"],\n\t\t\t\t\t\t\tautoAttachChildProcesses: true,\n\t\t\t\t\t\t\tconsole: \"integratedTerminal\",\n\t\t\t\t\t\t\tname: \"Debug Current Test File\",\n\t\t\t\t\t\t\tprogram: \"${workspaceRoot}/node_modules/vitest/vitest.mjs\",\n\t\t\t\t\t\t\trequest: \"launch\",\n\t\t\t\t\t\t\tskipFiles: [\"<node_internals>/**\", \"**/node_modules/**\"],\n\t\t\t\t\t\t\tsmartStep: true,\n\t\t\t\t\t\t\ttype: \"node\",\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\textensions: [\"vitest.explorer\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t\tfiles: {\n\t\t\t\t\"vitest.config.ts\": `import { defineConfig } from \"vitest/config\";\n\nexport default defineConfig({\n\ttest: {\n\t\tclearMocks: true,\n\t\tcoverage: {\n\t\t\t${\n\t\t\t\tcoverage.exclude?.length\n\t\t\t\t\t? `exclude: ${JSON.stringify(coverage.exclude)},\n\t\t\t`\n\t\t\t\t\t: \"\"\n\t\t\t}include: ${JSON.stringify(coverage.include)},\n\t\t\treporter: [\"html\", \"lcov\"],\n\t\t},${\n\t\t\tenvironment\n\t\t\t\t? `\n\t\tenvironment: \"${environment}\",`\n\t\t\t\t: \"\"\n\t\t}\n\t\texclude: [${excludeText.slice(1, excludeText.length - 1)}],\n\t\tsetupFiles: [\"console-fail-test/setup\"],\n\t},\n});\n\t`,\n\t\t\t},\n\t\t};\n\t},\n\ttransition() {\n\t\treturn {\n\t\t\taddons: [\n\t\t\t\tblockRemoveDependencies({\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t\"@vitest/coverage-istanbul\",\n\t\t\t\t\t\t\"eslint-plugin-jest\",\n\t\t\t\t\t\t\"eslint-plugin-mocha\",\n\t\t\t\t\t\t\"eslint-plugin-vitest\",\n\t\t\t\t\t\t\"jest mocha\",\n\t\t\t\t\t],\n\t\t\t\t}),\n\t\t\t\tblockRemoveFiles({\n\t\t\t\t\tfiles: [\".mocha*\", \"jest.config.*\", \"vitest.config.{c,j,m}*\"],\n\t\t\t\t}),\n\t\t\t\tblockRemoveWorkflows({\n\t\t\t\t\tworkflows: [\"test\"],\n\t\t\t\t}),\n\t\t\t],\n\t\t};\n\t},\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,MAAM,YAAY,EAAE,OAAO;CAC1B,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CACvC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU;CACvC,CAAC;AAEF,MAAM,eAAe,EAAE,QAAQ;AAE/B,MAAM,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC;AAEpC,MAAM,QAAQ,EACZ,OAAO;CACP,UAAU;CACV,aAAa;CACb,SAAS;CACT,CAAC,CACD,SAAS;AAEX,SAAS,iBAAiB,OAAwB;CACjD,MAAM,UAAU,uBAAuB,OAAO,CAAC,mBAAmB,CAAC;AACnE,KAAI,OAAO,SAAS,SAAS,SAC5B;CAGD,MAAM,aAAa,MAAM,UAAU,QAAQ,KAAK,CAAC;AACjD,KAAI,CAAC,WACJ;AAGD,QAAO;EACN,UAAU,WAAW;EACrB,aAAa,WAAW;EACxB,SAAS,WAAW;EACpB;;AAGF,MAAa,cAAc,KAAK,YAAY;CAC3C,OAAO,EACN,MAAM,UACN;CACD,QAAQ;EACP,aAAa,EAAE,MAAM,YAAY,CAAC,QAAQ,EAAE,CAAC;EAC7C,UAAU,UAAU,QAAQ,EAAE,CAAC;EAC/B,aAAa,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CAAC;IACF,iBAAiB,EAChB,YAAY;KACX,iBAAiB,uBAChB,uBACA,yBACA,qBACA,SACA;KACD,SAAS,EACR,MAAM,UAAU,OAAO,MAAM,KAAK,IAAI,GAAG,MAAM,EAC/C;KACD,EACD,CAAC;IACF,cAAc,EACb,SAAS,CAAC,YAAY,EACtB,CAAC;IACF,YAAY,EACX,OAAO,CAAC,mBAAmB,EAC3B,CAAC;IACF,YAAY;KACX,WAAW,CACV;MACC,MAAM,CAAC,OAAO,kBAAkB;MAChC,0BAA0B;MAC1B,SAAS;MACT,MAAM;MACN,SAAS;MACT,SAAS;MACT,WAAW,CAAC,uBAAuB,qBAAqB;MACxD,WAAW;MACX,MAAM;MACN,CACD;KACD,YAAY,CAAC,kBAAkB;KAC/B,CAAC;IACF;GACD,OAAO,EACN,oBAAoB;;;;;;KAOpB,SAAS,SAAS,SACf,YAAY,KAAK,UAAU,SAAS,QAAQ,CAAC;OAE7C,GACH,WAAW,KAAK,UAAU,SAAS,QAAQ,CAAC;;MAG7C,cACG;kBACY,YAAY,MACxB,GACH;cACW,YAAY,MAAM,GAAG,YAAY,SAAS,EAAE,CAAC;;;;IAKvD;GACD;;CAEF,aAAa;AACZ,SAAO,EACN,QAAQ;GACP,wBAAwB,EACvB,cAAc;IACb;IACA;IACA;IACA;IACA;IACA,EACD,CAAC;GACF,iBAAiB,EAChB,OAAO;IAAC;IAAW;IAAiB;IAAyB,EAC7D,CAAC;GACF,qBAAqB,EACpB,WAAW,CAAC,OAAO,EACnB,CAAC;GACF,EACD;;CAEF,CAAC"}
@@ -1,7 +1,7 @@
1
- import * as bingo_stratum110 from "bingo-stratum";
1
+ import * as bingo_stratum40 from "bingo-stratum";
2
2
 
3
3
  //#region src/blocks/blockWebExt.d.ts
4
- declare const blockWebExt: bingo_stratum110.BlockWithoutAddons<{
4
+ declare const blockWebExt: bingo_stratum40.BlockWithoutAddons<{
5
5
  access: "public" | "restricted";
6
6
  description: string;
7
7
  directory: string;
@@ -1 +1 @@
1
- {"version":3,"file":"blockWebExt.d.ts","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"sourcesContent":[],"mappings":";;;cAQa,8BAAW;;;EAAX,SAAA,EAAA,MA6GX;;;;;;;;;;EA7GsB,KAAA,EAAA"}
1
+ {"version":3,"file":"blockWebExt.d.ts","names":[],"sources":["../../src/blocks/blockWebExt.ts"],"sourcesContent":[],"mappings":";;;cAQa,6BAAW;;;EAAX,SAAA,EAAA,MA6GX;;;;;;;;;;EA7GsB,KAAA,EAAA"}
package/lib/index.d.ts CHANGED
@@ -54,7 +54,7 @@ import { presetCommon } from "./presets/common.js";
54
54
  import { presetEverything } from "./presets/everything.js";
55
55
  import { presetMinimal } from "./presets/minimal.js";
56
56
  import { presets } from "./presets/index.js";
57
- import * as bingo_stratum1 from "bingo-stratum";
57
+ import * as bingo_stratum0 from "bingo-stratum";
58
58
  import * as zod0 from "zod";
59
59
  import * as bingo0 from "bingo";
60
60
  import * as bingo_stratum_lib_types_templates_js0 from "bingo-stratum/lib/types/templates.js";
@@ -225,7 +225,7 @@ declare const createConfig: bingo0.CreateTemplateConfig<{
225
225
  pinned?: boolean | undefined;
226
226
  hash?: string | undefined;
227
227
  }>>>>;
228
- } & bingo_stratum_lib_types_templates_js0.StratumTemplateOptionsShape, bingo_stratum1.StratumRefinements<{
228
+ } & bingo_stratum_lib_types_templates_js0.StratumTemplateOptionsShape, bingo_stratum0.StratumRefinements<{
229
229
  access: "public" | "restricted";
230
230
  description: string;
231
231
  directory: string;
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
- import * as bingo1 from "bingo";
2
+ import * as bingo0 from "bingo";
3
3
 
4
4
  //#region src/inputs/inputFromDirectory.d.ts
5
- declare const inputFromDirectory: bingo1.InputWithArgs<Promise<string[]>, {
5
+ declare const inputFromDirectory: bingo0.InputWithArgs<Promise<string[]>, {
6
6
  directoryPath: z.ZodString;
7
7
  }>;
8
8
  //#endregion
@@ -1,8 +1,8 @@
1
1
  import { z } from "zod";
2
- import * as bingo0 from "bingo";
2
+ import * as bingo1 from "bingo";
3
3
 
4
4
  //#region src/inputs/inputFromOctokit.d.ts
5
- declare const inputFromOctokit: bingo0.InputWithArgs<Promise<unknown>, {
5
+ declare const inputFromOctokit: bingo1.InputWithArgs<Promise<unknown>, {
6
6
  endpoint: z.ZodString;
7
7
  options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  }>;
@@ -1,18 +1,18 @@
1
- import * as bingo_stratum9 from "bingo-stratum";
2
- import * as zod257 from "zod";
1
+ import * as bingo_stratum61 from "bingo-stratum";
2
+ import * as zod515 from "zod";
3
3
 
4
4
  //#region src/presets/common.d.ts
5
- declare const presetCommon: bingo_stratum9.Preset<{
6
- access: zod257.ZodUnion<[zod257.ZodLiteral<"public">, zod257.ZodLiteral<"restricted">]>;
7
- author: zod257.ZodOptional<zod257.ZodString>;
8
- bin: zod257.ZodOptional<zod257.ZodUnion<[zod257.ZodString, zod257.ZodRecord<zod257.ZodString, zod257.ZodString>]>>;
9
- contributors: zod257.ZodOptional<zod257.ZodArray<zod257.ZodObject<{
10
- avatar_url: zod257.ZodString;
11
- contributions: zod257.ZodArray<zod257.ZodString, "many">;
12
- login: zod257.ZodString;
13
- name: zod257.ZodString;
14
- profile: zod257.ZodString;
15
- }, "strip", zod257.ZodTypeAny, {
5
+ declare const presetCommon: bingo_stratum61.Preset<{
6
+ access: zod515.ZodUnion<[zod515.ZodLiteral<"public">, zod515.ZodLiteral<"restricted">]>;
7
+ author: zod515.ZodOptional<zod515.ZodString>;
8
+ bin: zod515.ZodOptional<zod515.ZodUnion<[zod515.ZodString, zod515.ZodRecord<zod515.ZodString, zod515.ZodString>]>>;
9
+ contributors: zod515.ZodOptional<zod515.ZodArray<zod515.ZodObject<{
10
+ avatar_url: zod515.ZodString;
11
+ contributions: zod515.ZodArray<zod515.ZodString, "many">;
12
+ login: zod515.ZodString;
13
+ name: zod515.ZodString;
14
+ profile: zod515.ZodString;
15
+ }, "strip", zod515.ZodTypeAny, {
16
16
  avatar_url: string;
17
17
  contributions: string[];
18
18
  login: string;
@@ -25,16 +25,16 @@ declare const presetCommon: bingo_stratum9.Preset<{
25
25
  name: string;
26
26
  profile: string;
27
27
  }>, "many">>;
28
- description: zod257.ZodDefault<zod257.ZodString>;
29
- directory: zod257.ZodString;
30
- documentation: zod257.ZodObject<{
31
- development: zod257.ZodOptional<zod257.ZodString>;
32
- readme: zod257.ZodObject<{
33
- additional: zod257.ZodOptional<zod257.ZodString>;
34
- explainer: zod257.ZodOptional<zod257.ZodString>;
35
- footnotes: zod257.ZodOptional<zod257.ZodString>;
36
- usage: zod257.ZodOptional<zod257.ZodString>;
37
- }, "strip", zod257.ZodTypeAny, {
28
+ description: zod515.ZodDefault<zod515.ZodString>;
29
+ directory: zod515.ZodString;
30
+ documentation: zod515.ZodObject<{
31
+ development: zod515.ZodOptional<zod515.ZodString>;
32
+ readme: zod515.ZodObject<{
33
+ additional: zod515.ZodOptional<zod515.ZodString>;
34
+ explainer: zod515.ZodOptional<zod515.ZodString>;
35
+ footnotes: zod515.ZodOptional<zod515.ZodString>;
36
+ usage: zod515.ZodOptional<zod515.ZodString>;
37
+ }, "strip", zod515.ZodTypeAny, {
38
38
  additional?: string | undefined;
39
39
  explainer?: string | undefined;
40
40
  footnotes?: string | undefined;
@@ -45,7 +45,7 @@ declare const presetCommon: bingo_stratum9.Preset<{
45
45
  footnotes?: string | undefined;
46
46
  usage?: string | undefined;
47
47
  }>;
48
- }, "strip", zod257.ZodTypeAny, {
48
+ }, "strip", zod515.ZodTypeAny, {
49
49
  readme: {
50
50
  additional?: string | undefined;
51
51
  explainer?: string | undefined;
@@ -62,10 +62,10 @@ declare const presetCommon: bingo_stratum9.Preset<{
62
62
  };
63
63
  development?: string | undefined;
64
64
  }>;
65
- email: zod257.ZodEffects<zod257.ZodUnion<[zod257.ZodString, zod257.ZodObject<{
66
- github: zod257.ZodString;
67
- npm: zod257.ZodString;
68
- }, "strip", zod257.ZodTypeAny, {
65
+ email: zod515.ZodEffects<zod515.ZodUnion<[zod515.ZodString, zod515.ZodObject<{
66
+ github: zod515.ZodString;
67
+ npm: zod515.ZodString;
68
+ }, "strip", zod515.ZodTypeAny, {
69
69
  github: string;
70
70
  npm: string;
71
71
  }, {
@@ -78,12 +78,12 @@ declare const presetCommon: bingo_stratum9.Preset<{
78
78
  github: string;
79
79
  npm: string;
80
80
  }>;
81
- emoji: zod257.ZodOptional<zod257.ZodString>;
82
- existingLabels: zod257.ZodOptional<zod257.ZodArray<zod257.ZodObject<{
83
- color: zod257.ZodString;
84
- description: zod257.ZodString;
85
- name: zod257.ZodString;
86
- }, "strip", zod257.ZodTypeAny, {
81
+ emoji: zod515.ZodOptional<zod515.ZodString>;
82
+ existingLabels: zod515.ZodOptional<zod515.ZodArray<zod515.ZodObject<{
83
+ color: zod515.ZodString;
84
+ description: zod515.ZodString;
85
+ name: zod515.ZodString;
86
+ }, "strip", zod515.ZodTypeAny, {
87
87
  name: string;
88
88
  description: string;
89
89
  color: string;
@@ -92,24 +92,24 @@ declare const presetCommon: bingo_stratum9.Preset<{
92
92
  description: string;
93
93
  color: string;
94
94
  }>, "many">>;
95
- funding: zod257.ZodOptional<zod257.ZodString>;
96
- guide: zod257.ZodOptional<zod257.ZodObject<{
97
- href: zod257.ZodString;
98
- title: zod257.ZodString;
99
- }, "strip", zod257.ZodTypeAny, {
95
+ funding: zod515.ZodOptional<zod515.ZodString>;
96
+ guide: zod515.ZodOptional<zod515.ZodObject<{
97
+ href: zod515.ZodString;
98
+ title: zod515.ZodString;
99
+ }, "strip", zod515.ZodTypeAny, {
100
100
  href: string;
101
101
  title: string;
102
102
  }, {
103
103
  href: string;
104
104
  title: string;
105
105
  }>>;
106
- keywords: zod257.ZodOptional<zod257.ZodArray<zod257.ZodString, "many">>;
107
- logo: zod257.ZodOptional<zod257.ZodObject<{
108
- alt: zod257.ZodString;
109
- height: zod257.ZodOptional<zod257.ZodNumber>;
110
- src: zod257.ZodString;
111
- width: zod257.ZodOptional<zod257.ZodNumber>;
112
- }, "strip", zod257.ZodTypeAny, {
106
+ keywords: zod515.ZodOptional<zod515.ZodArray<zod515.ZodString, "many">>;
107
+ logo: zod515.ZodOptional<zod515.ZodObject<{
108
+ alt: zod515.ZodString;
109
+ height: zod515.ZodOptional<zod515.ZodNumber>;
110
+ src: zod515.ZodString;
111
+ width: zod515.ZodOptional<zod515.ZodNumber>;
112
+ }, "strip", zod515.ZodTypeAny, {
113
113
  alt: string;
114
114
  src: string;
115
115
  height?: number | undefined;
@@ -120,24 +120,24 @@ declare const presetCommon: bingo_stratum9.Preset<{
120
120
  height?: number | undefined;
121
121
  width?: number | undefined;
122
122
  }>>;
123
- node: zod257.ZodObject<{
124
- minimum: zod257.ZodString;
125
- pinned: zod257.ZodOptional<zod257.ZodString>;
126
- }, "strip", zod257.ZodTypeAny, {
123
+ node: zod515.ZodObject<{
124
+ minimum: zod515.ZodString;
125
+ pinned: zod515.ZodOptional<zod515.ZodString>;
126
+ }, "strip", zod515.ZodTypeAny, {
127
127
  minimum: string;
128
128
  pinned?: string | undefined;
129
129
  }, {
130
130
  minimum: string;
131
131
  pinned?: string | undefined;
132
132
  }>;
133
- owner: zod257.ZodString;
134
- packageData: zod257.ZodOptional<zod257.ZodObject<{
135
- dependencies: zod257.ZodOptional<zod257.ZodRecord<zod257.ZodString, zod257.ZodString>>;
136
- devDependencies: zod257.ZodOptional<zod257.ZodRecord<zod257.ZodString, zod257.ZodString>>;
137
- peerDependencies: zod257.ZodOptional<zod257.ZodRecord<zod257.ZodString, zod257.ZodString>>;
138
- peerDependenciesMeta: zod257.ZodOptional<zod257.ZodRecord<zod257.ZodString, zod257.ZodUnknown>>;
139
- scripts: zod257.ZodOptional<zod257.ZodRecord<zod257.ZodString, zod257.ZodOptional<zod257.ZodString>>>;
140
- }, "strip", zod257.ZodTypeAny, {
133
+ owner: zod515.ZodString;
134
+ packageData: zod515.ZodOptional<zod515.ZodObject<{
135
+ dependencies: zod515.ZodOptional<zod515.ZodRecord<zod515.ZodString, zod515.ZodString>>;
136
+ devDependencies: zod515.ZodOptional<zod515.ZodRecord<zod515.ZodString, zod515.ZodString>>;
137
+ peerDependencies: zod515.ZodOptional<zod515.ZodRecord<zod515.ZodString, zod515.ZodString>>;
138
+ peerDependenciesMeta: zod515.ZodOptional<zod515.ZodRecord<zod515.ZodString, zod515.ZodUnknown>>;
139
+ scripts: zod515.ZodOptional<zod515.ZodRecord<zod515.ZodString, zod515.ZodOptional<zod515.ZodString>>>;
140
+ }, "strip", zod515.ZodTypeAny, {
141
141
  dependencies?: Record<string, string> | undefined;
142
142
  devDependencies?: Record<string, string> | undefined;
143
143
  peerDependencies?: Record<string, string> | undefined;
@@ -150,17 +150,17 @@ declare const presetCommon: bingo_stratum9.Preset<{
150
150
  peerDependenciesMeta?: Record<string, unknown> | undefined;
151
151
  scripts?: Record<string, string | undefined> | undefined;
152
152
  }>>;
153
- pnpm: zod257.ZodOptional<zod257.ZodString>;
154
- repository: zod257.ZodString;
155
- rulesetId: zod257.ZodOptional<zod257.ZodString>;
156
- title: zod257.ZodString;
157
- type: zod257.ZodOptional<zod257.ZodUnion<[zod257.ZodLiteral<"commonjs">, zod257.ZodLiteral<"module">]>>;
158
- version: zod257.ZodOptional<zod257.ZodString>;
159
- words: zod257.ZodOptional<zod257.ZodArray<zod257.ZodString, "many">>;
160
- workflowsVersions: zod257.ZodOptional<zod257.ZodRecord<zod257.ZodString, zod257.ZodRecord<zod257.ZodString, zod257.ZodObject<{
161
- hash: zod257.ZodOptional<zod257.ZodString>;
162
- pinned: zod257.ZodOptional<zod257.ZodBoolean>;
163
- }, "strip", zod257.ZodTypeAny, {
153
+ pnpm: zod515.ZodOptional<zod515.ZodString>;
154
+ repository: zod515.ZodString;
155
+ rulesetId: zod515.ZodOptional<zod515.ZodString>;
156
+ title: zod515.ZodString;
157
+ type: zod515.ZodOptional<zod515.ZodUnion<[zod515.ZodLiteral<"commonjs">, zod515.ZodLiteral<"module">]>>;
158
+ version: zod515.ZodOptional<zod515.ZodString>;
159
+ words: zod515.ZodOptional<zod515.ZodArray<zod515.ZodString, "many">>;
160
+ workflowsVersions: zod515.ZodOptional<zod515.ZodRecord<zod515.ZodString, zod515.ZodRecord<zod515.ZodString, zod515.ZodObject<{
161
+ hash: zod515.ZodOptional<zod515.ZodString>;
162
+ pinned: zod515.ZodOptional<zod515.ZodBoolean>;
163
+ }, "strip", zod515.ZodTypeAny, {
164
164
  pinned?: boolean | undefined;
165
165
  hash?: string | undefined;
166
166
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","names":[],"sources":["../../src/presets/common.ts"],"sourcesContent":[],"mappings":";;;;cASa,6BAAY;2BAevB,MAAA,CAAA;;;EAfW,YAAA,oBAeX,gBAAA,iBAAA,CAAA;IAAA,UAAA,kBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAfuB,CAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;IAAA,oBAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA"}
1
+ {"version":3,"file":"common.d.ts","names":[],"sources":["../../src/presets/common.ts"],"sourcesContent":[],"mappings":";;;;cASa,8BAAY;2BAevB,MAAA,CAAA;;;EAfW,YAAA,oBAeX,gBAAA,iBAAA,CAAA;IAAA,UAAA,kBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAfuB,CAAA,QAAA,CAAA,MAAA,EAAA,MAAA,CAAA,GAAA,SAAA;IAAA,oBAAA,CAAA,QAAA,CAAA,MAAA,EAAA,OAAA,CAAA,GAAA,SAAA"}