create-typescript-app 1.29.50 → 1.29.51

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.
@@ -1,5 +1,6 @@
1
1
  import readline from "readline";
2
2
  function startLineWithDots(line) {
3
+ const timer = [setTimeout(tick, 500)];
3
4
  let dots = 0;
4
5
  let lastLogged;
5
6
  function clearLine() {
@@ -13,15 +14,15 @@ function startLineWithDots(line) {
13
14
  lastLogged = toLog;
14
15
  return toLog;
15
16
  }
16
- writeLine();
17
- const timer = setInterval(() => {
17
+ function tick() {
18
18
  clearLine();
19
19
  writeLine();
20
- dots += 1;
21
- }, 500);
20
+ timer[0] = setTimeout(tick, 500);
21
+ }
22
+ writeLine();
22
23
  return () => {
23
24
  clearLine();
24
- clearInterval(timer);
25
+ clearInterval(timer[0]);
25
26
  return lastLogged.length;
26
27
  };
27
28
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/shared/cli/startLineWithDots.ts"],"sourcesContent":["import readline from \"readline\";\n\nexport function startLineWithDots(line: string) {\n\tlet dots = 0;\n\tlet lastLogged!: string;\n\n\tfunction clearLine() {\n\t\treadline.clearLine(process.stdout, -1);\n\t\treadline.moveCursor(process.stdout, -lastLogged.length, 0);\n\t}\n\n\tfunction writeLine() {\n\t\tdots = (dots + 1) % 4;\n\n\t\tconst toLog = `${line}${\".\".repeat(dots)}`;\n\n\t\tprocess.stdout.write(toLog);\n\n\t\tlastLogged = toLog;\n\n\t\treturn toLog;\n\t}\n\n\twriteLine();\n\n\tconst timer = setInterval(() => {\n\t\tclearLine();\n\t\twriteLine();\n\t\tdots += 1;\n\t}, 500);\n\n\treturn () => {\n\t\tclearLine();\n\t\tclearInterval(timer);\n\t\treturn lastLogged.length;\n\t};\n}\n"],"mappings":"AAAA,OAAO,cAAc;AAEd,SAAS,kBAAkB,MAAc;AAC/C,MAAI,OAAO;AACX,MAAI;AAEJ,WAAS,YAAY;AACpB,aAAS,UAAU,QAAQ,QAAQ,EAAE;AACrC,aAAS,WAAW,QAAQ,QAAQ,CAAC,WAAW,QAAQ,CAAC;AAAA,EAC1D;AAEA,WAAS,YAAY;AACpB,YAAQ,OAAO,KAAK;AAEpB,UAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,OAAO,IAAI,CAAC;AAExC,YAAQ,OAAO,MAAM,KAAK;AAE1B,iBAAa;AAEb,WAAO;AAAA,EACR;AAEA,YAAU;AAEV,QAAM,QAAQ,YAAY,MAAM;AAC/B,cAAU;AACV,cAAU;AACV,YAAQ;AAAA,EACT,GAAG,GAAG;AAEN,SAAO,MAAM;AACZ,cAAU;AACV,kBAAc,KAAK;AACnB,WAAO,WAAW;AAAA,EACnB;AACD;","names":[]}
1
+ {"version":3,"sources":["../../../src/shared/cli/startLineWithDots.ts"],"sourcesContent":["import readline from \"readline\";\n\nexport function startLineWithDots(line: string) {\n\tconst timer = [setTimeout(tick, 500)];\n\tlet dots = 0;\n\tlet lastLogged!: string;\n\n\tfunction clearLine() {\n\t\treadline.clearLine(process.stdout, -1);\n\t\treadline.moveCursor(process.stdout, -lastLogged.length, 0);\n\t}\n\n\tfunction writeLine() {\n\t\tdots = (dots + 1) % 4;\n\n\t\tconst toLog = `${line}${\".\".repeat(dots)}`;\n\n\t\tprocess.stdout.write(toLog);\n\n\t\tlastLogged = toLog;\n\n\t\treturn toLog;\n\t}\n\n\tfunction tick() {\n\t\tclearLine();\n\t\twriteLine();\n\t\ttimer[0] = setTimeout(tick, 500);\n\t}\n\n\twriteLine();\n\n\treturn () => {\n\t\tclearLine();\n\t\tclearInterval(timer[0]);\n\t\treturn lastLogged.length;\n\t};\n}\n"],"mappings":"AAAA,OAAO,cAAc;AAEd,SAAS,kBAAkB,MAAc;AAC/C,QAAM,QAAQ,CAAC,WAAW,MAAM,GAAG,CAAC;AACpC,MAAI,OAAO;AACX,MAAI;AAEJ,WAAS,YAAY;AACpB,aAAS,UAAU,QAAQ,QAAQ,EAAE;AACrC,aAAS,WAAW,QAAQ,QAAQ,CAAC,WAAW,QAAQ,CAAC;AAAA,EAC1D;AAEA,WAAS,YAAY;AACpB,YAAQ,OAAO,KAAK;AAEpB,UAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,OAAO,IAAI,CAAC;AAExC,YAAQ,OAAO,MAAM,KAAK;AAE1B,iBAAa;AAEb,WAAO;AAAA,EACR;AAEA,WAAS,OAAO;AACf,cAAU;AACV,cAAU;AACV,UAAM,CAAC,IAAI,WAAW,MAAM,GAAG;AAAA,EAChC;AAEA,YAAU;AAEV,SAAO,MAAM;AACZ,cAAU;AACV,kBAAc,MAAM,CAAC,CAAC;AACtB,WAAO,WAAW;AAAA,EACnB;AACD;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-typescript-app",
3
- "version": "1.29.50",
3
+ "version": "1.29.51",
4
4
  "description": "Quickstart-friendly TypeScript template with comprehensive formatting, linting, releases, testing, and other great tooling built-in. ✨",
5
5
  "repository": {
6
6
  "type": "git",