create-typescript-app 1.42.1 → 1.43.0

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.
@@ -0,0 +1,3 @@
1
+ declare function logHelpText(introLogs: string[]): void;
2
+
3
+ export { logHelpText };
@@ -0,0 +1,117 @@
1
+ import chalk from "chalk";
2
+ import { allArgOptions } from "../shared/options/args.js";
3
+ function logHelpTextSection(section) {
4
+ console.log(" ");
5
+ console.log(`${chalk.black.bgGreenBright(section.sectionHeading)}`);
6
+ for (const subsection of section.subsections) {
7
+ if (subsection.warning) {
8
+ console.log(chalk.yellow(subsection.warning));
9
+ }
10
+ if (subsection.subheading) {
11
+ console.log(chalk.green(subsection.subheading));
12
+ }
13
+ for (const { description, flag, type } of subsection.flags) {
14
+ console.log(
15
+ chalk.cyan(
16
+ `
17
+ --${flag}${type !== "boolean" ? ` (${chalk.cyanBright(type)})` : ""}: ${description}`
18
+ )
19
+ );
20
+ }
21
+ }
22
+ }
23
+ function createHelpTextSections() {
24
+ const core = {
25
+ sectionHeading: "Core options:",
26
+ subsections: [
27
+ {
28
+ flags: []
29
+ }
30
+ ]
31
+ };
32
+ const optional = {
33
+ sectionHeading: "Optional options:",
34
+ subsections: [
35
+ {
36
+ flags: []
37
+ }
38
+ ]
39
+ };
40
+ const optOut = {
41
+ sectionHeading: "Opt-outs:",
42
+ subsections: [
43
+ {
44
+ flags: [],
45
+ warning: `
46
+ \u26A0\uFE0F Warning: Specifying any --exclude-* flag on the command-line will
47
+ cause the setup script to skip prompting for more excludes. \u26A0\uFE0F`
48
+ },
49
+ {
50
+ flags: [
51
+ {
52
+ description: `Skips network calls that fetch all-contributors
53
+ data from GitHub`,
54
+ flag: "exclude-contributors",
55
+ type: "boolean"
56
+ }
57
+ ],
58
+ subheading: `
59
+ You can prevent the migration script from making some network-based
60
+ changes using any or all of the following CLI flags:`
61
+ },
62
+ {
63
+ flags: [],
64
+ subheading: `
65
+ You can prevent the migration script from making some changes on disk
66
+ using any or all of the following CLI flags:`
67
+ }
68
+ ]
69
+ };
70
+ const offline = {
71
+ sectionHeading: "Offline Mode:",
72
+ subsections: [
73
+ {
74
+ flags: []
75
+ }
76
+ ]
77
+ };
78
+ const subsections = {
79
+ core: core.subsections[0],
80
+ offline: offline.subsections[0],
81
+ "opt-out": optOut.subsections[0],
82
+ optional: optional.subsections[0],
83
+ "skip-disk": optOut.subsections[2],
84
+ "skip-net": optOut.subsections[1]
85
+ };
86
+ for (const [option, data] of Object.entries(allArgOptions)) {
87
+ subsections[data.docsSection].flags.push({
88
+ description: data.description,
89
+ flag: option,
90
+ type: data.type
91
+ });
92
+ }
93
+ return [core, optional, optOut, offline];
94
+ }
95
+ function logHelpText(introLogs) {
96
+ const helpTextSections = createHelpTextSections();
97
+ for (const log of introLogs) {
98
+ console.log(log);
99
+ console.log(" ");
100
+ }
101
+ console.log(
102
+ chalk.cyan(
103
+ `
104
+ A quickstart-friendly TypeScript template with comprehensive formatting,
105
+ linting, releases, testing, and other great tooling built-in.
106
+ `
107
+ )
108
+ );
109
+ for (const section of helpTextSections) {
110
+ logHelpTextSection(section);
111
+ console.log();
112
+ }
113
+ }
114
+ export {
115
+ logHelpText
116
+ };
117
+ //# sourceMappingURL=help.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/help.ts"],"sourcesContent":["import chalk from \"chalk\";\n\nimport { allArgOptions } from \"../shared/options/args.js\";\n\ninterface HelpTextSection {\n\tsectionHeading: string;\n\tsubsections: {\n\t\tflags: SubsectionFlag[];\n\t\tsubheading?: string;\n\t\twarning?: string;\n\t}[];\n}\n\ninterface SubsectionFlag {\n\tdescription: string;\n\tflag: string;\n\ttype: string;\n}\n\nfunction logHelpTextSection(section: HelpTextSection): void {\n\tconsole.log(\" \");\n\n\tconsole.log(`${chalk.black.bgGreenBright(section.sectionHeading)}`);\n\n\tfor (const subsection of section.subsections) {\n\t\tif (subsection.warning) {\n\t\t\tconsole.log(chalk.yellow(subsection.warning));\n\t\t}\n\n\t\tif (subsection.subheading) {\n\t\t\tconsole.log(chalk.green(subsection.subheading));\n\t\t}\n\n\t\tfor (const { description, flag, type } of subsection.flags) {\n\t\t\tconsole.log(\n\t\t\t\tchalk.cyan(\n\t\t\t\t\t`\n --${flag}${\n\t\ttype !== \"boolean\" ? ` (${chalk.cyanBright(type)})` : \"\"\n\t}: ${description}`,\n\t\t\t\t),\n\t\t\t);\n\t\t}\n\t}\n}\n\nfunction createHelpTextSections(): HelpTextSection[] {\n\tconst core: HelpTextSection = {\n\t\tsectionHeading: \"Core options:\",\n\t\tsubsections: [\n\t\t\t{\n\t\t\t\tflags: [],\n\t\t\t},\n\t\t],\n\t};\n\n\tconst optional: HelpTextSection = {\n\t\tsectionHeading: \"Optional options:\",\n\t\tsubsections: [\n\t\t\t{\n\t\t\t\tflags: [],\n\t\t\t},\n\t\t],\n\t};\n\n\tconst optOut: HelpTextSection = {\n\t\tsectionHeading: \"Opt-outs:\",\n\t\tsubsections: [\n\t\t\t{\n\t\t\t\tflags: [],\n\t\t\t\twarning: `\n ⚠️ Warning: Specifying any --exclude-* flag on the command-line will \n cause the setup script to skip prompting for more excludes. ⚠️`,\n\t\t\t},\n\t\t\t{\n\t\t\t\tflags: [\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription: `Skips network calls that fetch all-contributors\n data from GitHub`,\n\t\t\t\t\t\tflag: \"exclude-contributors\",\n\t\t\t\t\t\ttype: \"boolean\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tsubheading: `\nYou can prevent the migration script from making some network-based \nchanges using any or all of the following CLI flags:`,\n\t\t\t},\n\t\t\t{\n\t\t\t\tflags: [],\n\t\t\t\tsubheading: `\nYou can prevent the migration script from making some changes on disk \nusing any or all of the following CLI flags:`,\n\t\t\t},\n\t\t],\n\t};\n\n\tconst offline: HelpTextSection = {\n\t\tsectionHeading: \"Offline Mode:\",\n\t\tsubsections: [\n\t\t\t{\n\t\t\t\tflags: [],\n\t\t\t},\n\t\t],\n\t};\n\n\tconst subsections = {\n\t\tcore: core.subsections[0],\n\t\toffline: offline.subsections[0],\n\t\t\"opt-out\": optOut.subsections[0],\n\t\toptional: optional.subsections[0],\n\t\t\"skip-disk\": optOut.subsections[2],\n\t\t\"skip-net\": optOut.subsections[1],\n\t};\n\n\tfor (const [option, data] of Object.entries(allArgOptions)) {\n\t\tsubsections[data.docsSection].flags.push({\n\t\t\tdescription: data.description,\n\t\t\tflag: option,\n\t\t\ttype: data.type,\n\t\t});\n\t}\n\n\treturn [core, optional, optOut, offline];\n}\n\nexport function logHelpText(introLogs: string[]): void {\n\tconst helpTextSections = createHelpTextSections();\n\n\tfor (const log of introLogs) {\n\t\tconsole.log(log);\n\t\tconsole.log(\" \");\n\t}\n\n\tconsole.log(\n\t\tchalk.cyan(\n\t\t\t`\nA quickstart-friendly TypeScript template with comprehensive formatting, \nlinting, releases, testing, and other great tooling built-in.\n `,\n\t\t),\n\t);\n\n\tfor (const section of helpTextSections) {\n\t\tlogHelpTextSection(section);\n\n\t\tconsole.log();\n\t}\n}\n"],"mappings":"AAAA,OAAO,WAAW;AAElB,SAAS,qBAAqB;AAiB9B,SAAS,mBAAmB,SAAgC;AAC3D,UAAQ,IAAI,GAAG;AAEf,UAAQ,IAAI,GAAG,MAAM,MAAM,cAAc,QAAQ,cAAc,CAAC,EAAE;AAElE,aAAW,cAAc,QAAQ,aAAa;AAC7C,QAAI,WAAW,SAAS;AACvB,cAAQ,IAAI,MAAM,OAAO,WAAW,OAAO,CAAC;AAAA,IAC7C;AAEA,QAAI,WAAW,YAAY;AAC1B,cAAQ,IAAI,MAAM,MAAM,WAAW,UAAU,CAAC;AAAA,IAC/C;AAEA,eAAW,EAAE,aAAa,MAAM,KAAK,KAAK,WAAW,OAAO;AAC3D,cAAQ;AAAA,QACP,MAAM;AAAA,UACL;AAAA,MACC,IAAI,GACR,SAAS,YAAY,KAAK,MAAM,WAAW,IAAI,CAAC,MAAM,EACvD,KAAK,WAAW;AAAA,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A,MACN,MAAM,KAAK;AAAA,IACZ,CAAC;AAAA,EACF;AAEA,SAAO,CAAC,MAAM,UAAU,QAAQ,OAAO;AACxC;AAEO,SAAS,YAAY,WAA2B;AACtD,QAAM,mBAAmB,uBAAuB;AAEhD,aAAW,OAAO,WAAW;AAC5B,YAAQ,IAAI,GAAG;AACf,YAAQ,IAAI,GAAG;AAAA,EAChB;AAEA,UAAQ;AAAA,IACP,MAAM;AAAA,MACL;AAAA;AAAA;AAAA;AAAA,IAID;AAAA,EACD;AAEA,aAAW,WAAW,kBAAkB;AACvC,uBAAmB,OAAO;AAE1B,YAAQ,IAAI;AAAA,EACb;AACD;","names":[]}
package/lib/bin/index.js CHANGED
@@ -8,35 +8,46 @@ import { initialize } from "../initialize/index.js";
8
8
  import { migrate } from "../migrate/index.js";
9
9
  import { logLine } from "../shared/cli/lines.js";
10
10
  import { StatusCodes } from "../shared/codes.js";
11
+ import { logHelpText } from "./help.js";
12
+ import { getVersionFromPackageJson } from "./packageJson.js";
11
13
  import { promptForMode } from "./promptForMode.js";
12
14
  const operationMessage = (verb) => `Operation ${verb}. Exiting - maybe another time? \u{1F44B}`;
