create-book 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -34746,7 +34746,7 @@ ${p2}`;
34746
34746
  }
34747
34747
  });
34748
34748
 
34749
- // ../../dist/chunk-ZKEIYNLT.js
34749
+ // ../../dist/chunk-ZEBXHUJX.js
34750
34750
  var import_resolve_pkg = __toESM(require_resolve_pkg(), 1);
34751
34751
  var import_upath = __toESM(require_upath(), 1);
34752
34752
  import fs from "node:fs";
@@ -35024,6 +35024,9 @@ var coreVersion = (() => {
35024
35024
  if (import.meta.env?.VITEST) {
35025
35025
  return "0.0.1";
35026
35026
  }
35027
+ if (!viewerRoot) {
35028
+ return "Unknown";
35029
+ }
35027
35030
  const pkg = JSON.parse(
35028
35031
  fs.readFileSync(import_upath.default.join(viewerRoot, "package.json"), "utf8")
35029
35032
  );
@@ -35032,7 +35035,7 @@ var coreVersion = (() => {
35032
35035
  var versionForDisplay = `cli: ${cliVersion}
35033
35036
  core: ${coreVersion}`;
35034
35037
 
35035
- // ../../dist/chunk-IIKRNYAM.js
35038
+ // ../../dist/chunk-CKXFRCPH.js
35036
35039
  var import_semver = __toESM(require_semver2(), 1);
35037
35040
  var import_upath2 = __toESM(require_upath(), 1);
35038
35041
 
@@ -36143,7 +36146,7 @@ async function safeParseAsync(schema, input, config$1) {
36143
36146
  };
36144
36147
  }
36145
36148
 
36146
- // ../../dist/chunk-IIKRNYAM.js
36149
+ // ../../dist/chunk-CKXFRCPH.js
36147
36150
  var $ = (strings, ...values) => {
36148
36151
  const lines = String.raw({ raw: strings }, ...values).split("\n");
36149
36152
  const indent = lines.filter((line) => line.trim()).map((line) => line.match(/^\s*/)?.[0].length ?? 0).reduce((min, len) => Math.min(min, len), Infinity);
@@ -37453,7 +37456,7 @@ var {
37453
37456
  Help
37454
37457
  } = import_index.default;
37455
37458
 
37456
- // ../../dist/chunk-MQYXBSRJ.js
37459
+ // ../../dist/chunk-T2VWLU2I.js
37457
37460
  var import_code_frame = __toESM(require_lib2(), 1);
37458
37461
 
37459
37462
  // ../../node_modules/.pnpm/@humanwhocodes+momoa@3.3.8/node_modules/@humanwhocodes/momoa/dist/momoa.js
@@ -37578,7 +37581,7 @@ var json5Whitespace = /* @__PURE__ */ new Set([
37578
37581
  CHAR_IDEOGRAPHIC_SPACE
37579
37582
  ]);
37580
37583
 
37581
- // ../../dist/chunk-MQYXBSRJ.js
37584
+ // ../../dist/chunk-T2VWLU2I.js
37582
37585
  var import_ajv = __toESM(require_ajv(), 1);
37583
37586
  var import_ajv_formats = __toESM(require_dist(), 1);
37584
37587
 
@@ -37862,7 +37865,7 @@ lcid.all = new Proxy(
37862
37865
  );
37863
37866
  var lcid_default2 = lcid;
37864
37867
 
37865
- // ../../dist/chunk-MQYXBSRJ.js
37868
+ // ../../dist/chunk-T2VWLU2I.js
37866
37869
  var import_node_stream_zip = __toESM(require_node_stream_zip(), 1);
37867
37870
  import childProcess2 from "node:child_process";
37868
37871
  import fs2 from "node:fs";
@@ -38064,7 +38067,7 @@ function upperAt(input, index, locale) {
38064
38067
  return input.slice(0, index) + input.charAt(index).toLocaleUpperCase(locale) + input.slice(index + 1);
38065
38068
  }
38066
38069
 
38067
- // ../../dist/chunk-MQYXBSRJ.js
38070
+ // ../../dist/chunk-T2VWLU2I.js
38068
38071
  var import_tmp = __toESM(require_tmp(), 1);
38069
38072
  var import_upath3 = __toESM(require_upath(), 1);
38070
38073
 
@@ -38180,7 +38183,7 @@ var bgMagentaBright = format(105, 49);
38180
38183
  var bgCyanBright = format(106, 49);
38181
38184
  var bgWhiteBright = format(107, 49);
38182
38185
 
38183
- // ../../dist/chunk-MQYXBSRJ.js
38186
+ // ../../dist/chunk-T2VWLU2I.js
38184
38187
  var import_debug = __toESM(require_src(), 1);
38185
38188
  import { Console } from "node:console";
38186
38189
 
@@ -38439,7 +38442,7 @@ var esm_default = {
38439
38442
  ...import_remove.default
38440
38443
  };
38441
38444
 
38442
- // ../../dist/chunk-MQYXBSRJ.js
38445
+ // ../../dist/chunk-T2VWLU2I.js
38443
38446
  var import_picomatch3 = __toESM(require_picomatch2(), 1);
38444
38447
 
38445
38448
  // ../../node_modules/.pnpm/tinyglobby@0.2.13/node_modules/tinyglobby/dist/index.mjs
@@ -38710,7 +38713,7 @@ async function glob(patternsOrOptions, options) {
38710
38713
  return crawl(opts, cwd2, false);
38711
38714
  }
38712
38715
 
38713
- // ../../dist/chunk-MQYXBSRJ.js
38716
+ // ../../dist/chunk-T2VWLU2I.js
38714
38717
  var import_upath4 = __toESM(require_upath(), 1);
38715
38718
  function createParserProgram({
38716
38719
  setupProgram,
@@ -40088,7 +40091,7 @@ async function downloadTemplate(input, options = {}) {
40088
40091
  };
40089
40092
  }
40090
40093
 
40091
- // ../../dist/chunk-RPMMYPTR.js
40094
+ // ../../dist/chunk-RKU7H2GS.js
40092
40095
  import { isUtf8 } from "node:buffer";
40093
40096
  import fs5 from "node:fs";
40094
40097
  import { pathToFileURL } from "node:url";
@@ -40281,7 +40284,7 @@ terminalLink.isSupported = import_supports_hyperlinks.default.stdout;
40281
40284
  terminalLink.stderr = (text, url, options = {}) => terminalLink(text, url, { target: "stderr", ...options });
40282
40285
  terminalLink.stderr.isSupported = import_supports_hyperlinks.default.stderr;
40283
40286
 
40284
- // ../../dist/chunk-RPMMYPTR.js
40287
+ // ../../dist/chunk-RKU7H2GS.js
40285
40288
  var import_upath5 = __toESM(require_upath(), 1);
40286
40289
 
40287
40290
  // ../../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js
@@ -40386,7 +40389,7 @@ function splitPrefixSuffix(input, options = {}) {
40386
40389
  ];
40387
40390
  }
40388
40391
 
40389
- // ../../dist/chunk-RPMMYPTR.js
40392
+ // ../../dist/chunk-RKU7H2GS.js
40390
40393
  var import_handlebars = __toESM(require_lib3(), 1);
40391
40394
 
40392
40395
  // ../../node_modules/.pnpm/@clack+core@1.0.0-alpha.6/node_modules/@clack/core/dist/index.mjs
@@ -41466,7 +41469,7 @@ function wrapAnsi(string2, columns, options) {
41466
41469
  return String(string2).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec3(line, columns, options)).join("\n");
41467
41470
  }
41468
41471
 
41469
- // ../../dist/chunk-RPMMYPTR.js
41472
+ // ../../dist/chunk-RKU7H2GS.js
41470
41473
  var import_sisteransi3 = __toESM(require_src2(), 1);
41471
41474
 
41472
41475
  // ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs
@@ -41480,7 +41483,7 @@ var c = !o && globalThis.Request || dt;
41480
41483
  var R = !o && globalThis.Response || le;
41481
41484
  var T2 = !o && globalThis.AbortController || Mn;
41482
41485
 
41483
- // ../../dist/chunk-RPMMYPTR.js
41486
+ // ../../dist/chunk-RKU7H2GS.js
41484
41487
  var import_proxy = __toESM(require_proxy(), 1);
41485
41488
  function upper(text) {
41486
41489
  return text && text.toUpperCase();