@quilted/create 0.2.21 → 0.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +3 -3
  3. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +1 -1
  4. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +1 -1
  5. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +1 -1
  6. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +3 -3
  7. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +1 -1
  8. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +1 -1
  9. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +1 -1
  10. package/build/esnext/app.esnext +2 -4
  11. package/build/esnext/module.esnext +1 -2
  12. package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +2 -4
  13. package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +1 -2
  14. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +3 -6
  15. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +4 -8
  16. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +8 -16
  17. package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/TemplateTag/TemplateTag.esnext +3 -6
  18. package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +1 -2
  19. package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +12 -24
  20. package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +1 -2
  21. package/build/esnext/node_modules/.pnpm/kleur@3.0.3/node_modules/kleur/index.esnext +1 -2
  22. package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +6 -12
  23. package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +19 -38
  24. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +8 -16
  25. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +3 -6
  26. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +3 -6
  27. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +2 -4
  28. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/datepart.esnext +1 -2
  29. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/day.esnext +1 -2
  30. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/hours.esnext +2 -4
  31. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/index.esnext +1 -2
  32. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/meridiem.esnext +1 -2
  33. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/milliseconds.esnext +1 -2
  34. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/minutes.esnext +1 -2
  35. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/month.esnext +1 -2
  36. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/seconds.esnext +1 -2
  37. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/dateparts/year.esnext +1 -2
  38. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocomplete.esnext +16 -30
  39. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/autocompleteMultiselect.esnext +6 -12
  40. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/confirm.esnext +4 -8
  41. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.esnext +9 -18
  42. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/index.esnext +1 -2
  43. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/multiselect.esnext +8 -13
  44. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/number.esnext +11 -22
  45. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/prompt.esnext +4 -8
  46. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/select.esnext +10 -17
  47. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/text.esnext +9 -18
  48. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/toggle.esnext +7 -14
  49. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +15 -30
  50. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.esnext +1 -2
  51. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/action.esnext +24 -48
  52. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +13 -26
  53. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/entriesToDisplay.esnext +2 -4
  54. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/figures.esnext +1 -2
  55. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/index.esnext +1 -2
  56. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/lines.esnext +2 -4
  57. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/strip.esnext +1 -2
  58. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/style.esnext +1 -2
  59. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/wrap.esnext +3 -6
  60. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +2 -4
  61. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/datepart.esnext +1 -2
  62. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/day.esnext +1 -2
  63. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/hours.esnext +1 -2
  64. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/index.esnext +1 -2
  65. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/meridiem.esnext +1 -2
  66. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/milliseconds.esnext +1 -2
  67. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/minutes.esnext +1 -2
  68. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/month.esnext +1 -2
  69. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/seconds.esnext +1 -2
  70. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/dateparts/year.esnext +1 -2
  71. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocomplete.esnext +11 -22
  72. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/autocompleteMultiselect.esnext +6 -12
  73. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/confirm.esnext +4 -8
  74. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/date.esnext +8 -16
  75. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/index.esnext +1 -2
  76. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/multiselect.esnext +4 -8
  77. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/number.esnext +10 -20
  78. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/prompt.esnext +4 -8
  79. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/select.esnext +5 -10
  80. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/text.esnext +8 -16
  81. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/elements/toggle.esnext +7 -14
  82. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/index.esnext +4 -8
  83. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.esnext +1 -2
  84. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/action.esnext +24 -48
  85. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/clear.esnext +2 -4
  86. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/entriesToDisplay.esnext +2 -4
  87. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/figures.esnext +1 -2
  88. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/index.esnext +1 -2
  89. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/lines.esnext +2 -4
  90. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/strip.esnext +1 -2
  91. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/style.esnext +1 -2
  92. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/util/wrap.esnext +2 -4
  93. package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +3 -6
  94. package/build/esnext/node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.esnext +6 -12
  95. package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +1 -2
  96. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +11 -12
  97. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +17 -18
  98. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +9 -10
  99. package/build/esnext/package.esnext +7 -14
  100. package/build/esnext/server.esnext +1 -2
  101. package/build/esnext/shared/prompts.esnext +3 -6
  102. package/build/esnext/shared.esnext +3 -6
  103. package/package.json +1 -1
  104. package/templates/app-basic/features/start/Start/Start.test.tsx +1 -1
  105. package/templates/app-basic/foundation/html/HTML.test.tsx +4 -4
  106. package/templates/app-basic/package.json +1 -1
  107. package/templates/app-basic/shared/context.ts +2 -5
  108. package/templates/app-basic/tests/render/render.tsx +12 -11
  109. package/templates/app-basic/tests/render/types.ts +11 -0
  110. package/templates/app-basic/tests/render.ts +1 -1
  111. package/templates/app-empty/package.json +1 -1
  112. package/templates/app-empty/tsconfig.json +2 -1
  113. package/templates/app-graphql/features/start/Start/Start.test.tsx +1 -1
  114. package/templates/app-graphql/foundation/html/HTML.test.tsx +4 -4
  115. package/templates/app-graphql/package.json +2 -2
  116. package/templates/app-graphql/shared/context.ts +2 -5
  117. package/templates/app-graphql/tests/render/render.tsx +22 -14
  118. package/templates/app-graphql/tests/render/types.ts +11 -0
  119. package/templates/app-graphql/tests/render.ts +1 -1
  120. package/templates/app-graphql/tsconfig.json +2 -1
  121. package/templates/app-trpc/features/start/Start/Start.test.tsx +1 -1
  122. package/templates/app-trpc/foundation/html/HTML.test.tsx +4 -4
  123. package/templates/app-trpc/package.json +2 -2
  124. package/templates/app-trpc/shared/context.ts +2 -5
  125. package/templates/app-trpc/tests/render/render.tsx +23 -15
  126. package/templates/app-trpc/tests/render/types.ts +11 -0
  127. package/templates/app-trpc/tests/render.ts +1 -1
  128. package/templates/app-trpc/tsconfig.json +2 -1
  129. package/templates/workspace/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @quilted/create