13
15
  async function bin(args) {
14
16
  console.clear();
15
- prompts.intro(
16
- [
17
- chalk.greenBright(`Welcome to`),
18
- chalk.bgGreenBright.black(`create-typescript-app`),
19
- chalk.greenBright(`! \u{1F389}`)
20
- ].join(" ")
21
- );
22
- logLine();
23
- logLine(
17
+ const version = await getVersionFromPackageJson();
18
+ const introPrompts = [
19
+ chalk.greenBright(`\u2728 Welcome to`),
20
+ chalk.bgGreenBright.black(`create-typescript-app`),
21
+ chalk.greenBright(`${version}! \u2728`)
22
+ ].join(" ");
23
+ const introWarnings = [
24
24
  chalk.yellow(
25
25
  "\u26A0\uFE0F This template is early stage, opinionated, and not endorsed by the TypeScript team. \u26A0\uFE0F"
26
- )
27
- );
28
- logLine(
26
+ ),
29
27
  chalk.yellow(
30
28
  "\u26A0\uFE0F If any tooling it sets displeases you, you can always remove that portion manually. \u26A0\uFE0F"
31
29
  )
32
- );
30
+ ];
33
31
  const { values } = parseArgs({
34
32
  args,
35
33
  options: {
34
+ help: {
35
+ short: "h",
36
+ type: "boolean"
37
+ },
36
38
  mode: { type: "string" }
37
39
  },
38
40
  strict: false
39
41
  });
42
+ const help = values.help;
43
+ if (help) {
44
+ logHelpText([introPrompts, ...introWarnings]);
45
+ return 0;
46
+ }
47
+ prompts.intro(introPrompts);
48
+ logLine();
49
+ logLine(introWarnings[0]);
50
+ logLine(introWarnings[1]);
40
51
  const { mode, options: promptedOptions } = await promptForMode(values.mode);
