create-typescript-app 1.43.1 → 1.43.3

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.
@@ -20,27 +20,28 @@ async function withSpinners(label, tasks) {
20
20
  logNewSection(`${label}...`);
21
21
  let currentLabel;
22
22
  let lastLogged;
23
- try {
24
- for (const [label2, run] of tasks) {
25
- currentLabel = label2;
26
- const line = makeLine(chalk.gray(` - ${label2}`));
27
- const stopWriting = startLineWithDots(line);
23
+ for (const [label2, run] of tasks) {
24
+ currentLabel = label2;
25
+ const line = makeLine(chalk.gray(` - ${label2}`));
26
+ const stopWriting = startLineWithDots(line);
27
+ try {
28
28
  await run();
29
+ } catch (error) {
30
+ const descriptor = `${lowerFirst(label2)} > ${lowerFirst(currentLabel)}`;
31
+ logLine(chalk.red(`\u274C Error ${descriptor}.`));
32
+ throw new Error(`Failed ${descriptor}`, { cause: error });
33
+ } finally {
29
34
  const lineLength = stopWriting();
30
- lastLogged = chalk.gray(`${line} \u2714\uFE0F
31
- `);
32
35
  readline.clearLine(process.stdout, -1);
33
36
  readline.moveCursor(process.stdout, -lineLength, 0);
34
- process.stdout.write(lastLogged);
35
37
  }
36
- readline.moveCursor(process.stdout, -lastLogged.length, -tasks.length - 2);
37
- readline.clearScreenDown(process.stdout);
38
- logNewSection(chalk.green(`\u2705 Passed ${lowerFirst(label)}.`));
39
- } catch (error) {
40
- const descriptor = `${lowerFirst(label)} > ${lowerFirst(currentLabel)}`;
41
- logLine(chalk.red(`\u274C Error ${descriptor}.`));
42
- throw new Error(`Failed ${descriptor}`, { cause: error });
38
+ lastLogged = chalk.gray(`${line} \u2714\uFE0F
39
+ `);
40
+ process.stdout.write(lastLogged);
43
41
  }
42
+ readline.moveCursor(process.stdout, -lastLogged.length, -tasks.length - 2);
43
+ readline.clearScreenDown(process.stdout);
44
+ logNewSection(chalk.green(`\u2705 Passed ${lowerFirst(label)}.`));
44
45
  }
45
46
  export {
46
47
  withSpinner,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/cli/spinners.ts"],"sourcesContent":["import * as prompts from \"@clack/prompts\";\nimport chalk from \"chalk\";\nimport readline from \"readline\";\n\nimport { logLine, logNewSection, makeLine } from \"./lines.js\";\nimport { lowerFirst } from \"./lowerFirst.js\";\nimport { startLineWithDots } from \"./startLineWithDots.js\";\n\nconst s = prompts.spinner();\n\nexport type SpinnerTask<Return> = () => Promise<Return>;\n\nexport type LabeledSpinnerTask<Return> = [string, SpinnerTask<Return>];\n\nexport async function withSpinner<Return>(\n\tlabel: string,\n\ttask: SpinnerTask<Return>,\n) {\n\ts.start(`${label}...`);\n\n\ttry {\n\t\tconst result = await task();\n\n\t\ts.stop(chalk.green(`✅ Passed ${lowerFirst(label)}.`));\n\n\t\treturn result;\n\t} catch (error) {\n\t\ts.stop(chalk.red(`❌ Error ${lowerFirst(label)}.`));\n\n\t\tthrow new Error(`Failed ${lowerFirst(label)}`, { cause: error });\n\t}\n}\n\nexport async function withSpinners(\n\tlabel: string,\n\ttasks: LabeledSpinnerTask<void>[],\n) {\n\tlogNewSection(`${label}...`);\n\n\tlet currentLabel!: string;\n\tlet lastLogged!: string;\n\n\ttry {\n\t\tfor (const [label, run] of tasks) {\n\t\t\tcurrentLabel = label;\n\n\t\t\tconst line = makeLine(chalk.gray(` - ${label}`));\n\t\t\tconst stopWriting = startLineWithDots(line);\n\n\t\t\tawait run();\n\n\t\t\tconst lineLength = stopWriting();\n\t\t\tlastLogged = chalk.gray(`${line} ✔️\\n`);\n\n\t\t\treadline.clearLine(process.stdout, -1);\n\t\t\treadline.moveCursor(process.stdout, -lineLength, 0);\n\t\t\tprocess.stdout.write(lastLogged);\n\t\t}\n\n\t\treadline.moveCursor(process.stdout, -lastLogged.length, -tasks.length - 2);\n\t\treadline.clearScreenDown(process.stdout);\n\n\t\tlogNewSection(chalk.green(`✅ Passed ${lowerFirst(label)}.`));\n\t} catch (error) {\n\t\tconst descriptor = `${lowerFirst(label)} > ${lowerFirst(currentLabel)}`;\n\n\t\tlogLine(chalk.red(`❌ Error ${descriptor}.`));\n\n\t\tthrow new Error(`Failed ${descriptor}`, { cause: error });\n\t}\n}\n"],"mappings":"AAAA,YAAY,aAAa;AACzB,OAAO,WAAW;AAClB,OAAO,cAAc;AAErB,SAAS,SAAS,eAAe,gBAAgB;AACjD,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAElC,MAAM,IAAI,QAAQ,QAAQ;AAM1B,eAAsB,YACrB,OACA,MACC;AACD,IAAE,MAAM,GAAG,KAAK,KAAK;AAErB,MAAI;AACH,UAAM,SAAS,MAAM,KAAK;AAE1B,MAAE,KAAK,MAAM,MAAM,iBAAY,WAAW,KAAK,CAAC,GAAG,CAAC;AAEpD,WAAO;AAAA,EACR,SAAS,OAAO;AACf,MAAE,KAAK,MAAM,IAAI,gBAAW,WAAW,KAAK,CAAC,GAAG,CAAC;AAEjD,UAAM,IAAI,MAAM,UAAU,WAAW,KAAK,CAAC,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,EAChE;AACD;AAEA,eAAsB,aACrB,OACA,OACC;AACD,gBAAc,GAAG,KAAK,KAAK;AAE3B,MAAI;AACJ,MAAI;AAEJ,MAAI;AACH,eAAW,CAACA,QAAO,GAAG,KAAK,OAAO;AACjC,qBAAeA;AAEf,YAAM,OAAO,SAAS,MAAM,KAAK,MAAMA,MAAK,EAAE,CAAC;AAC/C,YAAM,cAAc,kBAAkB,IAAI;AAE1C,YAAM,IAAI;AAEV,YAAM,aAAa,YAAY;AAC/B,mBAAa,MAAM,KAAK,GAAG,IAAI;AAAA,CAAO;AAEtC,eAAS,UAAU,QAAQ,QAAQ,EAAE;AACrC,eAAS,WAAW,QAAQ,QAAQ,CAAC,YAAY,CAAC;AAClD,cAAQ,OAAO,MAAM,UAAU;AAAA,IAChC;AAEA,aAAS,WAAW,QAAQ,QAAQ,CAAC,WAAW,QAAQ,CAAC,MAAM,SAAS,CAAC;AACzE,aAAS,gBAAgB,QAAQ,MAAM;AAEvC,kBAAc,MAAM,MAAM,iBAAY,WAAW,KAAK,CAAC,GAAG,CAAC;AAAA,EAC5D,SAAS,OAAO;AACf,UAAM,aAAa,GAAG,WAAW,KAAK,CAAC,MAAM,WAAW,YAAY,CAAC;AAErE,YAAQ,MAAM,IAAI,gBAAW,UAAU,GAAG,CAAC;AAE3C,UAAM,IAAI,MAAM,UAAU,UAAU,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,EACzD;AACD;","names":["label"]}
1
+ {"version":3,"sources":["../../../src/shared/cli/spinners.ts"],"sourcesContent":["import * as prompts from \"@clack/prompts\";\nimport chalk from \"chalk\";\nimport readline from \"readline\";\n\nimport { logLine, logNewSection, makeLine } from \"./lines.js\";\nimport { lowerFirst } from \"./lowerFirst.js\";\nimport { startLineWithDots } from \"./startLineWithDots.js\";\n\nconst s = prompts.spinner();\n\nexport type SpinnerTask<Return> = () => Promise<Return>;\n\nexport type LabeledSpinnerTask<Return> = [string, SpinnerTask<Return>];\n\nexport async function withSpinner<Return>(\n\tlabel: string,\n\ttask: SpinnerTask<Return>,\n) {\n\ts.start(`${label}...`);\n\n\ttry {\n\t\tconst result = await task();\n\n\t\ts.stop(chalk.green(`✅ Passed ${lowerFirst(label)}.`));\n\n\t\treturn result;\n\t} catch (error) {\n\t\ts.stop(chalk.red(`❌ Error ${lowerFirst(label)}.`));\n\n\t\tthrow new Error(`Failed ${lowerFirst(label)}`, { cause: error });\n\t}\n}\n\nexport async function withSpinners(\n\tlabel: string,\n\ttasks: LabeledSpinnerTask<void>[],\n) {\n\tlogNewSection(`${label}...`);\n\n\tlet currentLabel!: string;\n\tlet lastLogged!: string;\n\n\tfor (const [label, run] of tasks) {\n\t\tcurrentLabel = label;\n\n\t\tconst line = makeLine(chalk.gray(` - ${label}`));\n\t\tconst stopWriting = startLineWithDots(line);\n\n\t\ttry {\n\t\t\tawait run();\n\t\t} catch (error) {\n\t\t\tconst descriptor = `${lowerFirst(label)} > ${lowerFirst(currentLabel)}`;\n\n\t\t\tlogLine(chalk.red(`❌ Error ${descriptor}.`));\n\n\t\t\tthrow new Error(`Failed ${descriptor}`, { cause: error });\n\t\t} finally {\n\t\t\tconst lineLength = stopWriting();\n\t\t\treadline.clearLine(process.stdout, -1);\n\t\t\treadline.moveCursor(process.stdout, -lineLength, 0);\n\t\t}\n\n\t\tlastLogged = chalk.gray(`${line} ✔️\\n`);\n\n\t\tprocess.stdout.write(lastLogged);\n\t}\n\n\treadline.moveCursor(process.stdout, -lastLogged.length, -tasks.length - 2);\n\treadline.clearScreenDown(process.stdout);\n\n\tlogNewSection(chalk.green(`✅ Passed ${lowerFirst(label)}.`));\n}\n"],"mappings":"AAAA,YAAY,aAAa;AACzB,OAAO,WAAW;AAClB,OAAO,cAAc;AAErB,SAAS,SAAS,eAAe,gBAAgB;AACjD,SAAS,kBAAkB;AAC3B,SAAS,yBAAyB;AAElC,MAAM,IAAI,QAAQ,QAAQ;AAM1B,eAAsB,YACrB,OACA,MACC;AACD,IAAE,MAAM,GAAG,KAAK,KAAK;AAErB,MAAI;AACH,UAAM,SAAS,MAAM,KAAK;AAE1B,MAAE,KAAK,MAAM,MAAM,iBAAY,WAAW,KAAK,CAAC,GAAG,CAAC;AAEpD,WAAO;AAAA,EACR,SAAS,OAAO;AACf,MAAE,KAAK,MAAM,IAAI,gBAAW,WAAW,KAAK,CAAC,GAAG,CAAC;AAEjD,UAAM,IAAI,MAAM,UAAU,WAAW,KAAK,CAAC,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,EAChE;AACD;AAEA,eAAsB,aACrB,OACA,OACC;AACD,gBAAc,GAAG,KAAK,KAAK;AAE3B,MAAI;AACJ,MAAI;AAEJ,aAAW,CAACA,QAAO,GAAG,KAAK,OAAO;AACjC,mBAAeA;AAEf,UAAM,OAAO,SAAS,MAAM,KAAK,MAAMA,MAAK,EAAE,CAAC;AAC/C,UAAM,cAAc,kBAAkB,IAAI;AAE1C,QAAI;AACH,YAAM,IAAI;AAAA,IACX,SAAS,OAAO;AACf,YAAM,aAAa,GAAG,WAAWA,MAAK,CAAC,MAAM,WAAW,YAAY,CAAC;AAErE,cAAQ,MAAM,IAAI,gBAAW,UAAU,GAAG,CAAC;AAE3C,YAAM,IAAI,MAAM,UAAU,UAAU,IAAI,EAAE,OAAO,MAAM,CAAC;AAAA,IACzD,UAAE;AACD,YAAM,aAAa,YAAY;AAC/B,eAAS,UAAU,QAAQ,QAAQ,EAAE;AACrC,eAAS,WAAW,QAAQ,QAAQ,CAAC,YAAY,CAAC;AAAA,IACnD;AAEA,iBAAa,MAAM,KAAK,GAAG,IAAI;AAAA,CAAO;AAEtC,YAAQ,OAAO,MAAM,UAAU;AAAA,EAChC;AAEA,WAAS,WAAW,QAAQ,QAAQ,CAAC,WAAW,QAAQ,CAAC,MAAM,SAAS,CAAC;AACzE,WAAS,gBAAgB,QAAQ,MAAM;AAEvC,gBAAc,MAAM,MAAM,iBAAY,WAAW,KAAK,CAAC,GAAG,CAAC;AAC5D;","names":["label"]}
@@ -44,7 +44,12 @@ async function updateLocalFiles(options) {
44
44
  }
45
45
  for (const [from, to, files = ["./.github/**/*", "./*.*"]] of replacements) {
46
46
  try {
47
- await replaceInFile({ files, from, to });
47
+ await replaceInFile({
48
+ allowEmptyPaths: true,
49
+ files,
50
+ from,
51
+ to
52
+ });
48
53
  } catch (error) {
49
54
  throw new Error(
50
55
  `Failed to replace ${from.toString()} with ${to} in ${files.toString()}`,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/steps/updateLocalFiles.ts"],"sourcesContent":["import replaceInFile from \"replace-in-file\";\n\nimport { readFileSafeAsJson } from \"../shared/readFileSafeAsJson.js\";\nimport { Options } from \"../shared/types.js\";\n\ninterface ExistingPackageData {\n\tdescription?: string;\n\tversion?: string;\n}\n\nexport async function updateLocalFiles(options: Options) {\n\tconst existingPackage = ((await readFileSafeAsJson(\"./package.json\")) ??\n\t\t{}) as ExistingPackageData;\n\n\tconst replacements = [\n\t\t[/Create TypeScript App/g, options.title],\n\t\t[/JoshuaKGoldberg(?!\\/console-fail-test)/g, options.owner],\n\t\t[/create-typescript-app/g, options.repository],\n\t\t[/\\/\\*\\n.+\\*\\/\\n\\n/gs, ``, \".eslintrc.cjs\"],\n\t\t[/\"author\": \".+\"/g, `\"author\": \"${options.author}\"`, \"./package.json\"],\n\t\t...(options.mode === \"migrate\"\n\t\t\t? []\n\t\t\t: [[/\"bin\": \".+\\n/g, ``, \"./package.json\"]]),\n\t\t[/\"test:create\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/\"test:initialize\": \".*/g, ``, \"./package.json\"],\n\t\t[/\"initialize\": \".*/g, ``, \"./package.json\"],\n\t\t[/\"test:migrate\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/## Getting Started.*## Development/gs, `## Development`, \"./README.md\"],\n\t\t[/\\n## Setup Scripts.*$/gs, \"\", \"./.github/DEVELOPMENT.md\"],\n\t\t[`\\t\\t\"src/initialize/index.ts\",\\n`, ``, \"./knip.jsonc\"],\n\t\t[`\\t\\t\"src/migrate/index.ts\",\\n`, ``, \"./knip.jsonc\"],\n\t\t[\n\t\t\t`[\"src/index.ts!\", \"script/initialize*.js\"]`,\n\t\t\t`\"src/index.ts!\"`,\n\t\t\t\"./knip.jsonc\",\n\t\t],\n\t\t[`[\"src/**/*.ts!\", \"script/**/*.js\"]`, `\"src/**/*.ts!\"`, \"./knip.jsonc\"],\n\t\t// Edge case: migration scripts will rewrite README.md attribution\n\t\t[\n\t\t\t`> 💙 This package is based on [@${options.owner}](https://github.com/${options.owner})'s [${options.repository}](https://github.com/JoshuaKGoldberg/${options.repository}).`,\n\t\t\t`> 💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).`,\n\t\t\t\"./README.md\",\n\t\t],\n\t];\n\n\tif (existingPackage.description) {\n\t\treplacements.push([existingPackage.description, options.description]);\n\t}\n\n\tif (options.mode === \"initialize\" && existingPackage.version) {\n\t\treplacements.push([\n\t\t\tnew RegExp(`\"version\": \"${existingPackage.version}\"`, \"g\"),\n\t\t\t`\"version\": \"0.0.0\"`,\n\t\t\t\"./package.json\",\n\t\t]);\n\t}\n\n\tfor (const [from, to, files = [\"./.github/**/*\", \"./*.*\"]] of replacements) {\n\t\ttry {\n\t\t\t// @ts-expect-error -- https://github.com/microsoft/TypeScript/issues/54342\n\t\t\tawait replaceInFile({ files, from, to });\n\t\t} catch (error) {\n\t\t\tthrow new Error(\n\t\t\t\t`Failed to replace ${from.toString()} with ${to} in ${files.toString()}`,\n\t\t\t\t{\n\t\t\t\t\tcause: error,\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n}\n"],"mappings":"AAAA,OAAO,mBAAmB;AAE1B,SAAS,0BAA0B;AAQnC,eAAsB,iBAAiB,SAAkB;AACxD,QAAM,kBAAoB,MAAM,mBAAmB,gBAAgB,KAClE,CAAC;AAEF,QAAM,eAAe;AAAA,IACpB,CAAC,0BAA0B,QAAQ,KAAK;AAAA,IACxC,CAAC,2CAA2C,QAAQ,KAAK;AAAA,IACzD,CAAC,0BAA0B,QAAQ,UAAU;AAAA,IAC7C,CAAC,sBAAsB,IAAI,eAAe;AAAA,IAC1C,CAAC,mBAAmB,cAAc,QAAQ,MAAM,KAAK,gBAAgB;AAAA,IACrE,GAAI,QAAQ,SAAS,YAClB,CAAC,IACD,CAAC,CAAC,iBAAiB,IAAI,gBAAgB,CAAC;AAAA,IAC3C,CAAC,yBAAyB,IAAI,gBAAgB;AAAA,IAC9C,CAAC,2BAA2B,IAAI,gBAAgB;AAAA,IAChD,CAAC,sBAAsB,IAAI,gBAAgB;AAAA,IAC3C,CAAC,0BAA0B,IAAI,gBAAgB;AAAA,IAC/C,CAAC,wCAAwC,kBAAkB,aAAa;AAAA,IACxE,CAAC,2BAA2B,IAAI,0BAA0B;AAAA,IAC1D,CAAC;AAAA,GAAoC,IAAI,cAAc;AAAA,IACvD,CAAC;AAAA,GAAiC,IAAI,cAAc;AAAA,IACpD;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,CAAC,sCAAsC,kBAAkB,cAAc;AAAA;AAAA,IAEvE;AAAA,MACC,0CAAmC,QAAQ,KAAK,wBAAwB,QAAQ,KAAK,QAAQ,QAAQ,UAAU,wCAAwC,QAAQ,UAAU;AAAA,MACzK;AAAA,MACA;AAAA,IACD;AAAA,EACD;AAEA,MAAI,gBAAgB,aAAa;AAChC,iBAAa,KAAK,CAAC,gBAAgB,aAAa,QAAQ,WAAW,CAAC;AAAA,EACrE;AAEA,MAAI,QAAQ,SAAS,gBAAgB,gBAAgB,SAAS;AAC7D,iBAAa,KAAK;AAAA,MACjB,IAAI,OAAO,eAAe,gBAAgB,OAAO,KAAK,GAAG;AAAA,MACzD;AAAA,MACA;AAAA,IACD,CAAC;AAAA,EACF;AAEA,aAAW,CAAC,MAAM,IAAI,QAAQ,CAAC,kBAAkB,OAAO,CAAC,KAAK,cAAc;AAC3E,QAAI;AAEH,YAAM,cAAc,EAAE,OAAO,MAAM,GAAG,CAAC;AAAA,IACxC,SAAS,OAAO;AACf,YAAM,IAAI;AAAA,QACT,qBAAqB,KAAK,SAAS,CAAC,SAAS,EAAE,OAAO,MAAM,SAAS,CAAC;AAAA,QACtE;AAAA,UACC,OAAO;AAAA,QACR;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;","names":[]}
1
+ {"version":3,"sources":["../../src/steps/updateLocalFiles.ts"],"sourcesContent":["import replaceInFile from \"replace-in-file\";\n\nimport { readFileSafeAsJson } from \"../shared/readFileSafeAsJson.js\";\nimport { Options } from \"../shared/types.js\";\n\ninterface ExistingPackageData {\n\tdescription?: string;\n\tversion?: string;\n}\n\nexport async function updateLocalFiles(options: Options) {\n\tconst existingPackage = ((await readFileSafeAsJson(\"./package.json\")) ??\n\t\t{}) as ExistingPackageData;\n\n\tconst replacements = [\n\t\t[/Create TypeScript App/g, options.title],\n\t\t[/JoshuaKGoldberg(?!\\/console-fail-test)/g, options.owner],\n\t\t[/create-typescript-app/g, options.repository],\n\t\t[/\\/\\*\\n.+\\*\\/\\n\\n/gs, ``, \".eslintrc.cjs\"],\n\t\t[/\"author\": \".+\"/g, `\"author\": \"${options.author}\"`, \"./package.json\"],\n\t\t...(options.mode === \"migrate\"\n\t\t\t? []\n\t\t\t: [[/\"bin\": \".+\\n/g, ``, \"./package.json\"]]),\n\t\t[/\"test:create\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/\"test:initialize\": \".*/g, ``, \"./package.json\"],\n\t\t[/\"initialize\": \".*/g, ``, \"./package.json\"],\n\t\t[/\"test:migrate\": \".+\\n/g, ``, \"./package.json\"],\n\t\t[/## Getting Started.*## Development/gs, `## Development`, \"./README.md\"],\n\t\t[/\\n## Setup Scripts.*$/gs, \"\", \"./.github/DEVELOPMENT.md\"],\n\t\t[`\\t\\t\"src/initialize/index.ts\",\\n`, ``, \"./knip.jsonc\"],\n\t\t[`\\t\\t\"src/migrate/index.ts\",\\n`, ``, \"./knip.jsonc\"],\n\t\t[\n\t\t\t`[\"src/index.ts!\", \"script/initialize*.js\"]`,\n\t\t\t`\"src/index.ts!\"`,\n\t\t\t\"./knip.jsonc\",\n\t\t],\n\t\t[`[\"src/**/*.ts!\", \"script/**/*.js\"]`, `\"src/**/*.ts!\"`, \"./knip.jsonc\"],\n\t\t// Edge case: migration scripts will rewrite README.md attribution\n\t\t[\n\t\t\t`> 💙 This package is based on [@${options.owner}](https://github.com/${options.owner})'s [${options.repository}](https://github.com/JoshuaKGoldberg/${options.repository}).`,\n\t\t\t`> 💙 This package is based on [@JoshuaKGoldberg](https://github.com/JoshuaKGoldberg)'s [create-typescript-app](https://github.com/JoshuaKGoldberg/create-typescript-app).`,\n\t\t\t\"./README.md\",\n\t\t],\n\t];\n\n\tif (existingPackage.description) {\n\t\treplacements.push([existingPackage.description, options.description]);\n\t}\n\n\tif (options.mode === \"initialize\" && existingPackage.version) {\n\t\treplacements.push([\n\t\t\tnew RegExp(`\"version\": \"${existingPackage.version}\"`, \"g\"),\n\t\t\t`\"version\": \"0.0.0\"`,\n\t\t\t\"./package.json\",\n\t\t]);\n\t}\n\n\tfor (const [from, to, files = [\"./.github/**/*\", \"./*.*\"]] of replacements) {\n\t\ttry {\n\t\t\t// @ts-expect-error -- https://github.com/microsoft/TypeScript/issues/54342\n\t\t\tawait replaceInFile({\n\t\t\t\tallowEmptyPaths: true,\n\t\t\t\tfiles,\n\t\t\t\tfrom,\n\t\t\t\tto,\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tthrow new Error(\n\t\t\t\t`Failed to replace ${from.toString()} with ${to} in ${files.toString()}`,\n\t\t\t\t{\n\t\t\t\t\tcause: error,\n\t\t\t\t},\n\t\t\t);\n\t\t}\n\t}\n}\n"],"mappings":"AAAA,OAAO,mBAAmB;AAE1B,SAAS,0BAA0B;AAQnC,eAAsB,iBAAiB,SAAkB;AACxD,QAAM,kBAAoB,MAAM,mBAAmB,gBAAgB,KAClE,CAAC;AAEF,QAAM,eAAe;AAAA,IACpB,CAAC,0BAA0B,QAAQ,KAAK;AAAA,IACxC,CAAC,2CAA2C,QAAQ,KAAK;AAAA,IACzD,CAAC,0BAA0B,QAAQ,UAAU;AAAA,IAC7C,CAAC,sBAAsB,IAAI,eAAe;AAAA,IAC1C,CAAC,mBAAmB,cAAc,QAAQ,MAAM,KAAK,gBAAgB;AAAA,IACrE,GAAI,QAAQ,SAAS,YAClB,CAAC,IACD,CAAC,CAAC,iBAAiB,IAAI,gBAAgB,CAAC;AAAA,IAC3C,CAAC,yBAAyB,IAAI,gBAAgB;AAAA,IAC9C,CAAC,2BAA2B,IAAI,gBAAgB;AAAA,IAChD,CAAC,sBAAsB,IAAI,gBAAgB;AAAA,IAC3C,CAAC,0BAA0B,IAAI,gBAAgB;AAAA,IAC/C,CAAC,wCAAwC,kBAAkB,aAAa;AAAA,IACxE,CAAC,2BAA2B,IAAI,0BAA0B;AAAA,IAC1D,CAAC;AAAA,GAAoC,IAAI,cAAc;AAAA,IACvD,CAAC;AAAA,GAAiC,IAAI,cAAc;AAAA,IACpD;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,IACD;AAAA,IACA,CAAC,sCAAsC,kBAAkB,cAAc;AAAA;AAAA,IAEvE;AAAA,MACC,0CAAmC,QAAQ,KAAK,wBAAwB,QAAQ,KAAK,QAAQ,QAAQ,UAAU,wCAAwC,QAAQ,UAAU;AAAA,MACzK;AAAA,MACA;AAAA,IACD;AAAA,EACD;AAEA,MAAI,gBAAgB,aAAa;AAChC,iBAAa,KAAK,CAAC,gBAAgB,aAAa,QAAQ,WAAW,CAAC;AAAA,EACrE;AAEA,MAAI,QAAQ,SAAS,gBAAgB,gBAAgB,SAAS;AAC7D,iBAAa,KAAK;AAAA,MACjB,IAAI,OAAO,eAAe,gBAAgB,OAAO,KAAK,GAAG;AAAA,MACzD;AAAA,MACA;AAAA,IACD,CAAC;AAAA,EACF;AAEA,aAAW,CAAC,MAAM,IAAI,QAAQ,CAAC,kBAAkB,OAAO,CAAC,KAAK,cAAc;AAC3E,QAAI;AAEH,YAAM,cAAc;AAAA,QACnB,iBAAiB;AAAA,QACjB;AAAA,QACA;AAAA,QACA;AAAA,MACD,CAAC;AAAA,IACF,SAAS,OAAO;AACf,YAAM,IAAI;AAAA,QACT,qBAAqB,KAAK,SAAS,CAAC,SAAS,EAAE,OAAO,MAAM,SAAS,CAAC;AAAA,QACtE;AAAA,UACC,OAAO;AAAA,QACR;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "1.43.1",
3
+ "version": "1.43.3",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive, configurable, opinionated tooling. 💝",
5
5
  "repository": {
6
6
  "type": "git",
@@ -74,7 +74,7 @@
74
74
  "@vitest/coverage-v8": "^0.34.3",
75
75
  "c8": "^8.0.1",
76
76
  "console-fail-test": "^0.2.3",
77
- "cspell": "^7.0.1",
77
+ "cspell": "^8.0.0",
78
78
  "eslint": "^8.48.0",
79
79
  "eslint-plugin-deprecation": "^2.0.0",
80
80
  "eslint-plugin-eslint-comments": "^3.2.0",
@@ -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.39.0",
93
+ "knip": "2.40.1",
94
94
  "lint-staged": "^15.0.0",
95
95
  "markdownlint": "^0.31.0",
96
96
  "markdownlint-cli": "^0.37.0",
@@ -102,7 +102,7 @@
102
102
  "sentences-per-line": "^0.2.1",
103
103
  "should-semantic-release": "^0.2.0",
104
104
  "tsup": "^7.2.0",
105
- "tsx": "^3.12.7",
105
+ "tsx": "^4.0.0",
106
106
  "typescript": "^5.1.6",
107
107
  "vitest": "^0.34.3",
108
108
  "yaml-eslint-parser": "^1.2.2"