2
2
 
3
+ ## 0.2.23
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0251270`](https://github.com/lemonmade/quilt/commit/0251270ca57edac1684d242cbc764e511a046d08) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix more template typescript issues
8
+
9
+ ## 0.2.22
10
+
11
+ ### Patch Changes
12
+
13
+ - [`285b2f0`](https://github.com/lemonmade/quilt/commit/285b2f083bfc6fe81db35e2950c8b3ae846486d3) Thanks [@lemonmade](https://github.com/lemonmade)! - Fix templates
14
+
3
15
  ## 0.2.21
4
16
 
5
17
  ### Patch Changes
@@ -2,9 +2,9 @@ import { __exports as out } from '../../../../../../../_virtual/index5.mjs';
2
2
  import './providers/async.mjs';
3
3
  import './providers/sync.mjs';
4
4
  import './settings.mjs';
5
- import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
6
- import { __exports as async$1 } from '../../../../../../../_virtual/async3.mjs';
7
- import { __exports as sync$1 } from '../../../../../../../_virtual/sync3.mjs';
5
+ import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
6
+ import { __exports as async$1 } from '../../../../../../../_virtual/async4.mjs';
7
+ import { __exports as sync$1 } from '../../../../../../../_virtual/sync4.mjs';
8
8
 
9
9
  Object.defineProperty(out, "__esModule", {
10
10
  value: true
@@ -1,4 +1,4 @@
1
- import { __exports as async } from '../../../../../../../../_virtual/async3.mjs';
1
+ import { __exports as async } from '../../../../../../../../_virtual/async4.mjs';
2
2
 
3
3
  Object.defineProperty(async, "__esModule", {
4
4
  value: true
@@ -1,4 +1,4 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync3.mjs';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync4.mjs';
2
2
 
3
3
  Object.defineProperty(sync, "__esModule", {
4
4
  value: true
@@ -1,4 +1,4 @@
1
- import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
1
+ import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
2
2
  import './adapters/fs.mjs';
3
3
  import { __exports as fs$1 } from '../../../../../../../_virtual/fs2.mjs';
4
4
 
@@ -3,10 +3,10 @@ import './providers/async.mjs';
3
3
  import './providers/stream.mjs';
4
4
  import './providers/sync.mjs';
5
5
  import './settings.mjs';
6
- import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
7
- import { __exports as async } from '../../../../../../../_virtual/async4.mjs';
6
+ import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
7
+ import { __exports as async } from '../../../../../../../_virtual/async3.mjs';
8
8
  import { __exports as stream } from '../../../../../../../_virtual/stream4.mjs';
9
- import { __exports as sync } from '../../../../../../../_virtual/sync4.mjs';
9
+ import { __exports as sync } from '../../../../../../../_virtual/sync3.mjs';
10
10
 
11
11
  Object.defineProperty(out, "__esModule", {
12
12
  value: true
@@ -1,4 +1,4 @@
1
- import { __exports as async } from '../../../../../../../../_virtual/async4.mjs';
1
+ import { __exports as async } from '../../../../../../../../_virtual/async3.mjs';
2
2
  import '../readers/async.mjs';
3
3
  import { __exports as async$1 } from '../../../../../../../../_virtual/async5.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync4.mjs';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync3.mjs';
2
2
  import '../readers/sync.mjs';
3
3
  import { __exports as sync$1 } from '../../../../../../../../_virtual/sync5.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { __exports as settings } from '../../../../../../../_virtual/settings3.mjs';
1
+ import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
2
2
  import path__default from 'node:path';
3
3
  import '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
4
4
  import { __exports as out } from '../../../../../../../_virtual/index6.mjs';
@@ -117,8 +117,7 @@ async function createApp() {
117
117
  );
118
118
  }
119
119
  await appTemplate.copy(appDirectory, (file) => {
120
- if (file === "_gitignore")
121
- return partOfMonorepo;
120
+ if (file === "_gitignore") return partOfMonorepo;
122
121
  return file !== "package.json";
123
122
  });
124
123
  if (template === "graphql" && !inWorkspace) {
@@ -282,8 +281,7 @@ async function getDirectory(argv, { name }) {
282
281
  )} is not empty, is it safe to empty it?`,