41
52
  if (typeof mode !== "string") {
42
53
  prompts.outro(chalk.red(mode?.message ?? operationMessage("cancelled")));
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/bin/index.ts"],"sourcesContent":["import * as prompts from \"@clack/prompts\";\nimport chalk from \"chalk\";\nimport { parseArgs } from \"node:util\";\nimport { fromZodError } from \"zod-validation-error\";\n\nimport { createRerunSuggestion } from \"../create/createRerunSuggestion.js\";\nimport { create } from \"../create/index.js\";\nimport { initialize } from \"../initialize/index.js\";\nimport { migrate } from \"../migrate/index.js\";\nimport { logLine } from \"../shared/cli/lines.js\";\nimport { StatusCodes } from \"../shared/codes.js\";\nimport { promptForMode } from \"./promptForMode.js\";\n\nconst operationMessage = (verb: string) =>\n\t`Operation ${verb}. Exiting - maybe another time? 👋`;\n\nexport async function bin(args: string[]) {\n\tconsole.clear();\n\n\tprompts.intro(\n\t\t[\n\t\t\tchalk.greenBright(`Welcome to`),\n\t\t\tchalk.bgGreenBright.black(`create-typescript-app`),\n\t\t\tchalk.greenBright(`! 🎉`),\n\t\t].join(\" \"),\n\t);\n\n\tlogLine();\n\tlogLine(\n\t\tchalk.yellow(\n\t\t\t\"⚠️ This template is early stage, opinionated, and not endorsed by the TypeScript team. ⚠️\",\n\t\t),\n\t);\n\tlogLine(\n\t\tchalk.yellow(\n\t\t\t\"⚠️ If any tooling it sets displeases you, you can always remove that portion manually. ⚠️\",\n\t\t),\n\t);\n\n\tconst { values } = parseArgs({\n\t\targs,\n\t\toptions: {\n\t\t\tmode: { type: \"string\" },\n\t\t},\n\t\tstrict: false,\n\t});\n\n\tconst { mode, options: promptedOptions } = await promptForMode(values.mode);\n\tif (typeof mode !== \"string\") {\n\t\tprompts.outro(chalk.red(mode?.message ?? operationMessage(\"cancelled\")));\n\t\treturn 1;\n\t}\n\n\tconst runners = { create, initialize, migrate };\n\tconst { code, error, options } = await runners[mode](args, promptedOptions);\n\n\tprompts.log.info(\n\t\t[\n\t\t\tchalk.italic(`Tip: to run again with the same input values, use:`),\n\t\t\tchalk.blue(createRerunSuggestion(options)),\n\t\t].join(\" \"),\n\t);\n\n\tif (code) {\n\t\tlogLine();\n\n\t\tif (error) {\n\t\t\tlogLine(\n\t\t\t\tchalk.red(typeof error === \"string\" ? error : fromZodError(error)),\n\t\t\t);\n\t\t\tlogLine();\n\t\t}\n\n\t\tprompts.cancel(\n\t\t\tcode === StatusCodes.Cancelled\n\t\t\t\t? operationMessage(\"cancelled\")\n\t\t\t\t: operationMessage(\"failed\"),\n\t\t);\n\t}\n\n\treturn code;\n}\n"],"mappings":"AAAA,YAAY,aAAa;AACzB,OAAO,WAAW;AAClB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,6BAA6B;AACtC,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,qBAAqB;AAE9B,MAAM,mBAAmB,CAAC,SACzB,aAAa,IAAI;AAElB,eAAsB,IAAI,MAAgB;AACzC,UAAQ,MAAM;AAEd,UAAQ;AAAA,IACP;AAAA,MACC,MAAM,YAAY,YAAY;AAAA,MAC9B,MAAM,cAAc,MAAM,uBAAuB;AAAA,MACjD,MAAM,YAAY,aAAM;AAAA,IACzB,EAAE,KAAK,GAAG;AAAA,EACX;AAEA,UAAQ;AACR;AAAA,IACC,MAAM;AAAA,MACL;AAAA,IACD;AAAA,EACD;AACA;AAAA,IACC,MAAM;AAAA,MACL;AAAA,IACD;AAAA,EACD;AAEA,QAAM,EAAE,OAAO,IAAI,UAAU;AAAA,IAC5B;AAAA,IACA,SAAS;AAAA,MACR,MAAM,EAAE,MAAM,SAAS;AAAA,IACxB;AAAA,IACA,QAAQ;AAAA,EACT,CAAC;AAED,QAAM,EAAE,MAAM,SAAS,gBAAgB,IAAI,MAAM,cAAc,OAAO,IAAI;AAC1E,MAAI,OAAO,SAAS,UAAU;AAC7B,YAAQ,MAAM,MAAM,IAAI,MAAM,WAAW,iBAAiB,WAAW,CAAC,CAAC;AACvE,WAAO;AAAA,EACR;AAEA,QAAM,UAAU,EAAE,QAAQ,YAAY,QAAQ;AAC9C,QAAM,EAAE,MAAM,OAAO,QAAQ,IAAI,MAAM,QAAQ,IAAI,EAAE,MAAM,eAAe;AAE1E,UAAQ,IAAI;AAAA,IACX;AAAA,MACC,MAAM,OAAO,oDAAoD;AAAA,MACjE,MAAM,KAAK,sBAAsB,OAAO,CAAC;AAAA,IAC1C,EAAE,KAAK,GAAG;AAAA,EACX;AAEA,MAAI,MAAM;AACT,YAAQ;AAER,QAAI,OAAO;AACV;AAAA,QACC,MAAM,IAAI,OAAO,UAAU,WAAW,QAAQ,aAAa,KAAK,CAAC;AAAA,MAClE;AACA,cAAQ;AAAA,IACT;AAEA,YAAQ;AAAA,MACP,SAAS,YAAY,YAClB,iBAAiB,WAAW,IAC5B,iBAAiB,QAAQ;AAAA,IAC7B;AAAA,EACD;AAEA,SAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["../../src/bin/index.ts"],"sourcesContent":["import * as prompts from \"@clack/prompts\";\nimport chalk from \"chalk\";\nimport { parseArgs } from \"node:util\";\nimport { fromZodError } from \"zod-validation-error\";\n\nimport { createRerunSuggestion } from \"../create/createRerunSuggestion.js\";\nimport { create } from \"../create/index.js\";\nimport { initialize } from \"../initialize/index.js\";\nimport { migrate } from \"../migrate/index.js\";\nimport { logLine } from \"../shared/cli/lines.js\";\nimport { StatusCodes } from \"../shared/codes.js\";\nimport { logHelpText } from \"./help.js\";\nimport { getVersionFromPackageJson } from \"./packageJson.js\";\nimport { promptForMode } from \"./promptForMode.js\";\n\nconst operationMessage = (verb: string) =>\n\t`Operation ${verb}. Exiting - maybe another time? 👋`;\n\nexport async function bin(args: string[]) {\n\tconsole.clear();\n\n\tconst version = await getVersionFromPackageJson();\n\n\tconst introPrompts = [\n\t\tchalk.greenBright(`✨ Welcome to`),\n\t\tchalk.bgGreenBright.black(`create-typescript-app`),\n\t\tchalk.greenBright(`${version}! ✨`),\n\t].join(\" \");\n\n\tconst introWarnings = [\n\t\tchalk.yellow(\n\t\t\t\"⚠️ This template is early stage, opinionated, and not endorsed by the TypeScript team. ⚠️\",\n\t\t),\n\t\tchalk.yellow(\n\t\t\t\"⚠️ If any tooling it sets displeases you, you can always remove that portion manually. ⚠️\",\n\t\t),\n\t];\n\n\tconst { values } = parseArgs({\n\t\targs,\n\t\toptions: {\n\t\t\thelp: {\n\t\t\t\tshort: \"h\",\n\t\t\t\ttype: \"boolean\",\n\t\t\t},\n\t\t\tmode: { type: \"string\" },\n\t\t},\n\t\tstrict: false,\n\t});\n\n\tconst help = values.help;\n\n\tif (help) {\n\t\tlogHelpText([introPrompts, ...introWarnings]);\n\t\treturn 0;\n\t}\n\n\tprompts.intro(introPrompts);\n\n\tlogLine();\n\tlogLine(introWarnings[0]);\n\tlogLine(introWarnings[1]);\n\n\tconst { mode, options: promptedOptions } = await promptForMode(values.mode);\n\tif (typeof mode !== \"string\") {\n\t\tprompts.outro(chalk.red(mode?.message ?? operationMessage(\"cancelled\")));\n\t\treturn 1;\n\t}\n\n\tconst runners = { create, initialize, migrate };\n\tconst { code, error, options } = await runners[mode](args, promptedOptions);\n\n\tprompts.log.info(\n\t\t[\n\t\t\tchalk.italic(`Tip: to run again with the same input values, use:`),\n\t\t\tchalk.blue(createRerunSuggestion(options)),\n\t\t].join(\" \"),\n\t);\n\n\tif (code) {\n\t\tlogLine();\n\n\t\tif (error) {\n\t\t\tlogLine(\n\t\t\t\tchalk.red(typeof error === \"string\" ? error : fromZodError(error)),\n\t\t\t);\n\t\t\tlogLine();\n\t\t}\n\n\t\tprompts.cancel(\n\t\t\tcode === StatusCodes.Cancelled\n\t\t\t\t? operationMessage(\"cancelled\")\n\t\t\t\t: operationMessage(\"failed\"),\n\t\t);\n\t}\n\n\treturn code;\n}\n"],"mappings":"AAAA,YAAY,aAAa;AACzB,OAAO,WAAW;AAClB,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAE7B,SAAS,6BAA6B;AACtC,SAAS,cAAc;AACvB,SAAS,kBAAkB;AAC3B,SAAS,eAAe;AACxB,SAAS,eAAe;AACxB,SAAS,mBAAmB;AAC5B,SAAS,mBAAmB;AAC5B,SAAS,iCAAiC;AAC1C,SAAS,qBAAqB;AAE9B,MAAM,mBAAmB,CAAC,SACzB,aAAa,IAAI;AAElB,eAAsB,IAAI,MAAgB;AACzC,UAAQ,MAAM;AAEd,QAAM,UAAU,MAAM,0BAA0B;AAEhD,QAAM,eAAe;AAAA,IACpB,MAAM,YAAY,mBAAc;AAAA,IAChC,MAAM,cAAc,MAAM,uBAAuB;AAAA,IACjD,MAAM,YAAY,GAAG,OAAO,UAAK;AAAA,EAClC,EAAE,KAAK,GAAG;AAEV,QAAM,gBAAgB;AAAA,IACrB,MAAM;AAAA,MACL;AAAA,IACD;AAAA,IACA,MAAM;AAAA,MACL;AAAA,IACD;AAAA,EACD;AAEA,QAAM,EAAE,OAAO,IAAI,UAAU;AAAA,IAC5B;AAAA,IACA,SAAS;AAAA,MACR,MAAM;AAAA,QACL,OAAO;AAAA,QACP,MAAM;AAAA,MACP;AAAA,MACA,MAAM,EAAE,MAAM,SAAS;AAAA,IACxB;AAAA,IACA,QAAQ;AAAA,EACT,CAAC;AAED,QAAM,OAAO,OAAO;AAEpB,MAAI,MAAM;AACT,gBAAY,CAAC,cAAc,GAAG,aAAa,CAAC;AAC5C,WAAO;AAAA,EACR;AAEA,UAAQ,MAAM,YAAY;AAE1B,UAAQ;AACR,UAAQ,cAAc,CAAC,CAAC;AACxB,UAAQ,cAAc,CAAC,CAAC;AAExB,QAAM,EAAE,MAAM,SAAS,gBAAgB,IAAI,MAAM,cAAc,OAAO,IAAI;AAC1E,MAAI,OAAO,SAAS,UAAU;AAC7B,YAAQ,MAAM,MAAM,IAAI,MAAM,WAAW,iBAAiB,WAAW,CAAC,CAAC;AACvE,WAAO;AAAA,EACR;AAEA,QAAM,UAAU,EAAE,QAAQ,YAAY,QAAQ;AAC9C,QAAM,EAAE,MAAM,OAAO,QAAQ,IAAI,MAAM,QAAQ,IAAI,EAAE,MAAM,eAAe;AAE1E,UAAQ,IAAI;AAAA,IACX;AAAA,MACC,MAAM,OAAO,oDAAoD;AAAA,MACjE,MAAM,KAAK,sBAAsB,OAAO,CAAC;AAAA,IAC1C,EAAE,KAAK,GAAG;AAAA,EACX;AAEA,MAAI,MAAM;AACT,YAAQ;AAER,QAAI,OAAO;AACV;AAAA,QACC,MAAM,IAAI,OAAO,UAAU,WAAW,QAAQ,aAAa,KAAK,CAAC;AAAA,MAClE;AACA,cAAQ;AAAA,IACT;AAEA,YAAQ;AAAA,MACP,SAAS,YAAY,YAClB,iBAAiB,WAAW,IAC5B,iBAAiB,QAAQ;AAAA,IAC7B;AAAA,EACD;AAEA,SAAO;AACR;","names":[]}
@@ -0,0 +1,3 @@
1
+ declare function getVersionFromPackageJson(): Promise<string>;
2
+
3
+ export { getVersionFromPackageJson };
@@ -0,0 +1,13 @@
1
+ import { readFileSafeAsJson } from "../shared/readFileSafeAsJson.js";
2
+ async function getVersionFromPackageJson() {
3
+ const path = new URL("../../package.json", import.meta.url);
4
+ const data = await readFileSafeAsJson(path);
5
+ if (typeof data === "object" && typeof data.version === "string") {
6
+ return data.version;
7
+ }
8
+ throw new Error("Cannot find version number");
9
+ }
10
+ export {
11
+ getVersionFromPackageJson
12
+ };
13
+ //# sourceMappingURL=packageJson.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/bin/packageJson.ts"],"sourcesContent":["import { readFileSafeAsJson } from \"../shared/readFileSafeAsJson.js\";\n\ninterface PackageWithVersion {\n\tversion?: string;\n}\n\nexport async function getVersionFromPackageJson(): Promise<string> {\n\tconst path = new URL(\"../../package.json\", import.meta.url);\n\tconst data = (await readFileSafeAsJson(path)) as PackageWithVersion;\n\n\tif (typeof data === \"object\" && typeof data.version === \"string\") {\n\t\treturn data.version;\n\t}\n\n\tthrow new Error(\"Cannot find version number\");\n}\n"],"mappings":"AAAA,SAAS,0BAA0B;AAMnC,eAAsB,4BAA6C;AAClE,QAAM,OAAO,IAAI,IAAI,sBAAsB,YAAY,GAAG;AAC1D,QAAM,OAAQ,MAAM,mBAAmB,IAAI;AAE3C,MAAI,OAAO,SAAS,YAAY,OAAO,KAAK,YAAY,UAAU;AACjE,WAAO,KAAK;AAAA,EACb;AAEA,QAAM,IAAI,MAAM,4BAA4B;AAC7C;","names":[]}
@@ -1,138 +1,228 @@
1
1
  declare const allArgOptions: {
2
2
  readonly access: {
3
+ readonly description: `(${string}): Which ${string} to \n release npm packages with (by default, "public")`;
4
+ readonly docsSection: "optional";
3
5
  readonly type: "string";
4
6
  };
5
7
  readonly author: {
8
+ readonly description: `Username on npm to publish packages under (by \n default, an existing npm author, or the currently logged in npm user, or \n ${string})`;
9
+ readonly docsSection: "optional";
6
10
  readonly type: "string";
7
11
  };
8
12
  readonly base: {
13
+ readonly description: `Whether to scaffold the repository with:\n \u2022 everything: that comes with the template (${string})\n \u2022 minimum: amounts of tooling, essentially opting out of everything\n \u2022 prompt: for which portions to exclude`;
14
+ readonly docsSection: "core";
9
15
  readonly type: "string";
10
16
  };
17
+ readonly "create-repository": {
18
+ readonly description: "Whether to create a corresponding repository on github.com \n (if it doesn't yet exist)";
19
+ readonly docsSection: "core";
20
+ readonly type: "boolean";
21
+ };
11
22
  readonly description: {
23
+ readonly description: "Sentence case description of the repository \n (e.g. A quickstart-friendly TypeScript package with lots of great \n repository tooling. ✨)";
24
+ readonly docsSection: "core";
12
25
  readonly type: "string";
13
26
  };
14
27
  readonly directory: {
28
+ readonly description: "Directory to create the repository in (by default, the same \n name as the repository)";
29
+ readonly docsSection: "optional";
15
30
  readonly type: "string";
16
31
  };
17
32
  readonly email: {
33
+ readonly description: "Email address to be listed as the point of contact in docs \n and packages (e.g. example@joshuakgoldberg.com)";
34
+ readonly docsSection: "optional";
18
35
  readonly type: "string";
19
36
  };
20
37
  readonly "email-github": {
38
+ readonly description: `Optionally, may be provided to use different emails in ${string} \n files`;
39
+ readonly docsSection: "optional";
21
40
  readonly type: "string";
22
41
  };
23
42
  readonly "email-npm": {
43
+ readonly description: `Optionally, may be provided to use different emails in \n ${string}`;
44
+ readonly docsSection: "optional";
24
45
  readonly type: "string";
25
46
  };
26
47
  readonly "exclude-all-contributors": {
48
+ readonly description: "Don't add all-contributors to track contributions \n and display them in a README.md table.";
49
+ readonly docsSection: "opt-out";
27
50
  readonly type: "boolean";
28
51
  };
29
52
  readonly "exclude-compliance": {
53
+ readonly description: "Don't add a GitHub Actions workflow to verify that PRs match \n an expected format.";
54
+ readonly docsSection: "opt-out";
30
55
  readonly type: "boolean";
31
56
  };
32
57
  readonly "exclude-lint-deprecation": {
33
- readonly type: "boolean";
34
- };
35
- readonly "exclude-lint-eslint": {
58
+ readonly description: `Don't use eslint-plugin-deprecation to report on usage \n of code marked as ${string}.`;
59
+ readonly docsSection: "opt-out";
36
60
  readonly type: "boolean";
37
61
  };
38
62
  readonly "exclude-lint-jsdoc": {
63
+ readonly description: "Don't use eslint-plugin-jsdoc to enforce good practices around \n JSDoc comments.";
64
+ readonly docsSection: "opt-out";
39
65
  readonly type: "boolean";
40
66
  };
41
67
  readonly "exclude-lint-json": {
68
+ readonly description: `Don't apply linting and sorting to ${string}, and \n ${string} files.`;
69
+ readonly docsSection: "opt-out";
42
70
  readonly type: "boolean";
43
71
  };
44
72
  readonly "exclude-lint-knip": {
73
+ readonly description: "Don't add Knip to detect unused files, dependencies, and code \n exports.";
74
+ readonly docsSection: "opt-out";
45
75
  readonly type: "boolean";
46
76
  };
47
77
  readonly "exclude-lint-md": {
78
+ readonly description: `Don't apply linting to ${string} files.`;
79
+ readonly docsSection: "opt-out";
48
80
  readonly type: "boolean";
49
81
  };
50
82
  readonly "exclude-lint-package-json": {
83
+ readonly description: "Don't add npm-package-json-lint to lint for \n package.json correctness.";
84
+ readonly docsSection: "opt-out";
51
85
  readonly type: "boolean";
52
86
  };
53
87
  readonly "exclude-lint-packages": {
88
+ readonly description: "Don't add a pnpm dedupe workflow to ensure packages \n aren't duplicated unnecessarily.";
89
+ readonly docsSection: "opt-out";
54
90
  readonly type: "boolean";
55
91
  };
56
92
  readonly "exclude-lint-perfectionist": {
93
+ readonly description: "Don't apply eslint-plugin-perfectionist to ensure \n imports, keys, and so on are in sorted order.";
94
+ readonly docsSection: "opt-out";
57
95
  readonly type: "boolean";
58
96
  };
59
97
  readonly "exclude-lint-regex": {
98
+ readonly description: "Don't add eslint-plugin-regex to enforce good practices around \n regular expressions.";
99
+ readonly docsSection: "opt-out";
60
100
  readonly type: "boolean";
61
101
  };
62
102
  readonly "exclude-lint-spelling": {
103
+ readonly description: "Don't add cspell to spell check against dictionaries \n of known words.";
104
+ readonly docsSection: "opt-out";
63
105
  readonly type: "boolean";
64
106
  };
65
107
  readonly "exclude-lint-strict": {
108
+ readonly description: "Don't augment the recommended logical lint rules with \n typescript-eslint's strict config.";
109
+ readonly docsSection: "opt-out";
66
110
  readonly type: "boolean";
67
111
  };
68
112
  readonly "exclude-lint-stylistic": {
113
+ readonly description: "Don't add stylistic rules such as typescript-eslint's \n stylistic config.";
114
+ readonly docsSection: "opt-out";
69
115
  readonly type: "boolean";
70
116
  };
71
117
  readonly "exclude-lint-yml": {
118
+ readonly description: `Don't apply linting and sorting to ${string} and ${string} files.`;
119
+ readonly docsSection: "opt-out";
72
120
  readonly type: "boolean";
73
121
  };
74
122
  readonly "exclude-releases": {
123
+ readonly description: "Don't add release-it to generate changelogs, package bumps, \n and publishes based on conventional commits.";
124
+ readonly docsSection: "opt-out";
75
125
  readonly type: "boolean";
76
126
  };
77
127
  readonly "exclude-renovate": {
128
+ readonly description: "Don't add a Renovate config to dependencies up-to-date with \n PRs.";
129
+ readonly docsSection: "opt-out";
78
130
  readonly type: "boolean";
79
131
  };
80
132
  readonly "exclude-tests": {
133
+ readonly description: "Don't add Vitest tooling for fast unit tests, configured \n with coverage tracking.";
134
+ readonly docsSection: "opt-out";
81
135
  readonly type: "boolean";
82
136
  };
83
137
  readonly funding: {
138
+ readonly description: `GitHub organization or username to mention in ${string} \n (by default, owner)`;
139
+ readonly docsSection: "optional";
84
140
  readonly type: "string";
85
141
  };
86
142
  readonly guide: {
143
+ readonly description: "Link to a contribution guide to place at the top of the \n development docs";
144
+ readonly docsSection: "optional";
87
145
  readonly type: "string";
88
146
  };
89
147
  readonly "guide-title": {
148
+ readonly description: `If ${string} is provided or detected from an existing \n DEVELOPMENT.md, the text title to place in the guide link`;
149
+ readonly docsSection: "optional";
90
150
  readonly type: "string";
91
151
  };
92
152
  readonly keywords: {
153
+ readonly description: `Any number of keywords to include in ${string} (by default, \n none). This can be specified any number of times, like \n ${string}`;
154
+ readonly docsSection: "optional";
93
155
  readonly multiple: true;
94
156
  readonly type: "string";
95
157
  };
96
158
  readonly logo: {
159
+ readonly description: "Local image file in the repository to display near the top of \n the README.md as a logo";
160
+ readonly docsSection: "optional";
97
161
  readonly type: "string";
98
162
  };
99
163
  readonly "logo-alt": {
164
+ readonly description: `If ${string} is provided or detected from an existing README.md, \n alt text that describes the image will be prompted for if not provided`;
165
+ readonly docsSection: "optional";
100
166
  readonly type: "string";
101
167
  };
102
168
  readonly mode: {
169
+ readonly description: "Whether to:\n • create: a new repository in a child directory\n • initialize: a freshly repository in the current directory\n • migrate: an existing repository in the current directory";
170
+ readonly docsSection: "core";
103
171
  readonly type: "string";
104
172
  };
105
173
  readonly offline: {
174
+ readonly description: `You can run ${string} in an "offline" mode. \n Doing so will:\n \u2022 Enable ${string} and ${string}\n \u2022 Skip network calls when setting up contributors\n \u2022 Run pnpm commands with pnpm's ${string} mode`;
175
+ readonly docsSection: "offline";
106
176
  readonly type: "boolean";
107
177
  };
108
178
  readonly owner: {
179
+ readonly description: "GitHub organization or user the repository is underneath \n (e.g. JoshuaKGoldberg)";
180
+ readonly docsSection: "core";
109
181
  readonly type: "string";
110
182
  };
111
- readonly "preserve-generated-from": {
183
+ readonly "preserve-generated-form": {
184
+ readonly description: "Whether to keep the GitHub repository generated from \n notice (by default, false)";
185
+ readonly docsSection: "optional";
112
186
  readonly type: "boolean";
113
187
  };
114
188
  readonly repository: {
189
+ readonly description: "The kebab-case name of the repository \n (e.g. create-typescript-app)";
190
+ readonly docsSection: "core";
115
191
  readonly type: "string";
116
192
  };
117
193
  readonly "skip-all-contributors-api": {
194
+ readonly description: `Skips network calls that fetch all-contributors data from\n GitHub. This flag does nothing if ${string} was specified.`;
195
+ readonly docsSection: "skip-net";
118
196
  readonly type: "boolean";
119
197
  };
120
198
  readonly "skip-github-api": {
199
+ readonly description: "Skips calling to GitHub APIs.";
200
+ readonly docsSection: "skip-net";
121
201
  readonly type: "boolean";
122
202
  };
123
203
  readonly "skip-install": {
204
+ readonly description: "Skips installing all the new template packages with pnpm.";
205
+ readonly docsSection: "skip-net";
124
206
  readonly type: "boolean";
125
207
  };
126
208
  readonly "skip-removal": {
209
+ readonly description: `Skips removing setup docs and scripts, including this ${string} \n directory`;
210
+ readonly docsSection: "skip-disk";
127
211
  readonly type: "boolean";
128
212
  };
129
213
  readonly "skip-restore": {
214
+ readonly description: "Skips the prompt offering to restore the repository if an \n error occurs during setup";
215
+ readonly docsSection: "skip-disk";
130
216
  readonly type: "boolean";
131
217
  };
132
218
  readonly "skip-uninstall": {
219
+ readonly description: "Skips uninstalling packages only used for setup scripts";
220
+ readonly docsSection: "skip-disk";
133
221
  readonly type: "boolean";
134
222
  };
135
223
  readonly title: {
224
+ readonly description: "Title Case title for the repository to be used in \n documentation (e.g. Create TypeScript App)";
225
+ readonly docsSection: "core";
136
226
  readonly type: "string";
137
227
  };
138
228
  };
@@ -1,49 +1,307 @@
1
+ import chalk from "chalk";
1
2
  const allArgOptions = {
2
- access: { type: "string" },
3
- author: { type: "string" },
4
- base: { type: "string" },
5
- description: { type: "string" },
6
- directory: { type: "string" },
7
- email: { type: "string" },
8
- "email-github": { type: "string" },
9
- "email-npm": { type: "string" },
10
- "exclude-all-contributors": { type: "boolean" },
11
- "exclude-compliance": { type: "boolean" },
12
- "exclude-lint-deprecation": { type: "boolean" },
13
- "exclude-lint-eslint": { type: "boolean" },
14
- "exclude-lint-jsdoc": { type: "boolean" },
15
- "exclude-lint-json": { type: "boolean" },
16
- "exclude-lint-knip": { type: "boolean" },
17
- "exclude-lint-md": { type: "boolean" },
18
- "exclude-lint-package-json": { type: "boolean" },
19
- "exclude-lint-packages": { type: "boolean" },
20
- "exclude-lint-perfectionist": { type: "boolean" },
21
- "exclude-lint-regex": { type: "boolean" },
22
- "exclude-lint-spelling": { type: "boolean" },
23
- "exclude-lint-strict": { type: "boolean" },
24
- "exclude-lint-stylistic": { type: "boolean" },
25
- "exclude-lint-yml": { type: "boolean" },
26
- "exclude-releases": { type: "boolean" },
27
- "exclude-renovate": { type: "boolean" },
28
- "exclude-tests": { type: "boolean" },
29
- funding: { type: "string" },
30
- guide: { type: "string" },
31
- "guide-title": { type: "string" },
32
- keywords: { multiple: true, type: "string" },
33
- logo: { type: "string" },
34
- "logo-alt": { type: "string" },
35
- mode: { type: "string" },
36
- offline: { type: "boolean" },
37
- owner: { type: "string" },
38
- "preserve-generated-from": { type: "boolean" },
39
- repository: { type: "string" },
40
- "skip-all-contributors-api": { type: "boolean" },
41
- "skip-github-api": { type: "boolean" },
42
- "skip-install": { type: "boolean" },
43
- "skip-removal": { type: "boolean" },
44
- "skip-restore": { type: "boolean" },
45
- "skip-uninstall": { type: "boolean" },
46
- title: { type: "string" }
3
+ access: {
4
+ description: `(${chalk.cyanBright(
5
+ '"public" | "restricted"'
6
+ )}): Which ${chalk.cyanBright("npm publish --access")} to
7
+ release npm packages with (by default, "public")`,
8
+ docsSection: "optional",
9
+ type: "string"
10
+ },
11
+ author: {
12
+ description: `Username on npm to publish packages under (by
13
+ default, an existing npm author, or the currently logged in npm user, or
14
+ ${chalk.cyanBright("owner.toLowerCase()")})`,
15
+ docsSection: "optional",
16
+ type: "string"
17
+ },
18
+ base: {
19
+ description: `Whether to scaffold the repository with:
20
+ \u2022 everything: that comes with the template (${chalk.cyanBright.bold(
21
+ "recommended"
22
+ )})
23
+ \u2022 minimum: amounts of tooling, essentially opting out of everything
24
+ \u2022 prompt: for which portions to exclude`,
25
+ docsSection: "core",
26
+ type: "string"
27
+ },
28
+ "create-repository": {
29
+ description: `Whether to create a corresponding repository on github.com
30
+ (if it doesn't yet exist)`,
31
+ docsSection: "core",
32
+ type: "boolean"
33
+ },
34
+ description: {
35
+ description: `Sentence case description of the repository
36
+ (e.g. A quickstart-friendly TypeScript package with lots of great
37
+ repository tooling. \u2728)`,
38
+ docsSection: "core",
39
+ type: "string"
40
+ },
41
+ directory: {
42
+ description: `Directory to create the repository in (by default, the same
43
+ name as the repository)`,
44
+ docsSection: "optional",
45
+ type: "string"
46
+ },
47
+ email: {
48
+ description: `Email address to be listed as the point of contact in docs
49
+ and packages (e.g. example@joshuakgoldberg.com)`,
50
+ docsSection: "optional",
51
+ type: "string"
52
+ },
53
+ "email-github": {
54
+ description: `Optionally, may be provided to use different emails in ${chalk.cyanBright(
55
+ ".md"
56
+ )}
57
+ files`,
58
+ docsSection: "optional",
59
+ type: "string"
60
+ },
61
+ "email-npm": {
62
+ description: `Optionally, may be provided to use different emails in
63
+ ${chalk.cyanBright("package.json")}`,
64
+ docsSection: "optional",
65
+ type: "string"
66
+ },
67
+ "exclude-all-contributors": {
68
+ description: `Don't add all-contributors to track contributions
69
+ and display them in a README.md table.`,
70
+ docsSection: "opt-out",
71
+ type: "boolean"
72
+ },
73
+ "exclude-compliance": {
74
+ description: `Don't add a GitHub Actions workflow to verify that PRs match
75
+ an expected format.`,
76
+ docsSection: "opt-out",
77
+ type: "boolean"
78
+ },
79
+ "exclude-lint-deprecation": {
80
+ description: `Don't use eslint-plugin-deprecation to report on usage
81
+ of code marked as ${chalk.cyanBright("@deprecated")}.`,
82
+ docsSection: "opt-out",
83
+ type: "boolean"
84
+ },
85
+ "exclude-lint-jsdoc": {
86
+ description: `Don't use eslint-plugin-jsdoc to enforce good practices around
87
+ JSDoc comments.`,
88
+ docsSection: "opt-out",
89
+ type: "boolean"
90
+ },
91
+ "exclude-lint-json": {
92
+ description: `Don't apply linting and sorting to ${chalk.cyanBright(
93
+ "*.json"
94
+ )}, and
95
+ ${chalk.cyanBright("*.jsonc")} files.`,
96
+ docsSection: "opt-out",
97
+ type: "boolean"
98
+ },
99
+ "exclude-lint-knip": {
100
+ description: `Don't add Knip to detect unused files, dependencies, and code
101
+ exports.`,
102
+ docsSection: "opt-out",
103
+ type: "boolean"
104
+ },
105
+ "exclude-lint-md": {
106
+ description: `Don't apply linting to ${chalk.cyanBright("*.md")} files.`,
107
+ docsSection: "opt-out",
108
+ type: "boolean"
109
+ },
110
+ "exclude-lint-package-json": {
111
+ description: `Don't add npm-package-json-lint to lint for
112
+ package.json correctness.`,
113
+ docsSection: "opt-out",
114
+ type: "boolean"
115
+ },
116
+ "exclude-lint-packages": {
117
+ description: `Don't add a pnpm dedupe workflow to ensure packages
118
+ aren't duplicated unnecessarily.`,
119
+ docsSection: "opt-out",
120
+ type: "boolean"
121
+ },
122
+ "exclude-lint-perfectionist": {
123
+ description: `Don't apply eslint-plugin-perfectionist to ensure
124
+ imports, keys, and so on are in sorted order.`,
125
+ docsSection: "opt-out",
126
+ type: "boolean"
127
+ },
128
+ "exclude-lint-regex": {
129
+ description: `Don't add eslint-plugin-regex to enforce good practices around
130
+ regular expressions.`,
131
+ docsSection: "opt-out",
132
+ type: "boolean"
133
+ },
134
+ "exclude-lint-spelling": {
135
+ description: `Don't add cspell to spell check against dictionaries
136
+ of known words.`,
137
+ docsSection: "opt-out",
138
+ type: "boolean"
139
+ },
140
+ "exclude-lint-strict": {
141
+ description: `Don't augment the recommended logical lint rules with
142
+ typescript-eslint's strict config.`,
143
+ docsSection: "opt-out",
144
+ type: "boolean"
145
+ },
146
+ "exclude-lint-stylistic": {
147
+ description: `Don't add stylistic rules such as typescript-eslint's
148
+ stylistic config.`,
149
+ docsSection: "opt-out",
150
+ type: "boolean"
151
+ },
152
+ "exclude-lint-yml": {
153
+ description: `Don't apply linting and sorting to ${chalk.cyanBright(
154
+ "*.yaml"
155
+ )} and ${chalk.cyanBright("*.yml")} files.`,
156
+ docsSection: "opt-out",
157
+ type: "boolean"
158
+ },
159
+ "exclude-releases": {
160
+ description: `Don't add release-it to generate changelogs, package bumps,
161
+ and publishes based on conventional commits.`,
162
+ docsSection: "opt-out",
163
+ type: "boolean"
164
+ },
165
+ "exclude-renovate": {
166
+ description: `Don't add a Renovate config to dependencies up-to-date with
167
+ PRs.`,
168
+ docsSection: "opt-out",
169
+ type: "boolean"
170
+ },
171
+ "exclude-tests": {
172
+ description: `Don't add Vitest tooling for fast unit tests, configured
173
+ with coverage tracking.`,
174
+ docsSection: "opt-out",
175
+ type: "boolean"
176
+ },
177
+ funding: {
178
+ description: `GitHub organization or username to mention in ${chalk.cyanBright(
179
+ "funding.yml"
180
+ )}
181
+ (by default, owner)`,
182
+ docsSection: "optional",
183
+ type: "string"
184
+ },
185
+ guide: {
186
+ description: `Link to a contribution guide to place at the top of the
187
+ development docs`,
188
+ docsSection: "optional",
189
+ type: "string"
190
+ },
191
+ "guide-title": {
192
+ description: `If ${chalk.cyanBright(
193
+ "--guide"
194
+ )} is provided or detected from an existing
195
+ DEVELOPMENT.md, the text title to place in the guide link`,
196
+ docsSection: "optional",
197
+ type: "string"
198
+ },
199
+ keywords: {
200
+ description: `Any number of keywords to include in ${chalk.cyanBright(
201
+ "package.json"
202
+ )} (by default,
203
+ none). This can be specified any number of times, like
204
+ ${chalk.cyanBright('--keywords apple --keywords "banana cherry"')}`,
205
+ docsSection: "optional",
206
+ multiple: true,
207
+ type: "string"
208
+ },
209
+ logo: {
210
+ description: `Local image file in the repository to display near the top of
211
+ the README.md as a logo`,
212
+ docsSection: "optional",
213
+ type: "string"
214
+ },
215
+ "logo-alt": {
216
+ description: `If ${chalk.cyanBright(
217
+ "--logo"
218
+ )} is provided or detected from an existing README.md,
219
+ alt text that describes the image will be prompted for if not provided`,
220
+ docsSection: "optional",
221
+ type: "string"
222
+ },
223
+ mode: {
224
+ description: `Whether to:
225
+ \u2022 create: a new repository in a child directory
226
+ \u2022 initialize: a freshly repository in the current directory
227
+ \u2022 migrate: an existing repository in the current directory`,
228
+ docsSection: "core",
229
+ type: "string"
230
+ },
231
+ offline: {
232
+ description: `You can run ${chalk.cyanBright(
233
+ "create-typescript-app"
234
+ )} in an "offline" mode.
235
+ Doing so will:
236
+ \u2022 Enable ${chalk.cyanBright(
237
+ "--exclude-all-contributors-api"
238
+ )} and ${chalk.cyanBright("--skip-github-api")}
239
+ \u2022 Skip network calls when setting up contributors
240
+ \u2022 Run pnpm commands with pnpm's ${chalk.cyanBright("--offline")} mode`,
241
+ docsSection: "offline",
242
+ type: "boolean"
243
+ },
244
+ owner: {
245
+ description: `GitHub organization or user the repository is underneath
246
+ (e.g. JoshuaKGoldberg)`,
247
+ docsSection: "core",
248
+ type: "string"
249
+ },
250
+ "preserve-generated-form": {
251
+ description: `Whether to keep the GitHub repository generated from
252
+ notice (by default, false)`,
253
+ docsSection: "optional",
254
+ type: "boolean"
255
+ },
256
+ repository: {
257
+ description: `The kebab-case name of the repository
258
+ (e.g. create-typescript-app)`,
259
+ docsSection: "core",
260
+ type: "string"
261
+ },
262
+ "skip-all-contributors-api": {
263
+ description: `Skips network calls that fetch all-contributors data from
264
+ GitHub. This flag does nothing if ${chalk.cyanBright(
265
+ "--exclude-all-contributors"
266
+ )} was specified.`,
267
+ docsSection: "skip-net",
268
+ type: "boolean"
269
+ },
270
+ "skip-github-api": {
271
+ description: `Skips calling to GitHub APIs.`,
272
+ docsSection: "skip-net",
273
+ type: "boolean"
274
+ },
275
+ "skip-install": {
276
+ description: `Skips installing all the new template packages with pnpm.`,
277
+ docsSection: "skip-net",
278
+ type: "boolean"
279
+ },
280
+ "skip-removal": {
281
+ description: `Skips removing setup docs and scripts, including this ${chalk.cyanBright(
282
+ "docs/"
283
+ )}
284
+ directory`,
285
+ docsSection: "skip-disk",
286
+ type: "boolean"
287
+ },
288
+ "skip-restore": {
289
+ description: `Skips the prompt offering to restore the repository if an
290
+ error occurs during setup`,
291
+ docsSection: "skip-disk",
292
+ type: "boolean"
293
+ },
294
+ "skip-uninstall": {
295
+ description: `Skips uninstalling packages only used for setup scripts`,
296
+ docsSection: "skip-disk",
297
+ type: "boolean"
298
+ },
299
+ title: {
300
+ description: `Title Case title for the repository to be used in
301
+ documentation (e.g. Create TypeScript App)`,
302
+ docsSection: "core",
303
+ type: "string"
304
+ }
47
305
  };
48
306
  export {
49
307
  allArgOptions
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/options/args.ts"],"sourcesContent":["import { ParseArgsConfig } from \"node:util\";\n\nexport const allArgOptions = {\n\taccess: { type: \"string\" },\n\tauthor: { type: \"string\" },\n\tbase: { type: \"string\" },\n\tdescription: { type: \"string\" },\n\tdirectory: { type: \"string\" },\n\temail: { type: \"string\" },\n\t\"email-github\": { type: \"string\" },\n\t\"email-npm\": { type: \"string\" },\n\t\"exclude-all-contributors\": { type: \"boolean\" },\n\t\"exclude-compliance\": { type: \"boolean\" },\n\t\"exclude-lint-deprecation\": { type: \"boolean\" },\n\t\"exclude-lint-eslint\": { type: \"boolean\" },\n\t\"exclude-lint-jsdoc\": { type: \"boolean\" },\n\t\"exclude-lint-json\": { type: \"boolean\" },\n\t\"exclude-lint-knip\": { type: \"boolean\" },\n\t\"exclude-lint-md\": { type: \"boolean\" },\n\t\"exclude-lint-package-json\": { type: \"boolean\" },\n\t\"exclude-lint-packages\": { type: \"boolean\" },\n\t\"exclude-lint-perfectionist\": { type: \"boolean\" },\n\t\"exclude-lint-regex\": { type: \"boolean\" },\n\t\"exclude-lint-spelling\": { type: \"boolean\" },\n\t\"exclude-lint-strict\": { type: \"boolean\" },\n\t\"exclude-lint-stylistic\": { type: \"boolean\" },\n\t\"exclude-lint-yml\": { type: \"boolean\" },\n\t\"exclude-releases\": { type: \"boolean\" },\n\t\"exclude-renovate\": { type: \"boolean\" },\n\t\"exclude-tests\": { type: \"boolean\" },\n\tfunding: { type: \"string\" },\n\tguide: { type: \"string\" },\n\t\"guide-title\": { type: \"string\" },\n\tkeywords: { multiple: true, type: \"string\" },\n\tlogo: { type: \"string\" },\n\t\"logo-alt\": { type: \"string\" },\n\tmode: { type: \"string\" },\n\toffline: { type: \"boolean\" },\n\towner: { type: \"string\" },\n\t\"preserve-generated-from\": { type: \"boolean\" },\n\trepository: { type: \"string\" },\n\t\"skip-all-contributors-api\": { type: \"boolean\" },\n\t\"skip-github-api\": { type: \"boolean\" },\n\t\"skip-install\": { type: \"boolean\" },\n\t\"skip-removal\": { type: \"boolean\" },\n\t\"skip-restore\": { type: \"boolean\" },\n\t\"skip-uninstall\": { type: \"boolean\" },\n\ttitle: { type: \"string\" },\n} as const satisfies ParseArgsConfig[\"options\"];\n"],"mappings":"AAEO,MAAM,gBAAgB;AAAA,EAC5B,QAAQ,EAAE,MAAM,SAAS;AAAA,EACzB,QAAQ,EAAE,MAAM,SAAS;AAAA,EACzB,MAAM,EAAE,MAAM,SAAS;AAAA,EACvB,aAAa,EAAE,MAAM,SAAS;AAAA,EAC9B,WAAW,EAAE,MAAM,SAAS;AAAA,EAC5B,OAAO,EAAE,MAAM,SAAS;AAAA,EACxB,gBAAgB,EAAE,MAAM,SAAS;AAAA,EACjC,aAAa,EAAE,MAAM,SAAS;AAAA,EAC9B,4BAA4B,EAAE,MAAM,UAAU;AAAA,EA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,EAClC,gBAAgB,EAAE,MAAM,UAAU;AAAA,EAClC,gBAAgB,EAAE,MAAM,UAAU;AAAA,EAClC,kBAAkB,EAAE,MAAM,UAAU;AAAA,EACpC,OAAO,EAAE,MAAM,SAAS;AACzB;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/options/args.ts"],"sourcesContent":["import chalk from \"chalk\";\n\nexport const allArgOptions = {\n\taccess: {\n\t\tdescription: `(${chalk.cyanBright(\n\t\t\t'\"public\" | \"restricted\"',\n\t\t)}): Which ${chalk.cyanBright(\"npm publish --access\")} to \n release npm packages with (by default, \"public\")`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\tauthor: {\n\t\tdescription: `Username on npm to publish packages under (by \n default, an existing npm author, or the currently logged in npm user, or \n ${chalk.cyanBright(\"owner.toLowerCase()\")})`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\tbase: {\n\t\tdescription: `Whether to scaffold the repository with:\n • everything: that comes with the template (${chalk.cyanBright.bold(\n\t\t\"recommended\",\n\t)})\n • minimum: amounts of tooling, essentially opting out of everything\n • prompt: for which portions to exclude`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"string\",\n\t},\n\t\"create-repository\": {\n\t\tdescription: `Whether to create a corresponding repository on github.com \n (if it doesn't yet exist)`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"boolean\",\n\t},\n\tdescription: {\n\t\tdescription: `Sentence case description of the repository \n (e.g. A quickstart-friendly TypeScript package with lots of great \n repository tooling. ✨)`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"string\",\n\t},\n\tdirectory: {\n\t\tdescription: `Directory to create the repository in (by default, the same \n name as the repository)`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\temail: {\n\t\tdescription: `Email address to be listed as the point of contact in docs \n and packages (e.g. example@joshuakgoldberg.com)`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\t\"email-github\": {\n\t\tdescription: `Optionally, may be provided to use different emails in ${chalk.cyanBright(\n\t\t\t\".md\",\n\t\t)} \n files`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\t\"email-npm\": {\n\t\tdescription: `Optionally, may be provided to use different emails in \n ${chalk.cyanBright(\"package.json\")}`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\t\"exclude-all-contributors\": {\n\t\tdescription: `Don't add all-contributors to track contributions \n and display them in a README.md table.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-compliance\": {\n\t\tdescription: `Don't add a GitHub Actions workflow to verify that PRs match \n an expected format.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-deprecation\": {\n\t\tdescription: `Don't use eslint-plugin-deprecation to report on usage \n of code marked as ${chalk.cyanBright(\"@deprecated\")}.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-jsdoc\": {\n\t\tdescription: `Don't use eslint-plugin-jsdoc to enforce good practices around \n JSDoc comments.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-json\": {\n\t\tdescription: `Don't apply linting and sorting to ${chalk.cyanBright(\n\t\t\t\"*.json\",\n\t\t)}, and \n ${chalk.cyanBright(\"*.jsonc\")} files.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-knip\": {\n\t\tdescription: `Don't add Knip to detect unused files, dependencies, and code \n exports.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-md\": {\n\t\tdescription: `Don't apply linting to ${chalk.cyanBright(\"*.md\")} files.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-package-json\": {\n\t\tdescription: `Don't add npm-package-json-lint to lint for \n package.json correctness.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-packages\": {\n\t\tdescription: `Don't add a pnpm dedupe workflow to ensure packages \n aren't duplicated unnecessarily.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-perfectionist\": {\n\t\tdescription: `Don't apply eslint-plugin-perfectionist to ensure \n imports, keys, and so on are in sorted order.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-regex\": {\n\t\tdescription: `Don't add eslint-plugin-regex to enforce good practices around \n regular expressions.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-spelling\": {\n\t\tdescription: `Don't add cspell to spell check against dictionaries \n of known words.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-strict\": {\n\t\tdescription: `Don't augment the recommended logical lint rules with \n typescript-eslint's strict config.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-stylistic\": {\n\t\tdescription: `Don't add stylistic rules such as typescript-eslint's \n stylistic config.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-lint-yml\": {\n\t\tdescription: `Don't apply linting and sorting to ${chalk.cyanBright(\n\t\t\t\"*.yaml\",\n\t\t)} and ${chalk.cyanBright(\"*.yml\")} files.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-releases\": {\n\t\tdescription: `Don't add release-it to generate changelogs, package bumps, \n and publishes based on conventional commits.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-renovate\": {\n\t\tdescription: `Don't add a Renovate config to dependencies up-to-date with \n PRs.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\t\"exclude-tests\": {\n\t\tdescription: `Don't add Vitest tooling for fast unit tests, configured \n with coverage tracking.`,\n\t\tdocsSection: \"opt-out\",\n\t\ttype: \"boolean\",\n\t},\n\tfunding: {\n\t\tdescription: `GitHub organization or username to mention in ${chalk.cyanBright(\n\t\t\t\"funding.yml\",\n\t\t)} \n (by default, owner)`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\tguide: {\n\t\tdescription: `Link to a contribution guide to place at the top of the \n development docs`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\t\"guide-title\": {\n\t\tdescription: `If ${chalk.cyanBright(\n\t\t\t\"--guide\",\n\t\t)} is provided or detected from an existing \n DEVELOPMENT.md, the text title to place in the guide link`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\tkeywords: {\n\t\tdescription: `Any number of keywords to include in ${chalk.cyanBright(\n\t\t\t\"package.json\",\n\t\t)} (by default, \n none). This can be specified any number of times, like \n ${chalk.cyanBright('--keywords apple --keywords \"banana cherry\"')}`,\n\t\tdocsSection: \"optional\",\n\t\tmultiple: true,\n\t\ttype: \"string\",\n\t},\n\tlogo: {\n\t\tdescription: `Local image file in the repository to display near the top of \n the README.md as a logo`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\t\"logo-alt\": {\n\t\tdescription: `If ${chalk.cyanBright(\n\t\t\t\"--logo\",\n\t\t)} is provided or detected from an existing README.md, \n alt text that describes the image will be prompted for if not provided`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"string\",\n\t},\n\tmode: {\n\t\tdescription: `Whether to:\n • create: a new repository in a child directory\n • initialize: a freshly repository in the current directory\n • migrate: an existing repository in the current directory`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"string\",\n\t},\n\toffline: {\n\t\tdescription: `You can run ${chalk.cyanBright(\n\t\t\t\"create-typescript-app\",\n\t\t)} in an \"offline\" mode. \n Doing so will:\n • Enable ${chalk.cyanBright(\n\t\t\"--exclude-all-contributors-api\",\n\t)} and ${chalk.cyanBright(\"--skip-github-api\")}\n • Skip network calls when setting up contributors\n • Run pnpm commands with pnpm's ${chalk.cyanBright(\"--offline\")} mode`,\n\t\tdocsSection: \"offline\",\n\t\ttype: \"boolean\",\n\t},\n\towner: {\n\t\tdescription: `GitHub organization or user the repository is underneath \n (e.g. JoshuaKGoldberg)`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"string\",\n\t},\n\t\"preserve-generated-form\": {\n\t\tdescription: `Whether to keep the GitHub repository generated from \n notice (by default, false)`,\n\t\tdocsSection: \"optional\",\n\t\ttype: \"boolean\",\n\t},\n\trepository: {\n\t\tdescription: `The kebab-case name of the repository \n (e.g. create-typescript-app)`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"string\",\n\t},\n\t\"skip-all-contributors-api\": {\n\t\tdescription: `Skips network calls that fetch all-contributors data from\n GitHub. This flag does nothing if ${chalk.cyanBright(\n\t\t\"--exclude-all-contributors\",\n\t)} was specified.`,\n\t\tdocsSection: \"skip-net\",\n\t\ttype: \"boolean\",\n\t},\n\t\"skip-github-api\": {\n\t\tdescription: `Skips calling to GitHub APIs.`,\n\t\tdocsSection: \"skip-net\",\n\t\ttype: \"boolean\",\n\t},\n\t\"skip-install\": {\n\t\tdescription: `Skips installing all the new template packages with pnpm.`,\n\t\tdocsSection: \"skip-net\",\n\t\ttype: \"boolean\",\n\t},\n\t\"skip-removal\": {\n\t\tdescription: `Skips removing setup docs and scripts, including this ${chalk.cyanBright(\n\t\t\t\"docs/\",\n\t\t)} \n directory`,\n\t\tdocsSection: \"skip-disk\",\n\t\ttype: \"boolean\",\n\t},\n\t\"skip-restore\": {\n\t\tdescription: `Skips the prompt offering to restore the repository if an \n error occurs during setup`,\n\t\tdocsSection: \"skip-disk\",\n\t\ttype: \"boolean\",\n\t},\n\t\"skip-uninstall\": {\n\t\tdescription: `Skips uninstalling packages only used for setup scripts`,\n\t\tdocsSection: \"skip-disk\",\n\t\ttype: \"boolean\",\n\t},\n\ttitle: {\n\t\tdescription: `Title Case title for the repository to be used in \n documentation (e.g. Create TypeScript App)`,\n\t\tdocsSection: \"core\",\n\t\ttype: \"string\",\n\t},\n} as const;\n"],"mappings":"AAAA,OAAO,WAAW;AAEX,MAAM,gBAAgB;AAAA,EAC5B,QAAQ;AAAA,IACP,aAAa,IAAI,MAAM;AAAA,MACtB;AAAA,IACD,CAAC,YAAY,MAAM,WAAW,sBAAsB,CAAC;AAAA;AAAA,IAErD,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,QAAQ;AAAA,IACP,aAAa;AAAA;AAAA,IAEX,MAAM,WAAW,qBAAqB,CAAC;AAAA,IACzC,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,MAAM;AAAA,IACL,aAAa;AAAA,qDACiC,MAAM,WAAW;AAAA,MAC/D;AAAA,IACD,CAAC;AAAA;AAAA;AAAA,IAGA,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,qBAAqB;AAAA,IACpB,aAAa;AAAA;AAAA,IAEb,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,aAAa;AAAA,IACZ,aAAa;AAAA;AAAA;AAAA,IAGb,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,WAAW;AAAA,IACV,aAAa;AAAA;AAAA,IAEb,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,OAAO;AAAA,IACN,aAAa;AAAA;AAAA,IAEb,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,gBAAgB;AAAA,IACf,aAAa,0DAA0D,MAAM;AAAA,MAC5E;AAAA,IACD,CAAC;AAAA;AAAA,IAED,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,aAAa;AAAA,IACZ,aAAa;AAAA,IACX,MAAM,WAAW,cAAc,CAAC;AAAA,IAClC,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,4BA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ACb,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AAAA,EACA,OAAO;AAAA,IACN,aAAa;AAAA;AAAA,IAEb,aAAa;AAAA,IACb,MAAM;AAAA,EACP;AACD;","names":[]}
@@ -1,3 +1,3 @@
1
- declare function readFileSafe(filePath: string, fallback: string): Promise<string>;
1
+ declare function readFileSafe(filePath: URL | string, fallback: string): Promise<string>;
2
2
 
3
3
  export { readFileSafe };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shared/readFileSafe.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\n\nexport async function readFileSafe(filePath: string, fallback: string) {\n\ttry {\n\t\treturn (await fs.readFile(filePath)).toString();\n\t} catch {\n\t\treturn fallback;\n\t}\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AAEf,eAAsB,aAAa,UAAkB,UAAkB;AACtE,MAAI;AACH,YAAQ,MAAM,GAAG,SAAS,QAAQ,GAAG,SAAS;AAAA,EAC/C,QAAQ;AACP,WAAO;AAAA,EACR;AACD;","names":[]}
1
+ {"version":3,"sources":["../../src/shared/readFileSafe.ts"],"sourcesContent":["import fs from \"node:fs/promises\";\n\nexport async function readFileSafe(filePath: URL | string, fallback: string) {\n\ttry {\n\t\treturn (await fs.readFile(filePath)).toString();\n\t} catch {\n\t\treturn fallback;\n\t}\n}\n"],"mappings":"AAAA,OAAO,QAAQ;AAEf,eAAsB,aAAa,UAAwB,UAAkB;AAC5E,MAAI;AACH,YAAQ,MAAM,GAAG,SAAS,QAAQ,GAAG,SAAS;AAAA,EAC/C,QAAQ;AACP,WAAO;AAAA,EACR;AACD;","names":[]}
@@ -1,3 +1,3 @@
1
- declare function readFileSafeAsJson(filePath: string): Promise<unknown>;
1
+ declare function readFileSafeAsJson(filePath: URL | string): Promise<unknown>;
2
2
 
3
3
  export { readFileSafeAsJson };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shared/readFileSafeAsJson.ts"],"sourcesContent":["import { readFileSafe } from \"./readFileSafe.js\";\n\nexport async function readFileSafeAsJson(filePath: string) {\n\treturn JSON.parse(await readFileSafe(filePath, \"null\")) as unknown;\n}\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,eAAsB,mBAAmB,UAAkB;AAC1D,SAAO,KAAK,MAAM,MAAM,aAAa,UAAU,MAAM,CAAC;AACvD;","names":[]}