283
282
  initial: true
284
283
  });
285
- if (empty)
286
- break;
284
+ if (empty) break;
287
285
  const promptDirectory = await prompt({
288
286
  type: "text",
289
287
  message: "What directory do you want to create your new app in?"
@@ -266,8 +266,7 @@ async function getDirectory(argv, { name }) {
266
266
  )} is not empty, is it safe to empty it?`,
267
267
  initial: true
268
268
  });
269
- if (empty)
270
- break;
269
+ if (empty) break;
271
270
  const promptDirectory = await prompt({
272
271
  type: "text",
273
272
  message: "What directory do you want to create your new module in?"
@@ -1,9 +1,7 @@
1
1
  var balancedMatch = balanced;
2
2
  function balanced(a, b, str) {
3
- if (a instanceof RegExp)
4
- a = maybeMatch(a, str);
5
- if (b instanceof RegExp)
6
- b = maybeMatch(b, str);
3
+ if (a instanceof RegExp) a = maybeMatch(a, str);
4
+ if (b instanceof RegExp) b = maybeMatch(b, str);
7
5
  var r = range(a, b, str);
8
6
  return r && {
9
7
  start: r[0],
@@ -59,8 +59,7 @@ function gte(i, y) {
59
59
  function expand(str, isTop) {
60
60
  var expansions = [];
61
61
  var m = balanced("{", "}", str);
62
- if (!m)
63
- return [str];
62
+ if (!m) return [str];
64
63
  var pre = m.pre;
65
64
  var post = m.post.length ? expand(m.post, false) : [""];
66
65
  if (/\$$/.test(m.pre)) {
@@ -10,8 +10,7 @@ const append = (queue = "", stash = "", enclose = false) => {
10
10
  let result = [];
11
11
  queue = [].concat(queue);
12
12
  stash = [].concat(stash);
13
- if (!stash.length)
14
- return queue;
13
+ if (!stash.length) return queue;
15
14
  if (!queue.length) {
16
15
  return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
17
16
  }
@@ -22,8 +21,7 @@ const append = (queue = "", stash = "", enclose = false) => {
22
21
  }
23
22
  } else {
24
23
  for (let ele of stash) {
25
- if (enclose === true && typeof ele === "string")
26
- ele = `{${ele}}`;
24
+ if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
27
25
  result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
28
26
  }
29
27
  }
@@ -71,8 +69,7 @@ const expand = (ast, options = {}) => {
71
69
  for (let i = 0; i < node.nodes.length; i++) {
72
70
  let child = node.nodes[i];
73
71
  if (child.type === "comma" && node.type === "brace") {
74
- if (i === 1)
75
- queue.push("");
72
+ if (i === 1) queue.push("");
76
73
  queue.push("");
77
74
  continue;
78
75
  }
@@ -130,8 +130,7 @@ const parse = (input, options = {}) => {
130
130
  continue;
131
131
  }
132
132
  if (next === open) {
133
- if (options.keepQuotes === true)
134
- value += next;
133
+ if (options.keepQuotes === true) value += next;
135
134
  break;
136
135
  }
137
136
  value += next;
@@ -218,12 +217,9 @@ const parse = (input, options = {}) => {
218
217
  if (block.type !== "root") {
219
218
  block.nodes.forEach((node) => {
220
219
  if (!node.nodes) {
221
- if (node.type === "open")
222
- node.isOpen = true;
223
- if (node.type === "close")
224
- node.isClose = true;
225
- if (!node.nodes)
226
- node.type = "text";
220
+ if (node.type === "open") node.isOpen = true;
221
+ if (node.type === "close") node.isClose = true;
222
+ if (!node.nodes) node.type = "text";
227
223
  node.invalid = true;
228
224
  }
229
225
  });
@@ -12,16 +12,13 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
12
12
  };
13
13
  exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
14
14
  exports.exceedsLimit = (min, max, step = 1, limit) => {
15
- if (limit === false)
16
- return false;
17
- if (!exports.isInteger(min) || !exports.isInteger(max))
18
- return false;
15
+ if (limit === false) return false;
16
+ if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
19
17
  return (Number(max) - Number(min)) / Number(step) >= limit;
20
18
  };
21
19
  exports.escapeNode = (block, n = 0, type) => {
22
20
  let node = block.nodes[n];
23
- if (!node)
24
- return;
21
+ if (!node) return;
25
22
  if (type && node.type === type || node.type === "open" || node.type === "close") {
26
23
  if (node.escaped !== true) {
27
24
  node.value = "\\" + node.value;
@@ -30,8 +27,7 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
30
27
  }
31
28
  };
32
29
  exports.encloseBrace = (node) => {
33
- if (node.type !== "brace")
34
- return false;
30
+ if (node.type !== "brace") return false;
35
31
  if (node.commas >> 0 + node.ranges >> 0 === 0) {
36
32
  node.invalid = true;
37
33
  return true;
@@ -39,10 +35,8 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
39
35
  return false;
40
36
  };
41
37
  exports.isInvalidBrace = (block) => {
42
- if (block.type !== "brace")
43
- return false;
44
- if (block.invalid === true || block.dollar)
45
- return true;
38
+ if (block.type !== "brace") return false;
39
+ if (block.invalid === true || block.dollar) return true;
46
40
  if (block.commas >> 0 + block.ranges >> 0 === 0) {
47
41
  block.invalid = true;
48
42
  return true;
@@ -60,10 +54,8 @@ import { __exports as utils } from '../../../../../../_virtual/utils2.esnext';
60
54
  return node.open === true || node.close === true;
61
55
  };
62
56
  exports.reduce = (nodes) => nodes.reduce((acc, node) => {
63
- if (node.type === "text")
64
- acc.push(node.value);
65
- if (node.type === "range")
66
- node.type = "text";
57
+ if (node.type === "text") acc.push(node.value);
58
+ if (node.type === "range") node.type = "text";
67
59
  return acc;
68
60
  }, []);
69
61
  exports.flatten = (...args) => {
@@ -4,16 +4,13 @@ var _createClass = /* @__PURE__ */ function() {
4
4
  var descriptor = props[i];
5
5
  descriptor.enumerable = descriptor.enumerable || false;
6
6
  descriptor.configurable = true;
7
- if ("value" in descriptor)
8
- descriptor.writable = true;
7
+ if ("value" in descriptor) descriptor.writable = true;
9
8
  Object.defineProperty(target, descriptor.key, descriptor);
10
9
  }
11
10
  }
12
11
  return function(Constructor, protoProps, staticProps) {
13
- if (protoProps)
14
- defineProperties(Constructor.prototype, protoProps);
15
- if (staticProps)
16
- defineProperties(Constructor, staticProps);
12
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
13
+ if (staticProps) defineProperties(Constructor, staticProps);
17
14
  return Constructor;
18
15
  };
19
16
  }();
@@ -60,8 +60,7 @@ function fastqueue(context, worker, concurrency) {
60
60
  return tasks;
61
61
  }
62
62
  function resume() {
63
- if (!self.paused)
64
- return;
63
+ if (!self.paused) return;
65
64
  self.paused = false;
66
65
  for (var i = 0; i < self.concurrency; i++) {
67
66
  _running++;
@@ -14,12 +14,9 @@ const isNumber = (num) => Number.isInteger(+num);
14
14
  const zeros = (input) => {
15
15
  let value = `${input}`;
16
16
  let index = -1;
17
- if (value[0] === "-")
18
- value = value.slice(1);
19
- if (value === "0")
20
- return false;
21
- while (value[++index] === "0")
22
- ;
17
+ if (value[0] === "-") value = value.slice(1);
18
+ if (value === "0") return false;
19
+ while (value[++index] === "0") ;
23
20
  return index > 0;
24
21
  };
25
22
  const stringify = (start, end, options) => {
@@ -31,8 +28,7 @@ const stringify = (start, end, options) => {
31
28
  const pad = (input, maxLength, toNumber) => {
32
29
  if (maxLength > 0) {
33
30
  let dash = input[0] === "-" ? "-" : "";
34
- if (dash)
35
- input = input.slice(1);
31
+ if (dash) input = input.slice(1);
36
32
  input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
37
33
  }
38
34
  if (toNumber === false) {
@@ -46,8 +42,7 @@ const toMaxLen = (input, maxLength) => {
46
42
  input = input.slice(1);
47
43
  maxLength--;
48
44
  }
49
- while (input.length < maxLength)
50
- input = "0" + input;
45
+ while (input.length < maxLength) input = "0" + input;
51
46
  return negative ? "-" + input : input;
52
47
  };
53
48
  const toSequence = (parts, options) => {
@@ -78,8 +73,7 @@ const toRange = (a, b, isNumbers, options) => {
78
73
  return toRegexRange(a, b, { wrap: false, ...options });
79
74
  }
80
75
  let start = String.fromCharCode(a);
81
- if (a === b)
82
- return start;
76
+ if (a === b) return start;
83
77
  let stop = String.fromCharCode(b);
84
78
  return `[${start}-${stop}]`;
85
79
  };
@@ -95,8 +89,7 @@ const rangeError = (...args) => {
95
89
  return new RangeError("Invalid range arguments: " + util.inspect(...args));
96
90
  };
97
91
  const invalidRange = (start, end, options) => {
98
- if (options.strictRanges === true)
99
- throw rangeError([start, end]);
92
+ if (options.strictRanges === true) throw rangeError([start, end]);
100
93
  return [];
101
94
  };
102
95
  const invalidStep = (step, options) => {
@@ -109,14 +102,11 @@ const fillNumbers = (start, end, step = 1, options = {}) => {
109
102
  let a = Number(start);
110
103
  let b = Number(end);
111
104
  if (!Number.isInteger(a) || !Number.isInteger(b)) {
112
- if (options.strictRanges === true)
113
- throw rangeError([start, end]);
105
+ if (options.strictRanges === true) throw rangeError([start, end]);
114
106
  return [];
115
107
  }
116
- if (a === 0)
117
- a = 0;
118
- if (b === 0)
119
- b = 0;
108
+ if (a === 0) a = 0;
109
+ if (b === 0) b = 0;
120
110
  let descending = a > b;
121
111
  let startString = String(start);
122
112
  let endString = String(end);
@@ -186,12 +176,10 @@ const fill = (start, end, step, options = {}) => {
186
176
  return fill(start, end, 0, step);
187
177
  }
188
178
  let opts = { ...options };
189
- if (opts.capture === true)
190
- opts.wrap = true;
179
+ if (opts.capture === true) opts.wrap = true;
191
180
  step = step || opts.step || 1;
192
181
  if (!isNumber(step)) {
193
- if (step != null && !isObject(step))
194
- return invalidStep(step, opts);
182
+ if (step != null && !isObject(step)) return invalidStep(step, opts);
195
183
  return fill(start, end, 1, step);
196
184
  }
197
185
  if (isNumber(start) && isNumber(end)) {
@@ -4,8 +4,7 @@ var isExtglob = function isExtglob2(str) {
4
4
  }
5
5
  var match;
6
6
  while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
7
- if (match[2])
8
- return true;
7
+ if (match[2]) return true;
9
8
  str = str.slice(match.index + match[0].length);
10
9
  }
11
10
  return false;
@@ -1,8 +1,7 @@
1
1
  var kleur;
2
2
  var hasRequiredKleur;
3
3
  function requireKleur() {
4
- if (hasRequiredKleur)
5
- return kleur;
4
+ if (hasRequiredKleur) return kleur;
6
5
  hasRequiredKleur = 1;
7
6
  const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
8
7
  const $ = {
@@ -25,13 +25,11 @@ const micromatch = (list, patterns, options) => {
25
25
  for (let i = 0; i < patterns.length; i++) {
26
26
  let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
27
27
  let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
28
- if (negated)
29
- negatives++;
28
+ if (negated) negatives++;
30
29
  for (let item of list) {
31
30
  let matched = isMatch(item, true);
32
31
  let match = negated ? !matched.isMatch : matched.isMatch;
33
- if (!match)
34
- continue;
32
+ if (!match) continue;
35
33
  if (negated) {
36
34
  omit.add(matched.output);
37
35
  } else {
@@ -61,8 +59,7 @@ micromatch.not = (list, patterns, options = {}) => {
61
59
  let result = /* @__PURE__ */ new Set();
62
60
  let items = [];
63
61
  let onResult = (state) => {
64
- if (options.onResult)
65
- options.onResult(state);
62
+ if (options.onResult) options.onResult(state);
66
63
  items.push(state.output);
67
64
  };
68
65
  let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
@@ -96,8 +93,7 @@ micromatch.matchKeys = (obj, patterns, options) => {
96
93
  }
97
94
  let keys = micromatch(Object.keys(obj), patterns, options);
98
95
  let res = {};
99
- for (let key of keys)
100
- res[key] = obj[key];
96
+ for (let key of keys) res[key] = obj[key];
101
97
  return res;
102
98
  };
103
99
  micromatch.some = (list, patterns, options) => {
@@ -146,16 +142,14 @@ micromatch.parse = (patterns, options) => {
146
142
  return res;
147
143
  };
148
144
  micromatch.braces = (pattern, options) => {
149
- if (typeof pattern !== "string")
150
- throw new TypeError("Expected a string");
145
+ if (typeof pattern !== "string") throw new TypeError("Expected a string");
151
146
  if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
152
147
  return [pattern];
153
148
  }
154
149
  return braces(pattern, options);
155
150
  };
156
151
  micromatch.braceExpand = (pattern, options) => {
157
- if (typeof pattern !== "string")
158
- throw new TypeError("Expected a string");
152
+ if (typeof pattern !== "string") throw new TypeError("Expected a string");
159
153
  return micromatch.braces(pattern, { ...options, expand: true });
160
154
  };
161
155
  var micromatch_1 = micromatch;
@@ -91,8 +91,7 @@ const regExpEscape = (s) => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
91
91
  class Minimatch {
92
92
  constructor(pattern, options) {
93
93
  assertValidPattern(pattern);
94
- if (!options)
95
- options = {};
94
+ if (!options) options = {};
96
95
  this.options = options;
97
96
  this.set = [];
98
97
  this.pattern = pattern;
@@ -122,8 +121,7 @@ class Minimatch {
122
121
  }
123
122
  this.parseNegate();
124
123
  let set = this.globSet = this.braceExpand();
125
- if (options.debug)
126
- this.debug = (...args) => console.error(...args);
124
+ if (options.debug) this.debug = (...args) => console.error(...args);
127
125
  this.debug(this.pattern, set);
128
126
  set = this.globParts = set.map((s) => s.split(slashSplit));
129
127
  this.debug(this.pattern, set);
@@ -134,8 +132,7 @@ class Minimatch {
134
132
  this.set = set;
135
133
  }
136
134
  parseNegate() {
137
- if (this.options.nonegate)
138
- return;
135
+ if (this.options.nonegate) return;
139
136
  const pattern = this.pattern;
140
137
  let negate = false;
141
138
  let negateOffset = 0;
@@ -143,8 +140,7 @@ class Minimatch {
143
140
  negate = !negate;
144
141
  negateOffset++;
145
142
  }
146
- if (negateOffset)
147
- this.pattern = pattern.substr(negateOffset);
143
+ if (negateOffset) this.pattern = pattern.substr(negateOffset);
148
144
  this.negate = negate;
149
145
  }
150
146
  // set partial to true to test if, for example,
@@ -164,8 +160,7 @@ class Minimatch {
164
160
  var p = pattern[pi];
165
161
  var f = file[fi];
166
162
  this.debug(pattern, p, f);
167
- if (p === false)
168
- return false;
163
+ if (p === false) return false;
169
164
  if (p === GLOBSTAR) {
170
165
  this.debug("GLOBSTAR", [pattern, p, f]);
171
166
  var fr = fi;
@@ -173,8 +168,7 @@ class Minimatch {
173
168
  if (pr === pl) {
174
169
  this.debug("** at the end");
175
170
  for (; fi < fl; fi++) {
176
- if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
177
- return false;
171
+ if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".") return false;
178
172
  }
179
173
  return true;
180
174
  }
@@ -195,8 +189,7 @@ class Minimatch {
195
189
  }
196
190
  if (partial) {
197
191
  this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
198
- if (fr === fl)
199
- return true;
192
+ if (fr === fl) return true;
200
193
  }
201
194
  return false;
202
195
  }
@@ -208,8 +201,7 @@ class Minimatch {
208
201
  hit = f.match(p);
209
202
  this.debug("pattern match", p, f, hit);
210
203
  }
211
- if (!hit)
212
- return false;
204
+ if (!hit) return false;
213
205
  }
214
206
  if (fi === fl && pi === pl) {
215
207
  return true;
@@ -232,8 +224,7 @@ class Minimatch {
232
224
  else
233
225
  pattern = "*";
234
226
  }
235
- if (pattern === "")
236
- return "";
227
+ if (pattern === "") return "";
237
228
  let re = "";
238
229
  let hasMagic = !!options.nocase;
239
230
  let escaping = false;
@@ -295,16 +286,14 @@ class Minimatch {
295
286
  this.debug("%s %s %s %j <-- stateChar", pattern, i, re, c);
296
287
  if (inClass) {
297
288
  this.debug(" in class");
298
- if (c === "!" && i === classStart + 1)
299
- c = "^";
289
+ if (c === "!" && i === classStart + 1) c = "^";
300
290
  re += c;
301
291
  continue;
302
292
  }
303
293
  this.debug("call clearStateChar %j", stateChar);
304
294
  clearStateChar();
305
295
  stateChar = c;
306
- if (options.noext)
307
- clearStateChar();
296
+ if (options.noext) clearStateChar();
308
297
  continue;
309
298
  case "(":
310
299
  if (inClass) {
@@ -451,8 +440,7 @@ class Minimatch {
451
440
  }
452
441
  }
453
442
  makeRe() {
454
- if (this.regexp || this.regexp === false)
455
- return this.regexp;
443
+ if (this.regexp || this.regexp === false) return this.regexp;
456
444
  const set = this.set;
457
445
  if (!set.length) {
458
446
  this.regexp = false;
@@ -490,8 +478,7 @@ class Minimatch {
490
478
  return pattern.filter((p) => p !== GLOBSTAR).join("/");
491
479
  }).join("|");
492
480
  re = "^(?:" + re + ")$";
493
- if (this.negate)
494
- re = "^(?!" + re + ").*$";
481
+ if (this.negate) re = "^(?!" + re + ").*$";
495
482
  try {
496
483
  this.regexp = new RegExp(re, flags);
497
484
  } catch (ex) {
@@ -501,12 +488,9 @@ class Minimatch {
501
488
  }
502
489
  match(f, partial = this.partial) {
503
490
  this.debug("match", f, this.pattern);
504
- if (this.comment)
505
- return false;
506
- if (this.empty)
507
- return f === "";
508
- if (f === "/" && partial)
509
- return true;
491
+ if (this.comment) return false;
492
+ if (this.empty) return f === "";
493
+ if (f === "/" && partial) return true;
510
494
  const options = this.options;
511
495
  if (path.sep !== "/") {
512
496
  f = f.split(path.sep).join("/");
@@ -518,8 +502,7 @@ class Minimatch {
518
502
  let filename;
519
503
  for (let i = f.length - 1; i >= 0; i--) {
520
504
  filename = f[i];
521
- if (filename)
522
- break;
505
+ if (filename) break;
523
506
  }
524
507
  for (let i = 0; i < set.length; i++) {
525
508
  const pattern = set[i];
@@ -529,13 +512,11 @@ class Minimatch {
529
512
  }
530
513
  const hit = this.matchOne(file, pattern, partial);
531
514
  if (hit) {
532
- if (options.flipNegate)
533
- return true;
515
+ if (options.flipNegate) return true;
534
516
  return !this.negate;
535
517
  }
536
518
  }
537
- if (options.flipNegate)
538
- return false;
519
+ if (options.flipNegate) return false;
539
520
  return this.negate;
540
521
  }
541
522
  static defaults(def) {