1
+ {"version":3,"sources":["../../src/shared/readFileSafeAsJson.ts"],"sourcesContent":["import { readFileSafe } from \"./readFileSafe.js\";\n\nexport async function readFileSafeAsJson(filePath: URL | string) {\n\treturn JSON.parse(await readFileSafe(filePath, \"null\")) as unknown;\n}\n"],"mappings":"AAAA,SAAS,oBAAoB;AAE7B,eAAsB,mBAAmB,UAAwB;AAChE,SAAO,KAAK,MAAM,MAAM,aAAa,UAAU,MAAM,CAAC;AACvD;","names":[]}
@@ -2,6 +2,6 @@ interface RunOrRestoreOptions {
2
2
  run: () => Promise<void>;
3
3
  skipRestore: boolean | undefined;
4
4
  }
5
- declare function runOrRestore({ run, skipRestore }: RunOrRestoreOptions): Promise<2 | 0>;
5
+ declare function runOrRestore({ run, skipRestore }: RunOrRestoreOptions): Promise<0 | 2>;
6
6
 
7
7
  export { RunOrRestoreOptions, runOrRestore };
@@ -102,7 +102,6 @@ echo "See https://github.com/actions-ecosystem/action-remove-labels/issues/221."
102
102
  },
103
103
  steps: [
104
104
  {
105
- if: "${{ github.event.issue || github.event.pull_request }}",
106
105
  uses: "github/accessibility-alt-text-bot@v1.4.0"
107
106
  }
108
107
  ]
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/createWorkflows.ts"],"sourcesContent":["/* spellchecker: disable */\nimport { Options } from \"../../../../shared/types.js\";\nimport { createWorkflowFile } from \"./createWorkflowFile.js\";\n\nexport function createWorkflows(options: Options) {\n\treturn {\n\t\t\"build.yml\": createWorkflowFile({\n\t\t\tname: \"Build\",\n\t\t\truns: [\"pnpm build\", \"node ./lib/index.js\"],\n\t\t}),\n\t\t\"pr-review-requested.yml\": createWorkflowFile({\n\t\t\tname: \"PR Review Requested\",\n\t\t\ton: {\n\t\t\t\tpull_request_target: {\n\t\t\t\t\ttypes: [\"review_requested\"],\n\t\t\t\t},\n\t\t\t},\n\t\t\tpermissions: {\n\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t},\n\t\t\tsteps: [\n\t\t\t\t{\n\t\t\t\t\tuses: \"actions-ecosystem/action-remove-labels@v1\",\n\t\t\t\t\twith: {\n\t\t\t\t\t\tlabels: \"status: waiting for author\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tif: \"failure()\",\n\t\t\t\t\trun: 'echo \"Don\\'t worry if the previous step failed.\"\\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\\n',\n\t\t\t\t},\n\t\t\t],\n\t\t}),\n\t\t\"prettier.yml\": createWorkflowFile({\n\t\t\tname: \"Prettier\",\n\t\t\truns: [\"pnpm format --list-different\"],\n\t\t}),\n\t\t\"tsc.yml\": createWorkflowFile({\n\t\t\tname: \"Type Check\",\n\t\t\truns: [\"pnpm tsc\"],\n\t\t}),\n\t\t...(!options.excludeCompliance && {\n\t\t\t\"compliance.yml\": createWorkflowFile({\n\t\t\t\tname: \"Compliance\",\n\t\t\t\ton: {\n\t\t\t\t\tpull_request: {\n\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\ttypes: [\"edited\", \"opened\", \"reopened\", \"synchronize\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpermissions: {\n\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"mtfoley/pr-compliance-action@main\",\n\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\"body-auto-close\": false,\n\t\t\t\t\t\t\t\"ignore-authors\":\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t...(options.excludeAllContributors\n\t\t\t\t\t\t\t\t\t\t? []\n\t\t\t\t\t\t\t\t\t\t: [\"allcontributors\", \"allcontributors[bot]\"]),\n\t\t\t\t\t\t\t\t\t...(options.excludeRenovate\n\t\t\t\t\t\t\t\t\t\t? []\n\t\t\t\t\t\t\t\t\t\t: [\"renovate\", \"renovate[bot]\"]),\n\t\t\t\t\t\t\t\t].join(\"\\n\") || undefined,\n\t\t\t\t\t\t\t\"ignore-team-members\": false,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeAllContributors && {\n\t\t\t\"contributors.yml\": createWorkflowFile({\n\t\t\t\tname: \"Contributors\",\n\t\t\t\ton: {\n\t\t\t\t\tpush: {\n\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t{\n\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.3.2`,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t\t\"accessibility-alt-text-bot.yml\": createWorkflowFile({\n\t\t\tname: \"Accessibility Alt Text Bot\",\n\t\t\ton: {\n\t\t\t\tissue_comment: {\n\t\t\t\t\ttypes: [\"created\", \"edited\"],\n\t\t\t\t},\n\t\t\t\tissues: {\n\t\t\t\t\ttypes: [\"edited\", \"opened\"],\n\t\t\t\t},\n\t\t\t\tpull_request: {\n\t\t\t\t\ttypes: [\"edited\", \"opened\"],\n\t\t\t\t},\n\t\t\t},\n\t\t\tpermissions: {\n\t\t\t\tissues: \"write\",\n\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t},\n\t\t\tsteps: [\n\t\t\t\t{\n\t\t\t\t\tif: \"${{ github.event.issue || github.event.pull_request }}\",\n\t\t\t\t\tuses: \"github/accessibility-alt-text-bot@v1.4.0\",\n\t\t\t\t},\n\t\t\t],\n\t\t}),\n\t\t\"lint.yml\": createWorkflowFile({\n\t\t\tname: \"Lint\",\n\t\t\truns: [\"pnpm build || true\", \"pnpm lint\"],\n\t\t}),\n\t\t...(!options.excludeLintKnip && {\n\t\t\t\"lint-knip.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Knip\",\n\t\t\t\truns: [\"pnpm lint:knip\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintMd && {\n\t\t\t\"lint-markdown.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Markdown\",\n\t\t\t\truns: [\"pnpm lint:md\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintPackageJson && {\n\t\t\t\"lint-package-json.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Package JSON\",\n\t\t\t\truns: [\"pnpm lint:package-json\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintPackages && {\n\t\t\t\"lint-packages.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Packages\",\n\t\t\t\truns: [\"pnpm lint:packages\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintSpelling && {\n\t\t\t\"lint-spelling.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint spelling\",\n\t\t\t\truns: [\"pnpm lint:spelling\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeReleases && {\n\t\t\t\"post-release.yml\": createWorkflowFile({\n\t\t\t\tname: \"Post Release\",\n\t\t\t\ton: {\n\t\t\t\t\trelease: {\n\t\t\t\t\t\ttypes: [\"published\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t{\n\t\t\t\t\t\trun: `echo \"npm_version=$(npm pkg get version | tr -d '\"')\" >> \"$GITHUB_ENV\"`,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"apexskier/github-release-commenter@v1\",\n\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\",\n\t\t\t\t\t\t\t\"comment-template\": `\n\t\t\t\t\t\t\t:tada: This is included in version {release_link} :tada:\n\n\t\t\t\t\t\t\tThe release is available on:\n\n\t\t\t\t\t\t\t* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})\n\t\t\t\t\t\t\t* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/\\${{ env.npm_version }})\n\n\t\t\t\t\t\t\tCheers! 📦🚀\n\t\t\t\t\t\t`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t\t\"release.yml\": createWorkflowFile({\n\t\t\t\tconcurrency: {\n\t\t\t\t\tgroup: \"${{ github.workflow }}\",\n\t\t\t\t},\n\t\t\t\tname: \"Release\",\n\t\t\t\ton: {\n\t\t\t\t\tpush: {\n\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpermissions: {\n\t\t\t\t\tcontents: \"write\",\n\t\t\t\t\t\"id-token\": \"write\",\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"actions/checkout@v4\",\n\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\"fetch-depth\": 0,\n\t\t\t\t\t\t\tref: \"main\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"./.github/actions/prepare\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\trun: \"pnpm build\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\tNPM_TOKEN: \"${{ secrets.NPM_TOKEN }}\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tuses: \"JoshuaKGoldberg/release-it-action@v0.2.2\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeTests && {\n\t\t\t\"test.yml\": createWorkflowFile({\n\t\t\t\tname: \"Test\",\n\t\t\t\tsteps: [\n\t\t\t\t\t{ uses: \"actions/checkout@v4\" },\n\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t{ run: \"pnpm run test --coverage\" },\n\t\t\t\t\t{\n\t\t\t\t\t\tname: \"Codecov\",\n\t\t\t\t\t\tuses: \"codecov/codecov-action@v3\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t};\n}\n"],"mappings":"AAEA,SAAS,0BAA0B;AAE5B,SAAS,gBAAgB,SAAkB;AACjD,SAAO;AAAA,IACN,aAAa,mBAAmB;AAAA,MAC/B,MAAM;AAAA,MACN,MAAM,CAAC,cAAc,qBAAqB;AAAA,IAC3C,CAAC;AAAA,IACD,2BAA2B,mBAAmB;AAAA,MAC7C,MAAM;AAAA,MACN,IAAI;AAAA,QACH,qBAAqB;AAAA,UACpB,OAAO,CAAC,kBAAkB;AAAA,QAC3B;AAAA,MACD;AAAA,MACA,aAAa;AAAA,QACZ,iBAAiB;AAAA,MAClB;AAAA,MACA,OAAO;AAAA,QACN;AAAA,UACC,MAAM;AAAA,UACN,MAAM;AAAA,YACL,QAAQ;AAAA,UACT;AAAA,QACD;AAAA,QACA;AAAA,UACC,IAAI;AAAA,UACJ,KAAK;AAAA;AAAA;AAAA,QACN;AAAA,MACD;AAAA,IACD,CAAC;AAAA,IACD,gBAAgB,mBAAmB;AAAA,MAClC,MAAM;AAAA,MACN,MAAM,CAAC,8BAA8B;AAAA,IACtC,CAAC;A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AAA,YACC,MAAM;AAAA,YACN,MAAM;AAAA,UACP;AAAA,QACD;AAAA,MACD,CAAC;AAAA,IACF;AAAA,EACD;AACD;","names":[]}
1
+ {"version":3,"sources":["../../../../../src/steps/writing/creation/dotGitHub/createWorkflows.ts"],"sourcesContent":["/* spellchecker: disable */\nimport { Options } from \"../../../../shared/types.js\";\nimport { createWorkflowFile } from \"./createWorkflowFile.js\";\n\nexport function createWorkflows(options: Options) {\n\treturn {\n\t\t\"build.yml\": createWorkflowFile({\n\t\t\tname: \"Build\",\n\t\t\truns: [\"pnpm build\", \"node ./lib/index.js\"],\n\t\t}),\n\t\t\"pr-review-requested.yml\": createWorkflowFile({\n\t\t\tname: \"PR Review Requested\",\n\t\t\ton: {\n\t\t\t\tpull_request_target: {\n\t\t\t\t\ttypes: [\"review_requested\"],\n\t\t\t\t},\n\t\t\t},\n\t\t\tpermissions: {\n\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t},\n\t\t\tsteps: [\n\t\t\t\t{\n\t\t\t\t\tuses: \"actions-ecosystem/action-remove-labels@v1\",\n\t\t\t\t\twith: {\n\t\t\t\t\t\tlabels: \"status: waiting for author\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tif: \"failure()\",\n\t\t\t\t\trun: 'echo \"Don\\'t worry if the previous step failed.\"\\necho \"See https://github.com/actions-ecosystem/action-remove-labels/issues/221.\"\\n',\n\t\t\t\t},\n\t\t\t],\n\t\t}),\n\t\t\"prettier.yml\": createWorkflowFile({\n\t\t\tname: \"Prettier\",\n\t\t\truns: [\"pnpm format --list-different\"],\n\t\t}),\n\t\t\"tsc.yml\": createWorkflowFile({\n\t\t\tname: \"Type Check\",\n\t\t\truns: [\"pnpm tsc\"],\n\t\t}),\n\t\t...(!options.excludeCompliance && {\n\t\t\t\"compliance.yml\": createWorkflowFile({\n\t\t\t\tname: \"Compliance\",\n\t\t\t\ton: {\n\t\t\t\t\tpull_request: {\n\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t\ttypes: [\"edited\", \"opened\", \"reopened\", \"synchronize\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpermissions: {\n\t\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"mtfoley/pr-compliance-action@main\",\n\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\"body-auto-close\": false,\n\t\t\t\t\t\t\t\"ignore-authors\":\n\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t...(options.excludeAllContributors\n\t\t\t\t\t\t\t\t\t\t? []\n\t\t\t\t\t\t\t\t\t\t: [\"allcontributors\", \"allcontributors[bot]\"]),\n\t\t\t\t\t\t\t\t\t...(options.excludeRenovate\n\t\t\t\t\t\t\t\t\t\t? []\n\t\t\t\t\t\t\t\t\t\t: [\"renovate\", \"renovate[bot]\"]),\n\t\t\t\t\t\t\t\t].join(\"\\n\") || undefined,\n\t\t\t\t\t\t\t\"ignore-team-members\": false,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeAllContributors && {\n\t\t\t\"contributors.yml\": createWorkflowFile({\n\t\t\t\tname: \"Contributors\",\n\t\t\t\ton: {\n\t\t\t\t\tpush: {\n\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t{\n\t\t\t\t\t\tenv: { GITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\" },\n\t\t\t\t\t\tuses: `JoshuaKGoldberg/all-contributors-auto-action@v0.3.2`,\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t\t\"accessibility-alt-text-bot.yml\": createWorkflowFile({\n\t\t\tname: \"Accessibility Alt Text Bot\",\n\t\t\ton: {\n\t\t\t\tissue_comment: {\n\t\t\t\t\ttypes: [\"created\", \"edited\"],\n\t\t\t\t},\n\t\t\t\tissues: {\n\t\t\t\t\ttypes: [\"edited\", \"opened\"],\n\t\t\t\t},\n\t\t\t\tpull_request: {\n\t\t\t\t\ttypes: [\"edited\", \"opened\"],\n\t\t\t\t},\n\t\t\t},\n\t\t\tpermissions: {\n\t\t\t\tissues: \"write\",\n\t\t\t\t\"pull-requests\": \"write\",\n\t\t\t},\n\t\t\tsteps: [\n\t\t\t\t{\n\t\t\t\t\tuses: \"github/accessibility-alt-text-bot@v1.4.0\",\n\t\t\t\t},\n\t\t\t],\n\t\t}),\n\t\t\"lint.yml\": createWorkflowFile({\n\t\t\tname: \"Lint\",\n\t\t\truns: [\"pnpm build || true\", \"pnpm lint\"],\n\t\t}),\n\t\t...(!options.excludeLintKnip && {\n\t\t\t\"lint-knip.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Knip\",\n\t\t\t\truns: [\"pnpm lint:knip\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintMd && {\n\t\t\t\"lint-markdown.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Markdown\",\n\t\t\t\truns: [\"pnpm lint:md\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintPackageJson && {\n\t\t\t\"lint-package-json.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Package JSON\",\n\t\t\t\truns: [\"pnpm lint:package-json\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintPackages && {\n\t\t\t\"lint-packages.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint Packages\",\n\t\t\t\truns: [\"pnpm lint:packages\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeLintSpelling && {\n\t\t\t\"lint-spelling.yml\": createWorkflowFile({\n\t\t\t\tname: \"Lint spelling\",\n\t\t\t\truns: [\"pnpm lint:spelling\"],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeReleases && {\n\t\t\t\"post-release.yml\": createWorkflowFile({\n\t\t\t\tname: \"Post Release\",\n\t\t\t\ton: {\n\t\t\t\t\trelease: {\n\t\t\t\t\t\ttypes: [\"published\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{ uses: \"actions/checkout@v4\", with: { \"fetch-depth\": 0 } },\n\t\t\t\t\t{\n\t\t\t\t\t\trun: `echo \"npm_version=$(npm pkg get version | tr -d '\"')\" >> \"$GITHUB_ENV\"`,\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"apexskier/github-release-commenter@v1\",\n\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.GITHUB_TOKEN }}\",\n\t\t\t\t\t\t\t\"comment-template\": `\n\t\t\t\t\t\t\t:tada: This is included in version {release_link} :tada:\n\n\t\t\t\t\t\t\tThe release is available on:\n\n\t\t\t\t\t\t\t* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})\n\t\t\t\t\t\t\t* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/\\${{ env.npm_version }})\n\n\t\t\t\t\t\t\tCheers! 📦🚀\n\t\t\t\t\t\t`,\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t\t\"release.yml\": createWorkflowFile({\n\t\t\t\tconcurrency: {\n\t\t\t\t\tgroup: \"${{ github.workflow }}\",\n\t\t\t\t},\n\t\t\t\tname: \"Release\",\n\t\t\t\ton: {\n\t\t\t\t\tpush: {\n\t\t\t\t\t\tbranches: [\"main\"],\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tpermissions: {\n\t\t\t\t\tcontents: \"write\",\n\t\t\t\t\t\"id-token\": \"write\",\n\t\t\t\t},\n\t\t\t\tsteps: [\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"actions/checkout@v4\",\n\t\t\t\t\t\twith: {\n\t\t\t\t\t\t\t\"fetch-depth\": 0,\n\t\t\t\t\t\t\tref: \"main\",\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tuses: \"./.github/actions/prepare\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\trun: \"pnpm build\",\n\t\t\t\t\t},\n\t\t\t\t\t{\n\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\tGITHUB_TOKEN: \"${{ secrets.ACCESS_TOKEN }}\",\n\t\t\t\t\t\t\tNPM_TOKEN: \"${{ secrets.NPM_TOKEN }}\",\n\t\t\t\t\t\t},\n\t\t\t\t\t\tuses: \"JoshuaKGoldberg/release-it-action@v0.2.2\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t\t...(!options.excludeTests && {\n\t\t\t\"test.yml\": createWorkflowFile({\n\t\t\t\tname: \"Test\",\n\t\t\t\tsteps: [\n\t\t\t\t\t{ uses: \"actions/checkout@v4\" },\n\t\t\t\t\t{ uses: \"./.github/actions/prepare\" },\n\t\t\t\t\t{ run: \"pnpm run test --coverage\" },\n\t\t\t\t\t{\n\t\t\t\t\t\tname: \"Codecov\",\n\t\t\t\t\t\tuses: \"codecov/codecov-action@v3\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t}),\n\t\t}),\n\t};\n}\n"],"mappings":"AAEA,SAAS,0BAA0B;AAE5B,SAAS,gBAAgB,SAAkB;AACjD,SAAO;AAAA,IACN,aAAa,mBAAmB;AAAA,MAC/B,MAAM;AAAA,MACN,MAAM,CAAC,cAAc,qBAAqB;AAAA,IAC3C,CAAC;AAAA,IACD,2BAA2B,mBAAmB;AAAA,MAC7C,MAAM;AAAA,MACN,IAAI;AAAA,QACH,qBAAqB;AAAA,UACpB,OAAO,CAAC,kBAAkB;AAAA,QAC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A,YACC,KAAK;AAAA,cACJ,cAAc;AAAA,cACd,WAAW;AAAA,YACZ;AAAA,YACA,MAAM;AAAA,UACP;AAAA,QACD;AAAA,MACD,CAAC;AAAA,IACF;AAAA,IACA,GAAI,CAAC,QAAQ,gBAAgB;AAAA,MAC5B,YAAY,mBAAmB;AAAA,QAC9B,MAAM;AAAA,QACN,OAAO;AAAA,UACN,EAAE,MAAM,sBAAsB;AAAA,UAC9B,EAAE,MAAM,4BAA4B;AAAA,UACpC,EAAE,KAAK,2BAA2B;AAAA,UAClC;AAAA,YACC,MAAM;AAAA,YACN,MAAM;AAAA,UACP;AAAA,QACD;AAAA,MACD,CAAC;AAAA,IACF;AAAA,EACD;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "1.42.1",
3
+ "version": "1.43.0",
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
  "globby": "^13.2.2",
91
91
  "husky": "^8.0.3",
92
92
  "jsonc-eslint-parser": "^2.3.0",
93
- "knip": "2.38.4",
93
+ "knip": "2.39.0",
94
94
  "lint-staged": "^15.0.0",
95
95
  "markdownlint": "^0.31.0",
96
96
  "markdownlint-cli": "^0.37.0",
@@ -107,7 +107,7 @@
107
107
  "vitest": "^0.34.3",
108
108
  "yaml-eslint-parser": "^1.2.2"
109
109
  },
110
- "packageManager": "pnpm@8.10.0",
110
+ "packageManager": "pnpm@8.10.2",
111
111
  "engines": {
112
112
  "node": ">=18"
113
113
  },