@cbnventures/nova 0.13.1 → 0.15.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.
Files changed (902) hide show
  1. package/README.md +48 -0
  2. package/bin/nova.mjs +3 -0
  3. package/build/package.json +38 -32
  4. package/build/src/api/node-releases.d.ts +4 -4
  5. package/build/src/api/node-releases.d.ts.map +1 -1
  6. package/build/src/api/node-releases.js +31 -26
  7. package/build/src/api/node-releases.js.map +1 -1
  8. package/build/src/api/spdx-licenses.d.ts +4 -4
  9. package/build/src/api/spdx-licenses.d.ts.map +1 -1
  10. package/build/src/api/spdx-licenses.js +21 -18
  11. package/build/src/api/spdx-licenses.js.map +1 -1
  12. package/build/src/cli/generate/github/funding.d.ts +5 -0
  13. package/build/src/cli/generate/github/funding.d.ts.map +1 -0
  14. package/build/src/cli/generate/github/funding.js +68 -0
  15. package/build/src/cli/generate/github/funding.js.map +1 -0
  16. package/build/src/cli/generate/github/issue-template.d.ts +5 -0
  17. package/build/src/cli/generate/github/issue-template.d.ts.map +1 -0
  18. package/build/src/cli/generate/github/issue-template.js +267 -0
  19. package/build/src/cli/generate/github/issue-template.js.map +1 -0
  20. package/build/src/cli/generate/github/workflows.d.ts +10 -0
  21. package/build/src/cli/generate/github/workflows.d.ts.map +1 -0
  22. package/build/src/cli/generate/github/workflows.js +464 -0
  23. package/build/src/cli/generate/github/workflows.js.map +1 -0
  24. package/build/src/cli/generate/must-haves/agent-conventions.d.ts +5 -0
  25. package/build/src/cli/generate/must-haves/agent-conventions.d.ts.map +1 -0
  26. package/build/src/cli/generate/must-haves/agent-conventions.js +114 -0
  27. package/build/src/cli/generate/must-haves/agent-conventions.js.map +1 -0
  28. package/build/src/cli/generate/must-haves/dotenv.d.ts +12 -0
  29. package/build/src/cli/generate/must-haves/dotenv.d.ts.map +1 -0
  30. package/build/src/cli/generate/must-haves/dotenv.js +504 -0
  31. package/build/src/cli/generate/must-haves/dotenv.js.map +1 -0
  32. package/build/src/cli/generate/must-haves/editorconfig.d.ts +5 -0
  33. package/build/src/cli/generate/must-haves/editorconfig.d.ts.map +1 -0
  34. package/build/src/cli/generate/must-haves/editorconfig.js +37 -0
  35. package/build/src/cli/generate/must-haves/editorconfig.js.map +1 -0
  36. package/build/src/cli/generate/must-haves/gitignore.d.ts +13 -0
  37. package/build/src/cli/generate/must-haves/gitignore.d.ts.map +1 -0
  38. package/build/src/cli/generate/must-haves/gitignore.js +446 -0
  39. package/build/src/cli/generate/must-haves/gitignore.js.map +1 -0
  40. package/build/src/cli/generate/must-haves/license.d.ts +5 -0
  41. package/build/src/cli/generate/must-haves/license.d.ts.map +1 -0
  42. package/build/src/cli/generate/must-haves/license.js +131 -0
  43. package/build/src/cli/generate/must-haves/license.js.map +1 -0
  44. package/build/src/cli/generate/must-haves/read-me.d.ts +8 -0
  45. package/build/src/cli/generate/must-haves/read-me.d.ts.map +1 -0
  46. package/build/src/cli/generate/must-haves/read-me.js +255 -0
  47. package/build/src/cli/generate/must-haves/read-me.js.map +1 -0
  48. package/build/src/cli/index.js +421 -107
  49. package/build/src/cli/index.js.map +1 -1
  50. package/build/src/cli/recipe/index.d.ts +3 -0
  51. package/build/src/cli/recipe/index.d.ts.map +1 -0
  52. package/build/src/cli/recipe/index.js +57 -0
  53. package/build/src/cli/recipe/index.js.map +1 -0
  54. package/build/src/cli/recipe/package-json/cleanup.d.ts +8 -0
  55. package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -0
  56. package/build/src/cli/recipe/package-json/cleanup.js +183 -0
  57. package/build/src/cli/recipe/package-json/cleanup.js.map +1 -0
  58. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts +8 -0
  59. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -0
  60. package/build/src/cli/recipe/package-json/normalize-artifacts.js +250 -0
  61. package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -0
  62. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts +6 -0
  63. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -0
  64. package/build/src/cli/recipe/package-json/normalize-bundler.js +146 -0
  65. package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -0
  66. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts +9 -0
  67. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -0
  68. package/build/src/cli/recipe/package-json/normalize-dependencies.js +268 -0
  69. package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -0
  70. package/build/src/cli/recipe/package-json/normalize-modules.d.ts +6 -0
  71. package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -0
  72. package/build/src/cli/recipe/package-json/normalize-modules.js +263 -0
  73. package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -0
  74. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts +7 -0
  75. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -0
  76. package/build/src/cli/recipe/package-json/normalize-tooling.js +163 -0
  77. package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -0
  78. package/build/src/cli/recipe/package-json/sync-environment.d.ts +9 -0
  79. package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -0
  80. package/build/src/cli/recipe/package-json/sync-environment.js +283 -0
  81. package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -0
  82. package/build/src/cli/recipe/package-json/sync-identity.d.ts +6 -0
  83. package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -0
  84. package/build/src/cli/recipe/package-json/sync-identity.js +224 -0
  85. package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -0
  86. package/build/src/cli/recipe/package-json/sync-ownership.d.ts +6 -0
  87. package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -0
  88. package/build/src/cli/recipe/package-json/sync-ownership.js +349 -0
  89. package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -0
  90. package/build/src/cli/scaffold/app/expressjs.d.ts +5 -0
  91. package/build/src/cli/scaffold/app/expressjs.d.ts.map +1 -0
  92. package/build/src/cli/scaffold/app/expressjs.js +8 -0
  93. package/build/src/cli/scaffold/app/expressjs.js.map +1 -0
  94. package/build/src/cli/scaffold/app/nextjs.d.ts +5 -0
  95. package/build/src/cli/scaffold/app/nextjs.d.ts.map +1 -0
  96. package/build/src/cli/scaffold/app/nextjs.js +8 -0
  97. package/build/src/cli/scaffold/app/nextjs.js.map +1 -0
  98. package/build/src/cli/scaffold/app/vite.d.ts +5 -0
  99. package/build/src/cli/scaffold/app/vite.d.ts.map +1 -0
  100. package/build/src/cli/scaffold/app/vite.js +8 -0
  101. package/build/src/cli/scaffold/app/vite.js.map +1 -0
  102. package/build/src/cli/scaffold/app/workers.d.ts +5 -0
  103. package/build/src/cli/scaffold/app/workers.d.ts.map +1 -0
  104. package/build/src/cli/scaffold/app/workers.js +8 -0
  105. package/build/src/cli/scaffold/app/workers.js.map +1 -0
  106. package/build/src/cli/scaffold/docs/docusaurus.d.ts +5 -0
  107. package/build/src/cli/scaffold/docs/docusaurus.d.ts.map +1 -0
  108. package/build/src/cli/scaffold/docs/docusaurus.js +8 -0
  109. package/build/src/cli/scaffold/docs/docusaurus.js.map +1 -0
  110. package/build/src/cli/scaffold/starter/base.d.ts +5 -0
  111. package/build/src/cli/scaffold/starter/base.d.ts.map +1 -0
  112. package/build/src/cli/scaffold/starter/base.js +132 -0
  113. package/build/src/cli/scaffold/starter/base.js.map +1 -0
  114. package/build/src/cli/utility/changelog.d.ts +3 -3
  115. package/build/src/cli/utility/changelog.d.ts.map +1 -1
  116. package/build/src/cli/utility/changelog.js +207 -173
  117. package/build/src/cli/utility/changelog.js.map +1 -1
  118. package/build/src/cli/utility/initialize.d.ts +6 -3
  119. package/build/src/cli/utility/initialize.d.ts.map +1 -1
  120. package/build/src/cli/utility/initialize.js +1194 -284
  121. package/build/src/cli/utility/initialize.js.map +1 -1
  122. package/build/src/cli/utility/run-recipes.d.ts +5 -0
  123. package/build/src/cli/utility/run-recipes.d.ts.map +1 -0
  124. package/build/src/cli/utility/run-recipes.js +43 -0
  125. package/build/src/cli/utility/run-recipes.js.map +1 -0
  126. package/build/src/cli/utility/run-scripts.d.ts +10 -0
  127. package/build/src/cli/utility/run-scripts.d.ts.map +1 -0
  128. package/build/src/cli/utility/run-scripts.js +257 -0
  129. package/build/src/cli/utility/run-scripts.js.map +1 -0
  130. package/build/src/cli/utility/transpile.d.ts +9 -0
  131. package/build/src/cli/utility/transpile.d.ts.map +1 -0
  132. package/build/src/cli/utility/transpile.js +64 -0
  133. package/build/src/cli/utility/transpile.js.map +1 -0
  134. package/build/src/cli/utility/type-check.d.ts +3 -3
  135. package/build/src/cli/utility/type-check.d.ts.map +1 -1
  136. package/build/src/cli/utility/type-check.js +26 -21
  137. package/build/src/cli/utility/type-check.js.map +1 -1
  138. package/build/src/cli/utility/version.d.ts +3 -3
  139. package/build/src/cli/utility/version.d.ts.map +1 -1
  140. package/build/src/cli/utility/version.js +126 -68
  141. package/build/src/cli/utility/version.js.map +1 -1
  142. package/build/src/lib/item.d.ts +31 -24
  143. package/build/src/lib/item.d.ts.map +1 -1
  144. package/build/src/lib/item.js +129 -39
  145. package/build/src/lib/item.js.map +1 -1
  146. package/build/src/lib/nova-config.d.ts +6 -5
  147. package/build/src/lib/nova-config.d.ts.map +1 -1
  148. package/build/src/lib/nova-config.js +252 -69
  149. package/build/src/lib/nova-config.js.map +1 -1
  150. package/build/src/lib/regex.d.ts +92 -26
  151. package/build/src/lib/regex.d.ts.map +1 -1
  152. package/build/src/lib/regex.js +92 -26
  153. package/build/src/lib/regex.js.map +1 -1
  154. package/build/src/lib/scaffold.d.ts +10 -0
  155. package/build/src/lib/scaffold.d.ts.map +1 -0
  156. package/build/src/lib/scaffold.js +535 -0
  157. package/build/src/lib/scaffold.js.map +1 -0
  158. package/build/src/lib/schema.d.ts +2 -9
  159. package/build/src/lib/schema.d.ts.map +1 -1
  160. package/build/src/lib/schema.js +6 -8
  161. package/build/src/lib/schema.js.map +1 -1
  162. package/build/src/lib/utility.d.ts +21 -18
  163. package/build/src/lib/utility.d.ts.map +1 -1
  164. package/build/src/lib/utility.js +176 -79
  165. package/build/src/lib/utility.js.map +1 -1
  166. package/build/src/lib/workflow-templates.d.ts +3 -0
  167. package/build/src/lib/workflow-templates.d.ts.map +1 -0
  168. package/build/src/lib/workflow-templates.js +187 -0
  169. package/build/src/lib/workflow-templates.js.map +1 -0
  170. package/build/src/presets/eslint/dx-code-style.d.ts +4 -0
  171. package/build/src/presets/eslint/dx-code-style.d.ts.map +1 -0
  172. package/build/src/presets/eslint/dx-code-style.js +523 -0
  173. package/build/src/presets/eslint/dx-code-style.js.map +1 -0
  174. package/build/src/presets/eslint/dx-ignore.d.ts +4 -0
  175. package/build/src/presets/eslint/dx-ignore.d.ts.map +1 -0
  176. package/build/src/presets/eslint/{dx-ignore.mjs → dx-ignore.js} +1 -1
  177. package/build/src/presets/eslint/dx-ignore.js.map +1 -0
  178. package/build/src/presets/eslint/fw-docusaurus.d.ts +4 -0
  179. package/build/src/presets/eslint/fw-docusaurus.d.ts.map +1 -0
  180. package/build/src/presets/eslint/fw-docusaurus.js +6 -0
  181. package/build/src/presets/eslint/fw-docusaurus.js.map +1 -0
  182. package/build/src/presets/eslint/fw-expressjs.d.ts +4 -0
  183. package/build/src/presets/eslint/fw-expressjs.d.ts.map +1 -0
  184. package/build/src/presets/eslint/{fw-expressjs.mjs → fw-expressjs.js} +3 -5
  185. package/build/src/presets/eslint/fw-expressjs.js.map +1 -0
  186. package/build/src/presets/eslint/fw-nextjs.d.ts +4 -0
  187. package/build/src/presets/eslint/fw-nextjs.d.ts.map +1 -0
  188. package/build/src/presets/eslint/{fw-nextjs.mjs → fw-nextjs.js} +3 -5
  189. package/build/src/presets/eslint/fw-nextjs.js.map +1 -0
  190. package/build/src/presets/eslint/index.d.ts +16 -0
  191. package/build/src/presets/eslint/index.d.ts.map +1 -0
  192. package/build/src/presets/eslint/index.js +16 -0
  193. package/build/src/presets/eslint/index.js.map +1 -0
  194. package/build/src/presets/eslint/lang-javascript.d.ts +4 -0
  195. package/build/src/presets/eslint/lang-javascript.d.ts.map +1 -0
  196. package/build/src/presets/eslint/lang-javascript.js +34 -0
  197. package/build/src/presets/eslint/lang-javascript.js.map +1 -0
  198. package/build/src/presets/eslint/lang-mdx.d.ts +4 -0
  199. package/build/src/presets/eslint/lang-mdx.d.ts.map +1 -0
  200. package/build/src/presets/eslint/{lang-mdx.mjs → lang-mdx.js} +4 -8
  201. package/build/src/presets/eslint/lang-mdx.js.map +1 -0
  202. package/build/src/presets/eslint/lang-typescript.d.ts +4 -0
  203. package/build/src/presets/eslint/lang-typescript.d.ts.map +1 -0
  204. package/build/src/presets/eslint/lang-typescript.js +148 -0
  205. package/build/src/presets/eslint/lang-typescript.js.map +1 -0
  206. package/build/src/presets/eslint/runtime-browser.d.ts +4 -0
  207. package/build/src/presets/eslint/runtime-browser.d.ts.map +1 -0
  208. package/build/src/presets/eslint/{env-web-worker.mjs → runtime-browser.js} +1 -1
  209. package/build/src/presets/eslint/runtime-browser.js.map +1 -0
  210. package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts +4 -0
  211. package/build/src/presets/eslint/runtime-cloudflare-workers.d.ts.map +1 -0
  212. package/build/src/presets/eslint/runtime-cloudflare-workers.js +6 -0
  213. package/build/src/presets/eslint/runtime-cloudflare-workers.js.map +1 -0
  214. package/build/src/presets/eslint/runtime-edge.d.ts +4 -0
  215. package/build/src/presets/eslint/runtime-edge.d.ts.map +1 -0
  216. package/build/src/presets/eslint/{env-edge.mjs → runtime-edge.js} +1 -1
  217. package/build/src/presets/eslint/runtime-edge.js.map +1 -0
  218. package/build/src/presets/eslint/runtime-node.d.ts +4 -0
  219. package/build/src/presets/eslint/runtime-node.d.ts.map +1 -0
  220. package/build/src/presets/eslint/{env-node.mjs → runtime-node.js} +4 -4
  221. package/build/src/presets/eslint/runtime-node.js.map +1 -0
  222. package/build/src/presets/eslint/runtime-service-worker.d.ts +4 -0
  223. package/build/src/presets/eslint/runtime-service-worker.d.ts.map +1 -0
  224. package/build/src/presets/eslint/runtime-service-worker.js +3 -0
  225. package/build/src/presets/eslint/runtime-service-worker.js.map +1 -0
  226. package/build/src/presets/eslint/runtime-web-worker.d.ts +4 -0
  227. package/build/src/presets/eslint/runtime-web-worker.d.ts.map +1 -0
  228. package/build/src/presets/eslint/runtime-web-worker.js +3 -0
  229. package/build/src/presets/eslint/runtime-web-worker.js.map +1 -0
  230. package/build/src/presets/eslint/tool-vite.d.ts +4 -0
  231. package/build/src/presets/eslint/tool-vite.d.ts.map +1 -0
  232. package/build/src/presets/eslint/{tool-vite.mjs → tool-vite.js} +3 -5
  233. package/build/src/presets/eslint/tool-vite.js.map +1 -0
  234. package/build/src/presets/tsconfig/dx-strict.json +1 -0
  235. package/build/src/presets/tsconfig/runtime-cloudflare-workers.json +12 -0
  236. package/build/src/presets/tsconfig/{platform-cloudflare-workers.json → runtime-web-worker.json} +2 -2
  237. package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts +11 -0
  238. package/build/src/rules/eslint/conventions/no-default-export-declaration.d.ts.map +1 -0
  239. package/build/src/rules/eslint/conventions/no-default-export-declaration.js +73 -0
  240. package/build/src/rules/eslint/conventions/no-default-export-declaration.js.map +1 -0
  241. package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts +15 -0
  242. package/build/src/rules/eslint/conventions/no-implicit-boolean.d.ts.map +1 -0
  243. package/build/src/rules/eslint/conventions/no-implicit-boolean.js +140 -0
  244. package/build/src/rules/eslint/conventions/no-implicit-boolean.js.map +1 -0
  245. package/build/src/rules/eslint/conventions/require-explicit-return.d.ts +15 -0
  246. package/build/src/rules/eslint/conventions/require-explicit-return.d.ts.map +1 -0
  247. package/build/src/rules/eslint/conventions/require-explicit-return.js +184 -0
  248. package/build/src/rules/eslint/conventions/require-explicit-return.js.map +1 -0
  249. package/build/src/rules/eslint/conventions/require-hash-private.d.ts +12 -0
  250. package/build/src/rules/eslint/conventions/require-hash-private.d.ts.map +1 -0
  251. package/build/src/rules/eslint/conventions/require-hash-private.js +67 -0
  252. package/build/src/rules/eslint/conventions/require-hash-private.js.map +1 -0
  253. package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts +14 -0
  254. package/build/src/rules/eslint/conventions/require-kebab-case-filename.d.ts.map +1 -0
  255. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js +95 -0
  256. package/build/src/rules/eslint/conventions/require-kebab-case-filename.js.map +1 -0
  257. package/build/src/rules/eslint/conventions/require-naming-convention.d.ts +34 -0
  258. package/build/src/rules/eslint/conventions/require-naming-convention.d.ts.map +1 -0
  259. package/build/src/rules/eslint/conventions/require-naming-convention.js +382 -0
  260. package/build/src/rules/eslint/conventions/require-naming-convention.js.map +1 -0
  261. package/build/src/rules/eslint/conventions/require-undefined-init.d.ts +11 -0
  262. package/build/src/rules/eslint/conventions/require-undefined-init.d.ts.map +1 -0
  263. package/build/src/rules/eslint/conventions/require-undefined-init.js +71 -0
  264. package/build/src/rules/eslint/conventions/require-undefined-init.js.map +1 -0
  265. package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts +13 -0
  266. package/build/src/rules/eslint/conventions/switch-case-blocks.d.ts.map +1 -0
  267. package/build/src/rules/eslint/conventions/switch-case-blocks.js +82 -0
  268. package/build/src/rules/eslint/conventions/switch-case-blocks.js.map +1 -0
  269. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts +15 -0
  270. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.d.ts.map +1 -0
  271. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js +166 -0
  272. package/build/src/rules/eslint/formatting/no-complex-arrow-concise.js.map +1 -0
  273. package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts +15 -0
  274. package/build/src/rules/eslint/formatting/no-multiline-strings.d.ts.map +1 -0
  275. package/build/src/rules/eslint/formatting/no-multiline-strings.js +162 -0
  276. package/build/src/rules/eslint/formatting/no-multiline-strings.js.map +1 -0
  277. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts +11 -0
  278. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -0
  279. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +57 -0
  280. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -0
  281. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +11 -0
  282. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.d.ts.map +1 -0
  283. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js +55 -0
  284. package/build/src/rules/eslint/formatting/no-ternary-in-template-literal.js.map +1 -0
  285. package/build/src/rules/eslint/formatting/require-import-order.d.ts +14 -0
  286. package/build/src/rules/eslint/formatting/require-import-order.d.ts.map +1 -0
  287. package/build/src/rules/eslint/formatting/require-import-order.js +187 -0
  288. package/build/src/rules/eslint/formatting/require-import-order.js.map +1 -0
  289. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts +13 -0
  290. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.d.ts.map +1 -0
  291. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js +138 -0
  292. package/build/src/rules/eslint/formatting/require-multiline-condition-groups.js.map +1 -0
  293. package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts +13 -0
  294. package/build/src/rules/eslint/formatting/require-multiline-conditions.d.ts.map +1 -0
  295. package/build/src/rules/eslint/formatting/require-multiline-conditions.js +94 -0
  296. package/build/src/rules/eslint/formatting/require-multiline-conditions.js.map +1 -0
  297. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts +25 -0
  298. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -0
  299. package/build/src/rules/eslint/formatting/require-padding-lines.js +309 -0
  300. package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -0
  301. package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts +11 -0
  302. package/build/src/rules/eslint/formatting/require-ternary-parens.d.ts.map +1 -0
  303. package/build/src/rules/eslint/formatting/require-ternary-parens.js +76 -0
  304. package/build/src/rules/eslint/formatting/require-ternary-parens.js.map +1 -0
  305. package/build/src/rules/eslint/index.d.ts +44 -5
  306. package/build/src/rules/eslint/index.d.ts.map +1 -1
  307. package/build/src/rules/eslint/index.js +44 -5
  308. package/build/src/rules/eslint/index.js.map +1 -1
  309. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts +15 -0
  310. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.d.ts.map +1 -0
  311. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js +176 -0
  312. package/build/src/rules/eslint/jsdoc/require-jsdoc-body.js.map +1 -0
  313. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +26 -0
  314. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts.map +1 -0
  315. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js +495 -0
  316. package/build/src/rules/eslint/jsdoc/require-jsdoc-hierarchy.js.map +1 -0
  317. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +12 -0
  318. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts.map +1 -0
  319. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js +144 -0
  320. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-alignment.js.map +1 -0
  321. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +12 -0
  322. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts.map +1 -0
  323. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js +97 -0
  324. package/build/src/rules/eslint/jsdoc/require-jsdoc-param-name.js.map +1 -0
  325. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts +11 -0
  326. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.d.ts.map +1 -0
  327. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js +90 -0
  328. package/build/src/rules/eslint/jsdoc/require-jsdoc-private.js.map +1 -0
  329. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts +11 -0
  330. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.d.ts.map +1 -0
  331. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js +88 -0
  332. package/build/src/rules/eslint/jsdoc/require-jsdoc-since.js.map +1 -0
  333. package/build/src/rules/eslint/nova/no-logger-dev.d.ts +13 -0
  334. package/build/src/rules/eslint/nova/no-logger-dev.d.ts.map +1 -0
  335. package/build/src/rules/eslint/nova/no-logger-dev.js +112 -0
  336. package/build/src/rules/eslint/nova/no-logger-dev.js.map +1 -0
  337. package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts +11 -0
  338. package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts.map +1 -0
  339. package/build/src/rules/eslint/patterns/no-assign-then-return.js +96 -0
  340. package/build/src/rules/eslint/patterns/no-assign-then-return.js.map +1 -0
  341. package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts +17 -0
  342. package/build/src/rules/eslint/patterns/no-await-in-loop.d.ts.map +1 -0
  343. package/build/src/rules/eslint/patterns/no-await-in-loop.js +103 -0
  344. package/build/src/rules/eslint/patterns/no-await-in-loop.js.map +1 -0
  345. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts +11 -0
  346. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.d.ts.map +1 -0
  347. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js +100 -0
  348. package/build/src/rules/eslint/patterns/no-boolean-var-for-if.js.map +1 -0
  349. package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts +11 -0
  350. package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts.map +1 -0
  351. package/build/src/rules/eslint/patterns/no-bracket-assignment.js +69 -0
  352. package/build/src/rules/eslint/patterns/no-bracket-assignment.js.map +1 -0
  353. package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts +12 -0
  354. package/build/src/rules/eslint/patterns/no-bracket-method-call.d.ts.map +1 -0
  355. package/build/src/rules/eslint/patterns/no-bracket-method-call.js +86 -0
  356. package/build/src/rules/eslint/patterns/no-bracket-method-call.js.map +1 -0
  357. package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts +11 -0
  358. package/build/src/rules/eslint/patterns/no-template-curly-in-string.d.ts.map +1 -0
  359. package/build/src/rules/eslint/patterns/no-template-curly-in-string.js +77 -0
  360. package/build/src/rules/eslint/patterns/no-template-curly-in-string.js.map +1 -0
  361. package/build/src/rules/eslint/patterns/no-use-before-define.d.ts +15 -0
  362. package/build/src/rules/eslint/patterns/no-use-before-define.d.ts.map +1 -0
  363. package/build/src/rules/eslint/patterns/no-use-before-define.js +148 -0
  364. package/build/src/rules/eslint/patterns/no-use-before-define.js.map +1 -0
  365. package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts +11 -0
  366. package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts.map +1 -0
  367. package/build/src/rules/eslint/regex/no-regex-literal-flags.js +55 -0
  368. package/build/src/rules/eslint/regex/no-regex-literal-flags.js.map +1 -0
  369. package/build/src/rules/eslint/regex/no-regex-literals.d.ts +12 -0
  370. package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -0
  371. package/build/src/rules/eslint/regex/no-regex-literals.js +72 -0
  372. package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -0
  373. package/build/src/rules/eslint/safety/no-script-url.d.ts +12 -0
  374. package/build/src/rules/eslint/safety/no-script-url.d.ts.map +1 -0
  375. package/build/src/rules/eslint/safety/no-script-url.js +71 -0
  376. package/build/src/rules/eslint/safety/no-script-url.js.map +1 -0
  377. package/build/src/rules/eslint/syntax/no-destructuring.d.ts +21 -0
  378. package/build/src/rules/eslint/syntax/no-destructuring.d.ts.map +1 -0
  379. package/build/src/rules/eslint/syntax/no-destructuring.js +219 -0
  380. package/build/src/rules/eslint/syntax/no-destructuring.js.map +1 -0
  381. package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts +14 -0
  382. package/build/src/rules/eslint/syntax/no-numeric-literals.d.ts.map +1 -0
  383. package/build/src/rules/eslint/syntax/no-numeric-literals.js +108 -0
  384. package/build/src/rules/eslint/syntax/no-numeric-literals.js.map +1 -0
  385. package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts +11 -0
  386. package/build/src/rules/eslint/syntax/no-optional-chaining.d.ts.map +1 -0
  387. package/build/src/rules/eslint/syntax/no-optional-chaining.js +51 -0
  388. package/build/src/rules/eslint/syntax/no-optional-chaining.js.map +1 -0
  389. package/build/src/rules/eslint/syntax/no-rest-params.d.ts +15 -0
  390. package/build/src/rules/eslint/syntax/no-rest-params.d.ts.map +1 -0
  391. package/build/src/rules/eslint/syntax/no-rest-params.js +158 -0
  392. package/build/src/rules/eslint/syntax/no-rest-params.js.map +1 -0
  393. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +11 -0
  394. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts.map +1 -0
  395. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js +65 -0
  396. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js.map +1 -0
  397. package/build/src/rules/eslint/typescript/no-explicit-any.d.ts +11 -0
  398. package/build/src/rules/eslint/typescript/no-explicit-any.d.ts.map +1 -0
  399. package/build/src/rules/eslint/typescript/no-explicit-any.js +51 -0
  400. package/build/src/rules/eslint/typescript/no-explicit-any.js.map +1 -0
  401. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts +16 -0
  402. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -0
  403. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +186 -0
  404. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -0
  405. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +12 -0
  406. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -0
  407. package/build/src/rules/eslint/typescript/no-shared-type-import.js +71 -0
  408. package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -0
  409. package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts +12 -0
  410. package/build/src/rules/eslint/typescript/require-bracket-property-access.d.ts.map +1 -0
  411. package/build/src/rules/eslint/typescript/require-bracket-property-access.js +115 -0
  412. package/build/src/rules/eslint/typescript/require-bracket-property-access.js.map +1 -0
  413. package/build/src/rules/eslint/typescript/require-type-naming.d.ts +12 -0
  414. package/build/src/rules/eslint/typescript/require-type-naming.d.ts.map +1 -0
  415. package/build/src/rules/eslint/typescript/require-type-naming.js +98 -0
  416. package/build/src/rules/eslint/typescript/require-type-naming.js.map +1 -0
  417. package/build/src/toolkit/bootstrap.d.ts +13 -0
  418. package/build/src/toolkit/bootstrap.d.ts.map +1 -0
  419. package/build/src/toolkit/bootstrap.js +175 -0
  420. package/build/src/toolkit/bootstrap.js.map +1 -0
  421. package/build/src/toolkit/cli-header.d.ts +5 -4
  422. package/build/src/toolkit/cli-header.d.ts.map +1 -1
  423. package/build/src/toolkit/cli-header.js +77 -63
  424. package/build/src/toolkit/cli-header.js.map +1 -1
  425. package/build/src/toolkit/index.d.ts +1 -0
  426. package/build/src/toolkit/index.d.ts.map +1 -1
  427. package/build/src/toolkit/index.js +1 -0
  428. package/build/src/toolkit/index.js.map +1 -1
  429. package/build/src/toolkit/logger.d.ts +9 -8
  430. package/build/src/toolkit/logger.d.ts.map +1 -1
  431. package/build/src/toolkit/logger.js +51 -32
  432. package/build/src/toolkit/logger.js.map +1 -1
  433. package/build/src/toolkit/markdown-table.d.ts +6 -5
  434. package/build/src/toolkit/markdown-table.d.ts.map +1 -1
  435. package/build/src/toolkit/markdown-table.js +36 -20
  436. package/build/src/toolkit/markdown-table.js.map +1 -1
  437. package/build/src/types/api/node-releases.d.ts +51 -0
  438. package/build/src/types/api/spdx-licenses.d.ts +41 -0
  439. package/build/src/types/cli/generate/github/funding.d.ts +59 -0
  440. package/build/src/types/cli/generate/github/issue-template.d.ts +142 -0
  441. package/build/src/types/cli/generate/github/workflows.d.ts +336 -0
  442. package/build/src/types/cli/generate/must-haves/agent-conventions.d.ts +43 -0
  443. package/build/src/types/cli/generate/must-haves/dotenv.d.ts +414 -0
  444. package/build/src/types/cli/generate/must-haves/editorconfig.d.ts +33 -0
  445. package/build/src/types/cli/generate/must-haves/gitignore.d.ts +344 -0
  446. package/build/src/types/cli/generate/must-haves/license.d.ts +72 -0
  447. package/build/src/types/cli/generate/must-haves/read-me.d.ts +175 -0
  448. package/build/src/types/cli/index.d.ts +182 -0
  449. package/build/src/types/cli/recipe/index.d.ts +36 -0
  450. package/build/src/types/cli/recipe/package-json/cleanup.d.ts +125 -0
  451. package/build/src/types/cli/recipe/package-json/normalize-artifacts.d.ts +104 -0
  452. package/build/src/types/cli/recipe/package-json/normalize-bundler.d.ts +78 -0
  453. package/build/src/types/cli/recipe/package-json/normalize-dependencies.d.ts +150 -0
  454. package/build/src/types/cli/recipe/package-json/normalize-modules.d.ts +76 -0
  455. package/build/src/types/cli/recipe/package-json/normalize-tooling.d.ts +89 -0
  456. package/build/src/types/cli/recipe/package-json/sync-environment.d.ts +140 -0
  457. package/build/src/types/cli/recipe/package-json/sync-identity.d.ts +107 -0
  458. package/build/src/types/cli/recipe/package-json/sync-ownership.d.ts +152 -0
  459. package/build/src/types/cli/scaffold/app/expressjs.d.ts +21 -0
  460. package/build/src/types/cli/scaffold/app/nextjs.d.ts +21 -0
  461. package/build/src/types/cli/scaffold/app/vite.d.ts +21 -0
  462. package/build/src/types/cli/scaffold/app/workers.d.ts +21 -0
  463. package/build/src/types/cli/scaffold/docs/docusaurus.d.ts +21 -0
  464. package/build/src/types/cli/scaffold/starter/base.d.ts +57 -0
  465. package/build/src/types/cli/utility/changelog.d.ts +381 -0
  466. package/build/src/types/cli/utility/initialize.d.ts +1185 -0
  467. package/build/src/types/cli/utility/run-recipes.d.ts +25 -0
  468. package/build/src/types/cli/utility/run-scripts.d.ts +133 -0
  469. package/build/src/types/cli/utility/transpile.d.ts +90 -0
  470. package/build/src/types/cli/utility/type-check.d.ts +88 -0
  471. package/build/src/types/cli/utility/version.d.ts +286 -0
  472. package/build/src/types/fetch-response.d.ts +12 -0
  473. package/build/src/types/lib/item.d.ts +536 -0
  474. package/build/src/types/lib/nova-config.d.ts +421 -0
  475. package/build/src/types/lib/scaffold.d.ts +342 -0
  476. package/build/src/types/lib/utility.d.ts +486 -0
  477. package/build/src/types/lib/workflow-templates.d.ts +48 -0
  478. package/build/src/types/presets/eslint/dx-code-style.d.ts +8 -0
  479. package/build/src/types/presets/eslint/dx-ignore.d.ts +8 -0
  480. package/build/src/types/presets/eslint/fw-docusaurus.d.ts +8 -0
  481. package/build/src/types/presets/eslint/fw-expressjs.d.ts +8 -0
  482. package/build/src/types/presets/eslint/fw-nextjs.d.ts +8 -0
  483. package/build/src/types/presets/eslint/lang-javascript.d.ts +8 -0
  484. package/build/src/types/presets/eslint/lang-mdx.d.ts +8 -0
  485. package/build/src/types/presets/eslint/lang-typescript.d.ts +8 -0
  486. package/build/src/types/presets/eslint/runtime-browser.d.ts +8 -0
  487. package/build/src/types/presets/eslint/runtime-cloudflare-workers.d.ts +8 -0
  488. package/build/src/types/presets/eslint/runtime-edge.d.ts +8 -0
  489. package/build/src/types/presets/eslint/runtime-node.d.ts +8 -0
  490. package/build/src/types/presets/eslint/runtime-service-worker.d.ts +8 -0
  491. package/build/src/types/presets/eslint/runtime-web-worker.d.ts +8 -0
  492. package/build/src/types/presets/eslint/tool-vite.d.ts +8 -0
  493. package/build/src/types/rules/eslint/conventions/no-default-export-declaration.d.ts +32 -0
  494. package/build/src/types/rules/eslint/conventions/no-implicit-boolean.d.ts +72 -0
  495. package/build/src/types/rules/eslint/conventions/require-explicit-return.d.ts +73 -0
  496. package/build/src/types/rules/eslint/conventions/require-hash-private.d.ts +31 -0
  497. package/build/src/types/rules/eslint/conventions/require-kebab-case-filename.d.ts +64 -0
  498. package/build/src/types/rules/eslint/conventions/require-naming-convention.d.ts +265 -0
  499. package/build/src/types/rules/eslint/conventions/require-undefined-init.d.ts +30 -0
  500. package/build/src/types/rules/eslint/conventions/switch-case-blocks.d.ts +48 -0
  501. package/build/src/types/rules/eslint/formatting/no-complex-arrow-concise.d.ts +74 -0
  502. package/build/src/types/rules/eslint/formatting/no-multiline-strings.d.ts +104 -0
  503. package/build/src/types/rules/eslint/formatting/no-raw-text-in-code.d.ts +28 -0
  504. package/build/src/types/rules/eslint/formatting/no-ternary-in-template-literal.d.ts +26 -0
  505. package/build/src/types/rules/eslint/formatting/require-import-order.d.ts +91 -0
  506. package/build/src/types/rules/eslint/formatting/require-multiline-condition-groups.d.ts +64 -0
  507. package/build/src/types/rules/eslint/formatting/require-multiline-conditions.d.ts +52 -0
  508. package/build/src/types/rules/eslint/formatting/require-padding-lines.d.ts +212 -0
  509. package/build/src/types/rules/eslint/formatting/require-ternary-parens.d.ts +32 -0
  510. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-body.d.ts +56 -0
  511. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-hierarchy.d.ts +302 -0
  512. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-alignment.d.ts +108 -0
  513. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-param-name.d.ts +61 -0
  514. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-private.d.ts +40 -0
  515. package/build/src/types/rules/eslint/jsdoc/require-jsdoc-since.d.ts +30 -0
  516. package/build/src/types/rules/eslint/nova/no-logger-dev.d.ts +60 -0
  517. package/build/src/types/rules/eslint/patterns/no-assign-then-return.d.ts +42 -0
  518. package/build/src/types/rules/eslint/patterns/no-await-in-loop.d.ts +87 -0
  519. package/build/src/types/rules/eslint/patterns/no-boolean-var-for-if.d.ts +48 -0
  520. package/build/src/types/rules/eslint/patterns/no-bracket-assignment.d.ts +34 -0
  521. package/build/src/types/rules/eslint/patterns/no-bracket-method-call.d.ts +46 -0
  522. package/build/src/types/rules/eslint/patterns/no-template-curly-in-string.d.ts +32 -0
  523. package/build/src/types/rules/eslint/patterns/no-use-before-define.d.ts +84 -0
  524. package/build/src/types/rules/eslint/regex/no-regex-literal-flags.d.ts +26 -0
  525. package/build/src/types/rules/eslint/regex/no-regex-literals.d.ts +40 -0
  526. package/build/src/types/rules/eslint/safety/no-script-url.d.ts +37 -0
  527. package/build/src/types/rules/eslint/syntax/no-destructuring.d.ts +131 -0
  528. package/build/src/types/rules/eslint/syntax/no-numeric-literals.d.ts +57 -0
  529. package/build/src/types/rules/eslint/syntax/no-optional-chaining.d.ts +26 -0
  530. package/build/src/types/rules/eslint/syntax/no-rest-params.d.ts +78 -0
  531. package/build/src/types/rules/eslint/typescript/no-catch-unknown-annotation.d.ts +30 -0
  532. package/build/src/types/rules/eslint/typescript/no-explicit-any.d.ts +26 -0
  533. package/build/src/types/rules/eslint/typescript/no-inline-type-annotation.d.ts +94 -0
  534. package/build/src/types/rules/eslint/typescript/no-shared-type-import.d.ts +43 -0
  535. package/build/src/types/rules/eslint/typescript/require-bracket-property-access.d.ts +53 -0
  536. package/build/src/types/rules/eslint/typescript/require-type-naming.d.ts +51 -0
  537. package/build/src/types/shared.d.ts +724 -0
  538. package/build/src/types/tests/api/node-releases.test.d.ts +14 -0
  539. package/build/src/types/tests/api/spdx-licenses.test.d.ts +18 -0
  540. package/build/src/types/tests/cli/generate/github/funding.test.d.ts +26 -0
  541. package/build/src/types/tests/cli/generate/github/issue-template.test.d.ts +14 -0
  542. package/build/src/types/tests/cli/generate/github/workflows.test.d.ts +38 -0
  543. package/build/src/types/tests/cli/generate/must-haves/agent-conventions.test.d.ts +32 -0
  544. package/build/src/types/tests/cli/generate/must-haves/dotenv.test.d.ts +14 -0
  545. package/build/src/types/tests/cli/generate/must-haves/editorconfig.test.d.ts +22 -0
  546. package/build/src/types/tests/cli/generate/must-haves/gitignore.test.d.ts +14 -0
  547. package/build/src/types/tests/cli/generate/must-haves/license.test.d.ts +26 -0
  548. package/build/src/types/tests/cli/generate/must-haves/read-me.test.d.ts +26 -0
  549. package/build/src/types/tests/cli/recipe/package-json/cleanup.test.d.ts +42 -0
  550. package/build/src/types/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +32 -0
  551. package/build/src/types/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +32 -0
  552. package/build/src/types/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +40 -0
  553. package/build/src/types/tests/cli/recipe/package-json/normalize-modules.test.d.ts +32 -0
  554. package/build/src/types/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +32 -0
  555. package/build/src/types/tests/cli/recipe/package-json/sync-environment.test.d.ts +32 -0
  556. package/build/src/types/tests/cli/recipe/package-json/sync-identity.test.d.ts +32 -0
  557. package/build/src/types/tests/cli/recipe/package-json/sync-ownership.test.d.ts +32 -0
  558. package/build/src/types/tests/cli/scaffold/app/expressjs.test.d.ts +40 -0
  559. package/build/src/types/tests/cli/scaffold/app/nextjs.test.d.ts +42 -0
  560. package/build/src/types/tests/cli/scaffold/app/vite.test.d.ts +42 -0
  561. package/build/src/types/tests/cli/scaffold/app/workers.test.d.ts +40 -0
  562. package/build/src/types/tests/cli/scaffold/docs/docusaurus.test.d.ts +40 -0
  563. package/build/src/types/tests/cli/scaffold/starter/base.test.d.ts +40 -0
  564. package/build/src/types/tests/cli/utility/changelog.test.d.ts +68 -0
  565. package/build/src/types/tests/cli/utility/initialize.test.d.ts +14 -0
  566. package/build/src/types/tests/cli/utility/run-recipes.test.d.ts +22 -0
  567. package/build/src/types/tests/cli/utility/run-scripts.test.d.ts +52 -0
  568. package/build/src/types/tests/cli/utility/transpile.test.d.ts +26 -0
  569. package/build/src/types/tests/cli/utility/type-check.test.d.ts +22 -0
  570. package/build/src/types/tests/cli/utility/version.test.d.ts +12 -0
  571. package/build/src/types/tests/lib/item.test.d.ts +88 -0
  572. package/build/src/types/tests/lib/nova-config.test.d.ts +138 -0
  573. package/build/src/types/tests/lib/regex.test.d.ts +122 -0
  574. package/build/src/types/tests/lib/scaffold.test.d.ts +26 -0
  575. package/build/src/types/tests/lib/schema.test.d.ts +36 -0
  576. package/build/src/types/tests/lib/utility.test.d.ts +324 -0
  577. package/build/src/types/tests/lib/workflow-templates.test.d.ts +77 -0
  578. package/build/src/types/tests/rules/eslint/conventions/no-default-export-declaration.test.d.ts +8 -0
  579. package/build/src/types/tests/rules/eslint/conventions/no-implicit-boolean.test.d.ts +8 -0
  580. package/build/src/types/tests/rules/eslint/conventions/require-explicit-return.test.d.ts +8 -0
  581. package/build/src/types/tests/rules/eslint/conventions/require-hash-private.test.d.ts +8 -0
  582. package/build/src/types/tests/rules/eslint/conventions/require-kebab-case-filename.test.d.ts +8 -0
  583. package/build/src/types/tests/rules/eslint/conventions/require-naming-convention.test.d.ts +8 -0
  584. package/build/src/types/tests/rules/eslint/conventions/require-undefined-init.test.d.ts +8 -0
  585. package/build/src/types/tests/rules/eslint/conventions/switch-case-blocks.test.d.ts +8 -0
  586. package/build/src/types/tests/rules/eslint/formatting/no-complex-arrow-concise.test.d.ts +8 -0
  587. package/build/src/types/tests/rules/eslint/formatting/no-multiline-strings.test.d.ts +8 -0
  588. package/build/src/types/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +8 -0
  589. package/build/src/types/tests/rules/eslint/formatting/no-ternary-in-template-literal.test.d.ts +8 -0
  590. package/build/src/types/tests/rules/eslint/formatting/require-import-order.test.d.ts +8 -0
  591. package/build/src/types/tests/rules/eslint/formatting/require-multiline-condition-groups.test.d.ts +8 -0
  592. package/build/src/types/tests/rules/eslint/formatting/require-multiline-conditions.test.d.ts +8 -0
  593. package/build/src/types/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +8 -0
  594. package/build/src/types/tests/rules/eslint/formatting/require-ternary-parens.test.d.ts +8 -0
  595. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-body.test.d.ts +8 -0
  596. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-hierarchy.test.d.ts +8 -0
  597. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-alignment.test.d.ts +8 -0
  598. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-param-name.test.d.ts +8 -0
  599. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-private.test.d.ts +8 -0
  600. package/build/src/types/tests/rules/eslint/jsdoc/require-jsdoc-since.test.d.ts +8 -0
  601. package/build/src/types/tests/rules/eslint/nova/no-logger-dev.test.d.ts +8 -0
  602. package/build/src/types/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +8 -0
  603. package/build/src/types/tests/rules/eslint/patterns/no-await-in-loop.test.d.ts +8 -0
  604. package/build/src/types/tests/rules/eslint/patterns/no-boolean-var-for-if.test.d.ts +8 -0
  605. package/build/src/types/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +8 -0
  606. package/build/src/types/tests/rules/eslint/patterns/no-bracket-method-call.test.d.ts +8 -0
  607. package/build/src/types/tests/rules/eslint/patterns/no-template-curly-in-string.test.d.ts +8 -0
  608. package/build/src/types/tests/rules/eslint/patterns/no-use-before-define.test.d.ts +8 -0
  609. package/build/src/types/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +8 -0
  610. package/build/src/types/tests/rules/eslint/regex/no-regex-literals.test.d.ts +8 -0
  611. package/build/src/types/tests/rules/eslint/safety/no-script-url.test.d.ts +8 -0
  612. package/build/src/types/tests/rules/eslint/syntax/no-destructuring.test.d.ts +8 -0
  613. package/build/src/types/tests/rules/eslint/syntax/no-numeric-literals.test.d.ts +8 -0
  614. package/build/src/types/tests/rules/eslint/syntax/no-optional-chaining.test.d.ts +8 -0
  615. package/build/src/types/tests/rules/eslint/syntax/no-rest-params.test.d.ts +8 -0
  616. package/build/src/types/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +8 -0
  617. package/build/src/types/tests/rules/eslint/typescript/no-explicit-any.test.d.ts +8 -0
  618. package/build/src/types/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +8 -0
  619. package/build/src/types/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +8 -0
  620. package/build/src/types/tests/rules/eslint/typescript/require-bracket-property-access.test.d.ts +12 -0
  621. package/build/src/types/tests/rules/eslint/typescript/require-type-naming.test.d.ts +8 -0
  622. package/build/src/types/tests/toolkit/bootstrap.test.d.ts +108 -0
  623. package/build/src/types/tests/toolkit/cli-header.test.d.ts +46 -0
  624. package/build/src/types/tests/toolkit/logger.test.d.ts +20 -0
  625. package/build/src/types/tests/toolkit/markdown-table.test.d.ts +65 -0
  626. package/build/src/types/tests/type-declarations.test.d.ts +564 -0
  627. package/build/src/types/toolkit/bootstrap.d.ts +133 -0
  628. package/build/src/types/toolkit/cli-header.d.ts +203 -0
  629. package/build/src/types/toolkit/logger.d.ts +160 -0
  630. package/build/src/types/toolkit/markdown-table.d.ts +159 -0
  631. package/build/templates/.novaignore +0 -0
  632. package/build/templates/generators/github/funding/FUNDING.yml +12 -0
  633. package/build/templates/generators/github/issue-template/BUG-REPORT.yml +86 -0
  634. package/build/templates/generators/github/issue-template/FEATURE-REQUEST.yml +61 -0
  635. package/build/templates/generators/github/issue-template/SUPPORT-REQUEST.yml +50 -0
  636. package/build/templates/generators/github/issue-template/bug-report-fields/android.yml +16 -0
  637. package/build/templates/generators/github/issue-template/bug-report-fields/apple.yml +23 -0
  638. package/build/templates/generators/github/issue-template/bug-report-fields/csharp.yml +20 -0
  639. package/build/templates/generators/github/issue-template/bug-report-fields/docker.yml +33 -0
  640. package/build/templates/generators/github/issue-template/bug-report-fields/homebridge.yml +16 -0
  641. package/build/templates/generators/github/issue-template/bug-report-fields/nodejs.yml +8 -0
  642. package/build/templates/generators/github/issue-template/bug-report-fields/pfsense.yml +8 -0
  643. package/build/templates/generators/github/issue-template/bug-report-fields/php.yml +8 -0
  644. package/build/templates/generators/github/issue-template/bug-report-fields/python.yml +8 -0
  645. package/build/templates/generators/github/issue-template/bug-report-fields/screenshots.yml +7 -0
  646. package/build/templates/generators/github/issue-template/bug-report-fields/synology.yml +8 -0
  647. package/build/templates/generators/github/issue-template/bug-report-fields/web.yml +21 -0
  648. package/build/templates/generators/github/issue-template/config.yml +1 -0
  649. package/build/templates/generators/github/issue-template/legal-agreements/bug-report.yml +8 -0
  650. package/build/templates/generators/github/issue-template/legal-agreements/feature-request.yml +8 -0
  651. package/build/templates/generators/github/issue-template/legal-agreements/support-request.yml +8 -0
  652. package/build/templates/generators/github/workflows/check-sponsor-gated-issues/base.yml +57 -0
  653. package/build/templates/generators/github/workflows/lock-inactive-issues/base.yml +43 -0
  654. package/build/templates/generators/github/workflows/lock-inactive-issues/triggers/schedule.yml +5 -0
  655. package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/base.yml +53 -0
  656. package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/push.yml +5 -0
  657. package/build/templates/generators/github/workflows/publish-to-aws-amplify-nextjs/triggers/release.yml +5 -0
  658. package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/base.yml +62 -0
  659. package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/push.yml +5 -0
  660. package/build/templates/generators/github/workflows/publish-to-cloudflare-pages-docusaurus/triggers/release.yml +5 -0
  661. package/build/templates/generators/github/workflows/publish-to-docker-hub/base.yml +58 -0
  662. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/release.yml +5 -0
  663. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-any.yml +7 -0
  664. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-failure.yml +8 -0
  665. package/build/templates/generators/github/workflows/publish-to-docker-hub/triggers/workflow-run-success.yml +8 -0
  666. package/build/templates/generators/github/workflows/publish-to-github-packages/base.yml +108 -0
  667. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/release.yml +5 -0
  668. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-any.yml +7 -0
  669. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-failure.yml +8 -0
  670. package/build/templates/generators/github/workflows/publish-to-github-packages/triggers/workflow-run-success.yml +8 -0
  671. package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/base.yml +79 -0
  672. package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/push.yml +5 -0
  673. package/build/templates/generators/github/workflows/publish-to-github-pages-docusaurus/triggers/release.yml +5 -0
  674. package/build/templates/generators/github/workflows/publish-to-npm/base.yml +91 -0
  675. package/build/templates/generators/github/workflows/publish-to-npm/triggers/release.yml +5 -0
  676. package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-any.yml +7 -0
  677. package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-failure.yml +8 -0
  678. package/build/templates/generators/github/workflows/publish-to-npm/triggers/workflow-run-success.yml +8 -0
  679. package/build/templates/generators/must-haves/agent-conventions/.cursorrules +54 -0
  680. package/build/templates/generators/must-haves/agent-conventions/AGENTS.md +54 -0
  681. package/build/templates/generators/must-haves/agent-conventions/CLAUDE.md +54 -0
  682. package/build/templates/generators/must-haves/agent-conventions/PROJECT_RULES.md +290 -0
  683. package/build/templates/generators/must-haves/agent-conventions/VISION.md +62 -0
  684. package/build/templates/generators/must-haves/agent-conventions/conventions/csharp.md +317 -0
  685. package/build/templates/generators/must-haves/agent-conventions/conventions/css.md +188 -0
  686. package/build/templates/generators/must-haves/agent-conventions/conventions/docker.md +131 -0
  687. package/build/templates/generators/must-haves/agent-conventions/conventions/documentation.md +615 -0
  688. package/build/templates/generators/must-haves/agent-conventions/conventions/java.md +285 -0
  689. package/build/templates/generators/must-haves/agent-conventions/conventions/kotlin.md +297 -0
  690. package/build/templates/generators/must-haves/agent-conventions/conventions/php.md +257 -0
  691. package/build/templates/generators/must-haves/agent-conventions/conventions/python.md +260 -0
  692. package/build/templates/generators/must-haves/agent-conventions/conventions/shell.md +205 -0
  693. package/build/templates/generators/must-haves/agent-conventions/conventions/swift.md +312 -0
  694. package/build/templates/generators/must-haves/agent-conventions/conventions/typescript.md +1530 -0
  695. package/build/templates/generators/must-haves/agent-conventions/conventions/universal.md +202 -0
  696. package/build/templates/generators/must-haves/dotenv/.env.sample +14 -0
  697. package/build/templates/generators/must-haves/editorconfig/.editorconfig +212 -0
  698. package/build/templates/generators/must-haves/license/AGPL-3.0 +662 -0
  699. package/build/templates/generators/must-haves/license/Apache-2.0 +202 -0
  700. package/build/templates/generators/must-haves/license/BSD-2-Clause +25 -0
  701. package/build/templates/generators/must-haves/license/BSD-3-Clause +29 -0
  702. package/build/templates/generators/must-haves/license/BSL-1.0 +24 -0
  703. package/build/templates/generators/must-haves/license/CC0-1.0 +122 -0
  704. package/build/templates/generators/must-haves/license/EPL-2.0 +278 -0
  705. package/build/templates/generators/must-haves/license/GPL-2.0 +340 -0
  706. package/build/templates/generators/must-haves/license/GPL-3.0 +675 -0
  707. package/build/templates/generators/must-haves/license/LGPL-2.1 +505 -0
  708. package/build/templates/generators/must-haves/license/MIT +22 -0
  709. package/build/templates/generators/must-haves/license/MPL-2.0 +374 -0
  710. package/build/templates/generators/must-haves/license/Proprietary +22 -0
  711. package/build/templates/generators/must-haves/license/Unlicense +25 -0
  712. package/build/templates/generators/must-haves/read-me/README.md +17 -0
  713. package/build/templates/scaffold/app/express/package.json +20 -0
  714. package/build/templates/scaffold/app/express/src/index.ts +12 -0
  715. package/build/templates/scaffold/app/express/tsconfig.json +15 -0
  716. package/build/templates/scaffold/app/nextjs/next.config.mjs +4 -0
  717. package/build/templates/scaffold/app/nextjs/package.json +22 -0
  718. package/build/templates/scaffold/app/nextjs/src/app/globals.css +11 -0
  719. package/build/templates/scaffold/app/nextjs/src/app/layout.tsx +18 -0
  720. package/build/templates/scaffold/app/nextjs/src/app/page.tsx +8 -0
  721. package/build/templates/scaffold/app/nextjs/tsconfig.json +26 -0
  722. package/build/templates/scaffold/app/vite/index.html +12 -0
  723. package/build/templates/scaffold/app/vite/package.json +17 -0
  724. package/build/templates/scaffold/app/vite/src/main.ts +5 -0
  725. package/build/templates/scaffold/app/vite/tsconfig.json +16 -0
  726. package/build/templates/scaffold/app/vite/vite.config.mts +3 -0
  727. package/build/templates/scaffold/app/workers/package.json +16 -0
  728. package/build/templates/scaffold/app/workers/src/index.ts +13 -0
  729. package/build/templates/scaffold/app/workers/tsconfig.json +17 -0
  730. package/build/templates/scaffold/app/workers/wrangler.toml +3 -0
  731. package/build/templates/scaffold/docs/docusaurus/docs/intro.md +9 -0
  732. package/build/templates/scaffold/docs/docusaurus/docusaurus.config.ts +33 -0
  733. package/build/templates/scaffold/docs/docusaurus/package.json +20 -0
  734. package/build/templates/scaffold/docs/docusaurus/sidebars.ts +9 -0
  735. package/build/templates/scaffold/docs/docusaurus/static/.gitkeep +0 -0
  736. package/build/templates/scaffold/docs/docusaurus/tsconfig.json +8 -0
  737. package/package.json +38 -32
  738. package/build/eslint.config.d.ts +0 -34
  739. package/build/eslint.config.d.ts.map +0 -1
  740. package/build/eslint.config.js +0 -40
  741. package/build/eslint.config.js.map +0 -1
  742. package/build/src/cli/recipe/pin-versions.d.ts +0 -7
  743. package/build/src/cli/recipe/pin-versions.d.ts.map +0 -1
  744. package/build/src/cli/recipe/pin-versions.js +0 -145
  745. package/build/src/cli/recipe/pin-versions.js.map +0 -1
  746. package/build/src/cli/recipe/sync-lts-engines.d.ts +0 -6
  747. package/build/src/cli/recipe/sync-lts-engines.d.ts.map +0 -1
  748. package/build/src/cli/recipe/sync-lts-engines.js +0 -118
  749. package/build/src/cli/recipe/sync-lts-engines.js.map +0 -1
  750. package/build/src/cli/recipe/sync-packages.d.ts +0 -18
  751. package/build/src/cli/recipe/sync-packages.d.ts.map +0 -1
  752. package/build/src/cli/recipe/sync-packages.js +0 -1212
  753. package/build/src/cli/recipe/sync-packages.js.map +0 -1
  754. package/build/src/presets/eslint/dx-code-style.d.mts +0 -4
  755. package/build/src/presets/eslint/dx-code-style.d.mts.map +0 -1
  756. package/build/src/presets/eslint/dx-code-style.mjs +0 -211
  757. package/build/src/presets/eslint/dx-code-style.mjs.map +0 -1
  758. package/build/src/presets/eslint/dx-ignore.d.mts +0 -4
  759. package/build/src/presets/eslint/dx-ignore.d.mts.map +0 -1
  760. package/build/src/presets/eslint/dx-ignore.mjs.map +0 -1
  761. package/build/src/presets/eslint/env-browser.d.mts +0 -4
  762. package/build/src/presets/eslint/env-browser.d.mts.map +0 -1
  763. package/build/src/presets/eslint/env-browser.mjs +0 -3
  764. package/build/src/presets/eslint/env-browser.mjs.map +0 -1
  765. package/build/src/presets/eslint/env-edge.d.mts +0 -4
  766. package/build/src/presets/eslint/env-edge.d.mts.map +0 -1
  767. package/build/src/presets/eslint/env-edge.mjs.map +0 -1
  768. package/build/src/presets/eslint/env-node.d.mts +0 -4
  769. package/build/src/presets/eslint/env-node.d.mts.map +0 -1
  770. package/build/src/presets/eslint/env-node.mjs.map +0 -1
  771. package/build/src/presets/eslint/env-service-worker.d.mts +0 -4
  772. package/build/src/presets/eslint/env-service-worker.d.mts.map +0 -1
  773. package/build/src/presets/eslint/env-service-worker.mjs +0 -3
  774. package/build/src/presets/eslint/env-service-worker.mjs.map +0 -1
  775. package/build/src/presets/eslint/env-web-worker.d.mts +0 -4
  776. package/build/src/presets/eslint/env-web-worker.d.mts.map +0 -1
  777. package/build/src/presets/eslint/env-web-worker.mjs.map +0 -1
  778. package/build/src/presets/eslint/fw-docusaurus.d.mts +0 -4
  779. package/build/src/presets/eslint/fw-docusaurus.d.mts.map +0 -1
  780. package/build/src/presets/eslint/fw-docusaurus.mjs +0 -10
  781. package/build/src/presets/eslint/fw-docusaurus.mjs.map +0 -1
  782. package/build/src/presets/eslint/fw-expressjs.d.mts +0 -4
  783. package/build/src/presets/eslint/fw-expressjs.d.mts.map +0 -1
  784. package/build/src/presets/eslint/fw-expressjs.mjs.map +0 -1
  785. package/build/src/presets/eslint/fw-nextjs.d.mts +0 -4
  786. package/build/src/presets/eslint/fw-nextjs.d.mts.map +0 -1
  787. package/build/src/presets/eslint/fw-nextjs.mjs.map +0 -1
  788. package/build/src/presets/eslint/index.d.mts +0 -16
  789. package/build/src/presets/eslint/index.d.mts.map +0 -1
  790. package/build/src/presets/eslint/index.mjs +0 -16
  791. package/build/src/presets/eslint/index.mjs.map +0 -1
  792. package/build/src/presets/eslint/lang-javascript.d.mts +0 -4
  793. package/build/src/presets/eslint/lang-javascript.d.mts.map +0 -1
  794. package/build/src/presets/eslint/lang-javascript.mjs +0 -3
  795. package/build/src/presets/eslint/lang-javascript.mjs.map +0 -1
  796. package/build/src/presets/eslint/lang-mdx.d.mts +0 -4
  797. package/build/src/presets/eslint/lang-mdx.d.mts.map +0 -1
  798. package/build/src/presets/eslint/lang-mdx.mjs.map +0 -1
  799. package/build/src/presets/eslint/lang-typescript.d.mts +0 -4
  800. package/build/src/presets/eslint/lang-typescript.d.mts.map +0 -1
  801. package/build/src/presets/eslint/lang-typescript.mjs +0 -88
  802. package/build/src/presets/eslint/lang-typescript.mjs.map +0 -1
  803. package/build/src/presets/eslint/platform-cloudflare-workers.d.mts +0 -4
  804. package/build/src/presets/eslint/platform-cloudflare-workers.d.mts.map +0 -1
  805. package/build/src/presets/eslint/platform-cloudflare-workers.mjs +0 -8
  806. package/build/src/presets/eslint/platform-cloudflare-workers.mjs.map +0 -1
  807. package/build/src/presets/eslint/tool-vite.d.mts +0 -4
  808. package/build/src/presets/eslint/tool-vite.d.mts.map +0 -1
  809. package/build/src/presets/eslint/tool-vite.mjs.map +0 -1
  810. package/build/src/presets/tsconfig/env-web-worker.json +0 -12
  811. package/build/src/rules/eslint/no-logger-dev.d.ts +0 -6
  812. package/build/src/rules/eslint/no-logger-dev.d.ts.map +0 -1
  813. package/build/src/rules/eslint/no-logger-dev.js +0 -88
  814. package/build/src/rules/eslint/no-logger-dev.js.map +0 -1
  815. package/build/src/rules/eslint/no-raw-text-in-code.d.ts +0 -6
  816. package/build/src/rules/eslint/no-raw-text-in-code.d.ts.map +0 -1
  817. package/build/src/rules/eslint/no-raw-text-in-code.js +0 -34
  818. package/build/src/rules/eslint/no-raw-text-in-code.js.map +0 -1
  819. package/build/src/rules/eslint/no-regex-literal-flags.d.ts +0 -6
  820. package/build/src/rules/eslint/no-regex-literal-flags.d.ts.map +0 -1
  821. package/build/src/rules/eslint/no-regex-literal-flags.js +0 -30
  822. package/build/src/rules/eslint/no-regex-literal-flags.js.map +0 -1
  823. package/build/src/rules/eslint/no-regex-literals.d.ts +0 -9
  824. package/build/src/rules/eslint/no-regex-literals.d.ts.map +0 -1
  825. package/build/src/rules/eslint/no-regex-literals.js +0 -55
  826. package/build/src/rules/eslint/no-regex-literals.js.map +0 -1
  827. package/build/src/rules/eslint/switch-case-blocks.d.ts +0 -6
  828. package/build/src/rules/eslint/switch-case-blocks.d.ts.map +0 -1
  829. package/build/src/rules/eslint/switch-case-blocks.js +0 -36
  830. package/build/src/rules/eslint/switch-case-blocks.js.map +0 -1
  831. package/build/src/tests/api/node-releases.test.d.ts +0 -2
  832. package/build/src/tests/api/node-releases.test.d.ts.map +0 -1
  833. package/build/src/tests/api/node-releases.test.js +0 -193
  834. package/build/src/tests/api/node-releases.test.js.map +0 -1
  835. package/build/src/tests/api/spdx-licenses.test.d.ts +0 -2
  836. package/build/src/tests/api/spdx-licenses.test.d.ts.map +0 -1
  837. package/build/src/tests/api/spdx-licenses.test.js +0 -91
  838. package/build/src/tests/api/spdx-licenses.test.js.map +0 -1
  839. package/build/src/tests/cli/recipe/pin-versions.test.d.ts +0 -2
  840. package/build/src/tests/cli/recipe/pin-versions.test.d.ts.map +0 -1
  841. package/build/src/tests/cli/recipe/pin-versions.test.js +0 -197
  842. package/build/src/tests/cli/recipe/pin-versions.test.js.map +0 -1
  843. package/build/src/tests/cli/recipe/sync-lts-engines.test.d.ts +0 -2
  844. package/build/src/tests/cli/recipe/sync-lts-engines.test.d.ts.map +0 -1
  845. package/build/src/tests/cli/recipe/sync-lts-engines.test.js +0 -131
  846. package/build/src/tests/cli/recipe/sync-lts-engines.test.js.map +0 -1
  847. package/build/src/tests/lib/item.test.d.ts +0 -2
  848. package/build/src/tests/lib/item.test.d.ts.map +0 -1
  849. package/build/src/tests/lib/item.test.js +0 -142
  850. package/build/src/tests/lib/item.test.js.map +0 -1
  851. package/build/src/tests/lib/nova-config.test.d.ts +0 -2
  852. package/build/src/tests/lib/nova-config.test.d.ts.map +0 -1
  853. package/build/src/tests/lib/nova-config.test.js +0 -489
  854. package/build/src/tests/lib/nova-config.test.js.map +0 -1
  855. package/build/src/tests/lib/regex.test.d.ts +0 -2
  856. package/build/src/tests/lib/regex.test.d.ts.map +0 -1
  857. package/build/src/tests/lib/regex.test.js +0 -342
  858. package/build/src/tests/lib/regex.test.js.map +0 -1
  859. package/build/src/tests/lib/schema.test.d.ts +0 -2
  860. package/build/src/tests/lib/schema.test.d.ts.map +0 -1
  861. package/build/src/tests/lib/schema.test.js +0 -260
  862. package/build/src/tests/lib/schema.test.js.map +0 -1
  863. package/build/src/tests/lib/utility.test.d.ts +0 -2
  864. package/build/src/tests/lib/utility.test.d.ts.map +0 -1
  865. package/build/src/tests/lib/utility.test.js +0 -744
  866. package/build/src/tests/lib/utility.test.js.map +0 -1
  867. package/build/src/tests/rules/eslint/no-logger-dev.test.d.ts +0 -2
  868. package/build/src/tests/rules/eslint/no-logger-dev.test.d.ts.map +0 -1
  869. package/build/src/tests/rules/eslint/no-logger-dev.test.js +0 -55
  870. package/build/src/tests/rules/eslint/no-logger-dev.test.js.map +0 -1
  871. package/build/src/tests/rules/eslint/no-raw-text-in-code.test.d.ts +0 -2
  872. package/build/src/tests/rules/eslint/no-raw-text-in-code.test.d.ts.map +0 -1
  873. package/build/src/tests/rules/eslint/no-raw-text-in-code.test.js +0 -47
  874. package/build/src/tests/rules/eslint/no-raw-text-in-code.test.js.map +0 -1
  875. package/build/src/tests/rules/eslint/no-regex-literal-flags.test.d.ts +0 -2
  876. package/build/src/tests/rules/eslint/no-regex-literal-flags.test.d.ts.map +0 -1
  877. package/build/src/tests/rules/eslint/no-regex-literal-flags.test.js +0 -47
  878. package/build/src/tests/rules/eslint/no-regex-literal-flags.test.js.map +0 -1
  879. package/build/src/tests/rules/eslint/no-regex-literals.test.d.ts +0 -2
  880. package/build/src/tests/rules/eslint/no-regex-literals.test.d.ts.map +0 -1
  881. package/build/src/tests/rules/eslint/no-regex-literals.test.js +0 -49
  882. package/build/src/tests/rules/eslint/no-regex-literals.test.js.map +0 -1
  883. package/build/src/tests/rules/eslint/switch-case-blocks.test.d.ts +0 -2
  884. package/build/src/tests/rules/eslint/switch-case-blocks.test.d.ts.map +0 -1
  885. package/build/src/tests/rules/eslint/switch-case-blocks.test.js +0 -43
  886. package/build/src/tests/rules/eslint/switch-case-blocks.test.js.map +0 -1
  887. package/build/src/tests/toolkit/cli-header.test.d.ts +0 -2
  888. package/build/src/tests/toolkit/cli-header.test.d.ts.map +0 -1
  889. package/build/src/tests/toolkit/cli-header.test.js +0 -143
  890. package/build/src/tests/toolkit/cli-header.test.js.map +0 -1
  891. package/build/src/tests/toolkit/logger.test.d.ts +0 -2
  892. package/build/src/tests/toolkit/logger.test.d.ts.map +0 -1
  893. package/build/src/tests/toolkit/logger.test.js +0 -96
  894. package/build/src/tests/toolkit/logger.test.js.map +0 -1
  895. package/build/src/tests/toolkit/markdown-table.test.d.ts +0 -2
  896. package/build/src/tests/toolkit/markdown-table.test.d.ts.map +0 -1
  897. package/build/src/tests/toolkit/markdown-table.test.js +0 -138
  898. package/build/src/tests/toolkit/markdown-table.test.js.map +0 -1
  899. /package/build/src/presets/tsconfig/{env-browser.json → runtime-browser.json} +0 -0
  900. /package/build/src/presets/tsconfig/{env-edge.json → runtime-edge.json} +0 -0
  901. /package/build/src/presets/tsconfig/{env-node.json → runtime-node.json} +0 -0
  902. /package/build/src/presets/tsconfig/{env-service-worker.json → runtime-service-worker.json} +0 -0
@@ -0,0 +1,64 @@
1
+ import { dirname, resolve } from 'path';
2
+ import { createProgram, findConfigFile, flattenDiagnosticMessageText, parseJsonConfigFileContent, readConfigFile, sys, } from 'typescript';
3
+ import { Logger } from '../../toolkit/index.js';
4
+ export class CliUtilityTranspile {
5
+ static run(options) {
6
+ const configPath = CliUtilityTranspile.getConfigPath(options['project']);
7
+ if (configPath === undefined) {
8
+ Logger.error('No tsconfig.json found. Use --project to specify a path.');
9
+ return;
10
+ }
11
+ const config = readConfigFile(configPath, sys.readFile)['config'];
12
+ const parsed = parseJsonConfigFileContent(config, sys, dirname(configPath));
13
+ const program = createProgram(parsed.fileNames, parsed.options);
14
+ const filteredDiagnostics = CliUtilityTranspile.filterDiagnostics(CliUtilityTranspile.emitFiles(program).diagnostics);
15
+ CliUtilityTranspile.printDiagnostics(filteredDiagnostics);
16
+ if (filteredDiagnostics.length > 0) {
17
+ process.exitCode = 1;
18
+ }
19
+ return;
20
+ }
21
+ static getConfigPath(project) {
22
+ const currentDirectory = process.cwd();
23
+ if (project !== undefined) {
24
+ const resolved = resolve(currentDirectory, project);
25
+ return (sys.fileExists(resolved) === true) ? resolved : undefined;
26
+ }
27
+ return findConfigFile(currentDirectory, sys.fileExists, 'tsconfig.json');
28
+ }
29
+ static emitFiles(program) {
30
+ return program.emit();
31
+ }
32
+ static filterDiagnostics(diagnostics) {
33
+ const currentDirectory = process.cwd();
34
+ return diagnostics.filter((diagnostic) => {
35
+ const fileName = (diagnostic.file !== undefined) ? diagnostic.file.fileName : '';
36
+ return fileName.startsWith(currentDirectory) === true && fileName.includes('node_modules') === false;
37
+ });
38
+ }
39
+ static printDiagnostics(filteredDiagnostics) {
40
+ const fileSet = new Set();
41
+ for (const filteredDiagnostic of filteredDiagnostics) {
42
+ const fileName = (filteredDiagnostic.file !== undefined) ? filteredDiagnostic.file.fileName : 'unknown';
43
+ const message = flattenDiagnosticMessageText(filteredDiagnostic.messageText, '\n');
44
+ fileSet.add(fileName);
45
+ if (filteredDiagnostic.file !== undefined && filteredDiagnostic.start !== undefined) {
46
+ const position = filteredDiagnostic.file.getLineAndCharacterOfPosition(filteredDiagnostic.start);
47
+ const line = position.line;
48
+ const character = position.character;
49
+ Logger.error(`${fileName}:${line + 1}:${character + 1} - ${message}`);
50
+ }
51
+ else {
52
+ Logger.error(message);
53
+ }
54
+ }
55
+ if (filteredDiagnostics.length > 0) {
56
+ Logger.info(`Found ${filteredDiagnostics.length} error(s) in ${fileSet.size} file(s).`);
57
+ }
58
+ else {
59
+ Logger.info('No type errors found.');
60
+ }
61
+ return;
62
+ }
63
+ }
64
+ //# sourceMappingURL=transpile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transpile.js","sourceRoot":"","sources":["../../../../src/cli/utility/transpile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAExC,OAAO,EACL,aAAa,EACb,cAAc,EACd,4BAA4B,EAC5B,0BAA0B,EAC1B,cAAc,EACd,GAAG,GACJ,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAsChD,MAAM,OAAO,mBAAmB;IAavB,MAAM,CAAC,GAAG,CAAC,OAAsC;QACtD,MAAM,UAAU,GAAqC,mBAAmB,CAAC,aAAa,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;QAE3G,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,MAAM,CAAC,KAAK,CAAC,0DAA0D,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QAED,MAAM,MAAM,GAAiC,cAAc,CAAC,UAAU,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC;QAChG,MAAM,MAAM,GAAiC,0BAA0B,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QAC1G,MAAM,OAAO,GAAkC,aAAa,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/F,MAAM,mBAAmB,GAA8C,mBAAmB,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,SA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CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- import type { CLIUtilityTypeCheckRunOptions, CLIUtilityTypeCheckRunReturns } from '@/types/cli/utility/type-check.d.ts';
2
- export declare class CLIUtilityTypeCheck {
3
- static run(options: CLIUtilityTypeCheckRunOptions): CLIUtilityTypeCheckRunReturns;
1
+ import type { CliUtilityTypeCheckRunOptions, CliUtilityTypeCheckRunReturns } from '../../types/cli/utility/type-check.d.ts';
2
+ export declare class CliUtilityTypeCheck {
3
+ static run(options: CliUtilityTypeCheckRunOptions): CliUtilityTypeCheckRunReturns;
4
4
  private static getConfigPath;
5
5
  private static getDiagnostics;
6
6
  private static filterDiagnostics;
@@ -1 +1 @@
1
- {"version":3,"file":"type-check.d.ts","sourceRoot":"","sources":["../../../../src/cli/utility/type-check.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAUV,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,qCAAqC,CAAC;AAO7C,qBAAa,mBAAmB;WAUhB,GAAG,CAAC,OAAO,EAAE,6BAA6B,GAAG,6BAA6B;IAgCxF,OAAO,CAAC,MAAM,CAAC,aAAa;IAoB5B,OAAO,CAAC,MAAM,CAAC,cAAc;IAgB7B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAkBhC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CAuBhC"}
1
+ {"version":3,"file":"type-check.d.ts","sourceRoot":"","sources":["../../../../src/cli/utility/type-check.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAsBV,6BAA6B,EAG7B,6BAA6B,EAC9B,MAAM,yCAAyC,CAAC;AAUjD,qBAAa,mBAAmB;WAahB,GAAG,CAAC,OAAO,EAAE,6BAA6B,GAAG,6BAA6B;IAoCxF,OAAO,CAAC,MAAM,CAAC,aAAa;IAyB5B,OAAO,CAAC,MAAM,CAAC,cAAc;IAkB7B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAuBhC,OAAO,CAAC,MAAM,CAAC,gBAAgB;CA4BhC"}
@@ -1,59 +1,64 @@
1
1
  import { dirname, resolve } from 'path';
2
2
  import { createProgram, findConfigFile, flattenDiagnosticMessageText, getPreEmitDiagnostics, parseJsonConfigFileContent, readConfigFile, sys, } from 'typescript';
3
3
  import { Logger } from '../../toolkit/index.js';
4
- export class CLIUtilityTypeCheck {
4
+ export class CliUtilityTypeCheck {
5
5
  static run(options) {
6
- const configPath = CLIUtilityTypeCheck.getConfigPath(options.project);
6
+ const configPath = CliUtilityTypeCheck.getConfigPath(options['project']);
7
7
  if (configPath === undefined) {
8
8
  Logger.error('No tsconfig.json found. Use --project to specify a path.');
9
9
  return;
10
10
  }
11
- const { config } = readConfigFile(configPath, sys.readFile);
11
+ const config = readConfigFile(configPath, sys.readFile)['config'];
12
12
  const parsed = parseJsonConfigFileContent(config, sys, dirname(configPath));
13
- const diagnostics = CLIUtilityTypeCheck.getDiagnostics(parsed);
14
- const filtered = CLIUtilityTypeCheck.filterDiagnostics(diagnostics);
15
- CLIUtilityTypeCheck.printDiagnostics(filtered);
16
- if (filtered.length > 0) {
13
+ const program = createProgram(parsed.fileNames, parsed.options);
14
+ const filteredDiagnostics = CliUtilityTypeCheck.filterDiagnostics(CliUtilityTypeCheck.getDiagnostics(program));
15
+ CliUtilityTypeCheck.printDiagnostics(filteredDiagnostics);
16
+ if (filteredDiagnostics.length > 0) {
17
17
  process.exitCode = 1;
18
18
  }
19
+ return;
19
20
  }
20
21
  static getConfigPath(project) {
22
+ const currentDirectory = process.cwd();
21
23
  if (project !== undefined) {
22
- const resolved = resolve(process.cwd(), project);
23
- return (sys.fileExists(resolved)) ? resolved : undefined;
24
+ const resolved = resolve(currentDirectory, project);
25
+ return (sys.fileExists(resolved) === true) ? resolved : undefined;
24
26
  }
25
- return findConfigFile(process.cwd(), sys.fileExists, 'tsconfig.json');
27
+ return findConfigFile(currentDirectory, sys.fileExists, 'tsconfig.json');
26
28
  }
27
- static getDiagnostics(parsed) {
28
- const program = createProgram(parsed.fileNames, parsed.options);
29
+ static getDiagnostics(program) {
29
30
  return getPreEmitDiagnostics(program);
30
31
  }
31
32
  static filterDiagnostics(diagnostics) {
33
+ const currentDirectory = process.cwd();
32
34
  return diagnostics.filter((diagnostic) => {
33
35
  const fileName = (diagnostic.file !== undefined) ? diagnostic.file.fileName : '';
34
- return fileName.startsWith(process.cwd()) && !fileName.includes('node_modules');
36
+ return fileName.startsWith(currentDirectory) === true && fileName.includes('node_modules') === false;
35
37
  });
36
38
  }
37
- static printDiagnostics(filtered) {
39
+ static printDiagnostics(filteredDiagnostics) {
38
40
  const fileSet = new Set();
39
- for (const diagnostic of filtered) {
40
- const fileName = (diagnostic.file !== undefined) ? diagnostic.file.fileName : 'unknown';
41
- const message = flattenDiagnosticMessageText(diagnostic.messageText, '\n');
41
+ for (const filteredDiagnostic of filteredDiagnostics) {
42
+ const fileName = (filteredDiagnostic.file !== undefined) ? filteredDiagnostic.file.fileName : 'unknown';
43
+ const message = flattenDiagnosticMessageText(filteredDiagnostic.messageText, '\n');
42
44
  fileSet.add(fileName);
43
- if (diagnostic.file !== undefined && diagnostic.start !== undefined) {
44
- const { line, character } = diagnostic.file.getLineAndCharacterOfPosition(diagnostic.start);
45
+ if (filteredDiagnostic.file !== undefined && filteredDiagnostic.start !== undefined) {
46
+ const position = filteredDiagnostic.file.getLineAndCharacterOfPosition(filteredDiagnostic.start);
47
+ const line = position.line;
48
+ const character = position.character;
45
49
  Logger.error(`${fileName}:${line + 1}:${character + 1} - ${message}`);
46
50
  }
47
51
  else {
48
52
  Logger.error(message);
49
53
  }
50
54
  }
51
- if (filtered.length > 0) {
52
- Logger.info(`Found ${filtered.length} error(s) in ${fileSet.size} file(s).`);
55
+ if (filteredDiagnostics.length > 0) {
56
+ Logger.info(`Found ${filteredDiagnostics.length} error(s) in ${fileSet.size} file(s).`);
53
57
  }
54
58
  else {
55
59
  Logger.info('No type errors found.');
56
60
  }
61
+ return;
57
62
  }
58
63
  }
59
64
  //# sourceMappingURL=type-check.js.map
@@ -1 +1 @@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AAQ,IAAI,IAAI,GAAG,CAAC,IAAI,SAAS,GAAG,CAAC,MAAM,OAAO,EAAE,CAAC,CAAC;YACxE,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YACxB,CAAC;QACH,CAAC;QAED,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,MAAM,CAAC,IAAI,CAAC,SAAS,mBAAmB,CAAC,MAAM,gBAAgB,OAAO,CAAC,IAAI,WAAW,CAAC,CAAC;QAC1F,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QACvC,CAAC;QAED,OAAO;IACT,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- import type { CLIUtilityVersionRunOptions, CLIUtilityVersionRunReturns } from '@/types/cli/utility/version.d.ts';
2
- export declare class CLIUtilityVersion {
3
- static run(options: CLIUtilityVersionRunOptions): CLIUtilityVersionRunReturns;
1
+ import type { CliUtilityVersionRunOptions, CliUtilityVersionRunReturns } from '../../types/cli/utility/version.d.ts';
2
+ export declare class CliUtilityVersion {
3
+ static run(options: CliUtilityVersionRunOptions): CliUtilityVersionRunReturns;
4
4
  private static getNodeVersion;
5
5
  private static getEnvironmentManagerVersion;
6
6
  private static getOsVersion;
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/cli/utility/version.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAoBV,2BAA2B,EAC3B,2BAA2B,EAE5B,MAAM,kCAAkC,CAAC;AAO1C,qBAAa,iBAAiB;WAUR,GAAG,CAAC,OAAO,EAAE,2BAA2B,GAAG,2BAA2B;mBA6CrE,cAAc;mBA8Fd,4BAA4B;mBA2D5B,YAAY;mBAqFZ,iBAAiB;mBAoKjB,qBAAqB;IAuD1C,OAAO,CAAC,MAAM,CAAC,KAAK;CA8BrB"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../src/cli/utility/version.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAyGV,2BAA2B,EAC3B,2BAA2B,EAE5B,MAAM,sCAAsC,CAAC;AAU9C,qBAAa,iBAAiB;WAaR,GAAG,CAAC,OAAO,EAAE,2BAA2B,GAAG,2BAA2B;mBAoFrE,cAAc;mBAiGd,4BAA4B;mBAiE5B,YAAY;mBA6FZ,iBAAiB;mBAsLjB,qBAAqB;IA6D1C,OAAO,CAAC,MAAM,CAAC,KAAK;CA0CrB"}
@@ -1,42 +1,72 @@
1
1
  import { arch, platform, release, version, } from 'os';
2
2
  import chalk from 'chalk';
3
- import { itemPrettyNamesBrand, itemPrettyNamesCategory, itemPrettyNamesColumnTitle, itemPrettyNamesType, } from '../../lib/item.js';
4
- import { PATTERN_DOUBLE_QUOTED_STRING_CAPTURE, PATTERN_JAVA_VERSION_LINE, PATTERN_LEADING_NON_DIGITS, PATTERN_RUSTC_VERSION_LINE, PATTERN_SEMVER, } from '../../lib/regex.js';
3
+ import { libItemPrettyNamesBrand, libItemPrettyNamesCategory, libItemPrettyNamesColumnTitle, libItemPrettyNamesType, } from '../../lib/item.js';
4
+ import { LIB_REGEX_PATTERN_DOUBLE_QUOTED_STRING_CAPTURE, LIB_REGEX_PATTERN_JAVA_VERSION_LINE, LIB_REGEX_PATTERN_LEADING_NON_DIGITS, LIB_REGEX_PATTERN_RUSTC_VERSION_LINE, LIB_REGEX_PATTERN_SEMVER, } from '../../lib/regex.js';
5
5
  import { executeShell, parseLinuxOsReleaseFile, parseWindowsRegistryQuery, pathExists, } from '../../lib/utility.js';
6
6
  import { MarkdownTable } from '../../toolkit/index.js';
7
- export class CLIUtilityVersion {
7
+ export class CliUtilityVersion {
8
8
  static async run(options) {
9
9
  const tasks = [];
10
- if (options.node === true || options.all === true || Object.keys(options).length === 0) {
11
- tasks.push(CLIUtilityVersion.getNodeVersion().then((response) => ['node', response]));
10
+ if (options['node'] === true
11
+ || options['all'] === true
12
+ || Object.keys(options).length === 0) {
13
+ tasks.push(CliUtilityVersion.getNodeVersion().then((response) => [
14
+ 'node',
15
+ response,
16
+ ]));
12
17
  }
13
- if (options.env === true || options.all === true || Object.keys(options).length === 0) {
14
- tasks.push(CLIUtilityVersion.getEnvironmentManagerVersion().then((response) => ['env', response]));
18
+ if (options['env'] === true
19
+ || options['all'] === true
20
+ || Object.keys(options).length === 0) {
21
+ tasks.push(CliUtilityVersion.getEnvironmentManagerVersion().then((response) => [
22
+ 'env',
23
+ response,
24
+ ]));
15
25
  }
16
- if (options.os === true || options.all === true || Object.keys(options).length === 0) {
17
- tasks.push(CLIUtilityVersion.getOsVersion().then((response) => ['os', response]));
26
+ if (options['os'] === true
27
+ || options['all'] === true
28
+ || Object.keys(options).length === 0) {
29
+ tasks.push(CliUtilityVersion.getOsVersion().then((response) => [
30
+ 'os',
31
+ response,
32
+ ]));
18
33
  }
19
- if (options.browser === true || options.all === true || Object.keys(options).length === 0) {
20
- tasks.push(CLIUtilityVersion.getBrowserVersion().then((response) => ['browsers', response]));
34
+ if (options['browser'] === true
35
+ || options['all'] === true
36
+ || Object.keys(options).length === 0) {
37
+ tasks.push(CliUtilityVersion.getBrowserVersion().then((response) => [
38
+ 'browsers',
39
+ response,
40
+ ]));
21
41
  }
22
- if (options.interpreter === true || options.all === true || Object.keys(options).length === 0) {
23
- tasks.push(CLIUtilityVersion.getInterpreterVersion().then((response) => ['interpreters', response]));
42
+ if (options['interpreter'] === true
43
+ || options['all'] === true
44
+ || Object.keys(options).length === 0) {
45
+ tasks.push(CliUtilityVersion.getInterpreterVersion().then((response) => [
46
+ 'interpreters',
47
+ response,
48
+ ]));
24
49
  }
25
- const results = await Promise.all(tasks);
26
- const list = Object.fromEntries(results);
27
- CLIUtilityVersion.print(list);
50
+ const list = Object.fromEntries(await Promise.all(tasks));
51
+ CliUtilityVersion.print(list);
52
+ return;
28
53
  }
29
54
  static async getNodeVersion() {
30
- const [nodeJsVersion, npmVersion, yarnVersion, pnpmVersion, bunVersion,] = await Promise.all([
55
+ const nodeResults = await Promise.all([
31
56
  executeShell('node --version'),
32
57
  executeShell('npm --version'),
33
58
  executeShell('yarn --version'),
34
59
  executeShell('pnpm --version'),
35
60
  executeShell('bun --version'),
36
61
  ]);
62
+ const nodeJsVersion = nodeResults[0];
63
+ const npmVersion = nodeResults[1];
64
+ const yarnVersion = nodeResults[2];
65
+ const pnpmVersion = nodeResults[3];
66
+ const bunVersion = nodeResults[4];
37
67
  let tools = {};
38
- if (nodeJsVersion.code === 0) {
39
- const matchResult = nodeJsVersion.textOut.match(PATTERN_SEMVER);
68
+ if (nodeJsVersion['code'] === 0) {
69
+ const matchResult = nodeJsVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
40
70
  const match = (matchResult !== null) ? matchResult[1] : undefined;
41
71
  if (match !== undefined) {
42
72
  tools = {
@@ -45,8 +75,8 @@ export class CLIUtilityVersion {
45
75
  };
46
76
  }
47
77
  }
48
- if (npmVersion.code === 0) {
49
- const matchResult = npmVersion.textOut.match(PATTERN_SEMVER);
78
+ if (npmVersion['code'] === 0) {
79
+ const matchResult = npmVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
50
80
  const match = (matchResult !== null) ? matchResult[1] : undefined;
51
81
  if (match !== undefined) {
52
82
  tools = {
@@ -55,8 +85,8 @@ export class CLIUtilityVersion {
55
85
  };
56
86
  }
57
87
  }
58
- if (yarnVersion.code === 0) {
59
- const matchResult = yarnVersion.textOut.match(PATTERN_SEMVER);
88
+ if (yarnVersion['code'] === 0) {
89
+ const matchResult = yarnVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
60
90
  const match = (matchResult !== null) ? matchResult[1] : undefined;
61
91
  if (match !== undefined) {
62
92
  tools = {
@@ -65,8 +95,8 @@ export class CLIUtilityVersion {
65
95
  };
66
96
  }
67
97
  }
68
- if (pnpmVersion.code === 0) {
69
- const matchResult = pnpmVersion.textOut.match(PATTERN_SEMVER);
98
+ if (pnpmVersion['code'] === 0) {
99
+ const matchResult = pnpmVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
70
100
  const match = (matchResult !== null) ? matchResult[1] : undefined;
71
101
  if (match !== undefined) {
72
102
  tools = {
@@ -75,8 +105,8 @@ export class CLIUtilityVersion {
75
105
  };
76
106
  }
77
107
  }
78
- if (bunVersion.code === 0) {
79
- const matchResult = bunVersion.textOut.match(PATTERN_SEMVER);
108
+ if (bunVersion['code'] === 0) {
109
+ const matchResult = bunVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
80
110
  const match = (matchResult !== null) ? matchResult[1] : undefined;
81
111
  if (match !== undefined) {
82
112
  tools = {
@@ -88,13 +118,15 @@ export class CLIUtilityVersion {
88
118
  return tools;
89
119
  }
90
120
  static async getEnvironmentManagerVersion() {
91
- const [nvmVersion, voltaVersion] = await Promise.all([
121
+ const envResults = await Promise.all([
92
122
  executeShell('nvm --version'),
93
123
  executeShell('volta --version'),
94
124
  ]);
125
+ const nvmVersion = envResults[0];
126
+ const voltaVersion = envResults[1];
95
127
  let managers = {};
96
- if (platform() !== 'win32' && nvmVersion.code === 0) {
97
- const matchResult = nvmVersion.textOut.match(PATTERN_SEMVER);
128
+ if (platform() !== 'win32' && nvmVersion['code'] === 0) {
129
+ const matchResult = nvmVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
98
130
  const match = (matchResult !== null) ? matchResult[1] : undefined;
99
131
  if (match !== undefined) {
100
132
  managers = {
@@ -103,8 +135,8 @@ export class CLIUtilityVersion {
103
135
  };
104
136
  }
105
137
  }
106
- if (platform() === 'win32' && nvmVersion.code === 0) {
107
- const matchResult = nvmVersion.textOut.match(PATTERN_SEMVER);
138
+ if (platform() === 'win32' && nvmVersion['code'] === 0) {
139
+ const matchResult = nvmVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
108
140
  const match = (matchResult !== null) ? matchResult[1] : undefined;
109
141
  if (match !== undefined) {
110
142
  managers = {
@@ -113,8 +145,8 @@ export class CLIUtilityVersion {
113
145
  };
114
146
  }
115
147
  }
116
- if (voltaVersion.code === 0) {
117
- const matchResult = voltaVersion.textOut.match(PATTERN_SEMVER);
148
+ if (voltaVersion['code'] === 0) {
149
+ const matchResult = voltaVersion['textOut'].match(LIB_REGEX_PATTERN_SEMVER);
118
150
  const match = (matchResult !== null) ? matchResult[1] : undefined;
119
151
  if (match !== undefined) {
120
152
  managers = {
@@ -133,14 +165,17 @@ export class CLIUtilityVersion {
133
165
  let currentVersion = version();
134
166
  let build = '—';
135
167
  if (currentPlatform === 'darwin') {
136
- const [productName, productVersion, buildVersion] = await Promise.all([
168
+ const darwinResults = await Promise.all([
137
169
  executeShell('sw_vers -productName'),
138
170
  executeShell('sw_vers -productVersion'),
139
171
  executeShell('sw_vers -buildVersion'),
140
172
  ]);
141
- name = productName.textOut ?? 'macOS';
142
- currentVersion = productVersion.textOut ?? currentVersion;
143
- build = buildVersion.textOut ?? '—';
173
+ const productName = darwinResults[0];
174
+ const productVersion = darwinResults[1];
175
+ const buildVersion = darwinResults[2];
176
+ name = productName['textOut'] ?? 'macOS';
177
+ currentVersion = productVersion['textOut'] ?? currentVersion;
178
+ build = buildVersion['textOut'] ?? '—';
144
179
  }
145
180
  if (currentPlatform === 'win32') {
146
181
  const registryQuery = await parseWindowsRegistryQuery('HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion');
@@ -150,20 +185,20 @@ export class CLIUtilityVersion {
150
185
  const productNameEntry = registryQuery['ProductName'];
151
186
  const displayVersionEntry = registryQuery['DisplayVersion'];
152
187
  const releaseIdEntry = registryQuery['ReleaseId'];
153
- let currentBuild;
188
+ let currentBuild = undefined;
154
189
  if (currentBuildEntry !== undefined) {
155
- currentBuild = currentBuildEntry.data;
190
+ currentBuild = currentBuildEntry['data'];
156
191
  }
157
192
  else if (currentBuildNumberEntry !== undefined) {
158
- currentBuild = currentBuildNumberEntry.data;
193
+ currentBuild = currentBuildNumberEntry['data'];
159
194
  }
160
- const updateBuildRevision = (updateBuildRevisionEntry !== undefined) ? updateBuildRevisionEntry.data : undefined;
161
- name = (productNameEntry !== undefined) ? productNameEntry.data : 'Windows';
195
+ const updateBuildRevision = (updateBuildRevisionEntry !== undefined) ? updateBuildRevisionEntry['data'] : undefined;
196
+ name = (productNameEntry !== undefined) ? productNameEntry['data'] : 'Windows';
162
197
  if (displayVersionEntry !== undefined) {
163
- currentVersion = displayVersionEntry.data;
198
+ currentVersion = displayVersionEntry['data'];
164
199
  }
165
200
  else if (releaseIdEntry !== undefined) {
166
- currentVersion = releaseIdEntry.data;
201
+ currentVersion = releaseIdEntry['data'];
167
202
  }
168
203
  if (currentBuild !== undefined && updateBuildRevision !== undefined) {
169
204
  build = `${currentBuild}.${updateBuildRevision}`;
@@ -208,7 +243,12 @@ export class CLIUtilityVersion {
208
243
  const appName = supportedBrowser[1];
209
244
  const system = `/Applications/${appName}`;
210
245
  const user = `${process.env['HOME'] ?? ''}/Applications/${appName}`;
211
- const [hasSystem, hasUser] = await Promise.all([pathExists(system), pathExists(user)]);
246
+ const pathResults = await Promise.all([
247
+ pathExists(system),
248
+ pathExists(user),
249
+ ]);
250
+ const hasSystem = pathResults[0];
251
+ const hasUser = pathResults[1];
212
252
  let appPath = null;
213
253
  if (hasSystem === true) {
214
254
  appPath = system;
@@ -220,11 +260,14 @@ export class CLIUtilityVersion {
220
260
  return null;
221
261
  }
222
262
  const versionResponse = await executeShell(`defaults read "${appPath}/Contents/Info" CFBundleShortVersionString`);
223
- if (versionResponse.code !== 0) {
263
+ if (versionResponse['code'] !== 0) {
224
264
  return null;
225
265
  }
226
- const version = versionResponse.textOut.trim();
227
- return [key, version];
266
+ const macosAppVersion = versionResponse['textOut'].trim();
267
+ return [
268
+ key,
269
+ macosAppVersion,
270
+ ];
228
271
  }));
229
272
  const entries = pairs
230
273
  .filter((result) => result.status === 'fulfilled')
@@ -255,10 +298,13 @@ export class CLIUtilityVersion {
255
298
  if (query['(Default)'] === undefined) {
256
299
  return null;
257
300
  }
258
- let exePath = query['(Default)'].data;
259
- exePath = exePath.replace(PATTERN_DOUBLE_QUOTED_STRING_CAPTURE, '$1');
260
- const version = (await executeShell(`powershell -Command "(Get-Item '${exePath}').VersionInfo.ProductVersion"`)).textOut.trim();
261
- return [key, version];
301
+ let exePath = query['(Default)']['data'];
302
+ exePath = exePath.replace(LIB_REGEX_PATTERN_DOUBLE_QUOTED_STRING_CAPTURE, '$1');
303
+ const windowsAppVersion = (await executeShell(`powershell -Command "(Get-Item '${exePath}').VersionInfo.ProductVersion"`))['textOut'].trim();
304
+ return [
305
+ key,
306
+ windowsAppVersion,
307
+ ];
262
308
  }));
263
309
  const entries = pairs
264
310
  .filter((result) => result.status === 'fulfilled')
@@ -283,15 +329,18 @@ export class CLIUtilityVersion {
283
329
  const key = supportedBrowser[0];
284
330
  const commandName = supportedBrowser[1];
285
331
  const commandResponse = await executeShell(`command -v ${commandName}`);
286
- if (commandResponse.code !== 0) {
332
+ if (commandResponse['code'] !== 0) {
287
333
  return null;
288
334
  }
289
335
  const versionResponse = await executeShell(`${commandName} --version`);
290
- if (versionResponse.code !== 0) {
336
+ if (versionResponse['code'] !== 0) {
291
337
  return null;
292
338
  }
293
- const version = versionResponse.textOut.trim().replace(PATTERN_LEADING_NON_DIGITS, '');
294
- return [key, version];
339
+ const cliToolVersion = versionResponse['textOut'].trim().replace(LIB_REGEX_PATTERN_LEADING_NON_DIGITS, '');
340
+ return [
341
+ key,
342
+ cliToolVersion,
343
+ ];
295
344
  }));
296
345
  const entries = pairs
297
346
  .filter((result) => result.status === 'fulfilled')
@@ -305,13 +354,15 @@ export class CLIUtilityVersion {
305
354
  return browsers;
306
355
  }
307
356
  static async getInterpreterVersion() {
308
- const [javaVersion, rustVersion] = await Promise.all([
357
+ const interpreterResults = await Promise.all([
309
358
  executeShell('java --version'),
310
359
  executeShell('rustc --version'),
311
360
  ]);
361
+ const javaVersion = interpreterResults[0];
362
+ const rustVersion = interpreterResults[1];
312
363
  let interpreters = {};
313
- if (javaVersion.code === 0) {
314
- const match = javaVersion.textOut.match(new RegExp(PATTERN_JAVA_VERSION_LINE, 'mi'));
364
+ if (javaVersion['code'] === 0) {
365
+ const match = javaVersion['textOut'].match(new RegExp(LIB_REGEX_PATTERN_JAVA_VERSION_LINE, 'mi'));
315
366
  if (match !== null) {
316
367
  const matchVersion = match[1] ?? 'N/A';
317
368
  const matchDistribution = match[2] ?? 'N/A';
@@ -322,8 +373,8 @@ export class CLIUtilityVersion {
322
373
  };
323
374
  }
324
375
  }
325
- if (rustVersion.code === 0) {
326
- const match = rustVersion.textOut.match(PATTERN_RUSTC_VERSION_LINE);
376
+ if (rustVersion['code'] === 0) {
377
+ const match = rustVersion['textOut'].match(LIB_REGEX_PATTERN_RUSTC_VERSION_LINE);
327
378
  if (match !== null) {
328
379
  const matchVersion = match[1] ?? 'N/A';
329
380
  const matchBuildHash = match[2] ?? 'N/A';
@@ -338,26 +389,33 @@ export class CLIUtilityVersion {
338
389
  return interpreters;
339
390
  }
340
391
  static print(list) {
341
- for (const [category, rowsByKey] of Object.entries(list)) {
392
+ for (const listEntry of Object.entries(list)) {
393
+ const category = listEntry[0];
394
+ const rowsByKey = listEntry[1];
342
395
  if (Object.keys(rowsByKey).length === 0) {
343
396
  continue;
344
397
  }
345
398
  const table = new MarkdownTable([
346
- chalk.bold.yellow(itemPrettyNamesColumnTitle[`key-${category}`] ?? 'Key'),
347
- chalk.bold.yellow(itemPrettyNamesColumnTitle[`value-${category}`] ?? 'Value'),
399
+ chalk.bold.yellow(libItemPrettyNamesColumnTitle[`key-${category}`] ?? 'Key'),
400
+ chalk.bold.yellow(libItemPrettyNamesColumnTitle[`value-${category}`] ?? 'Value'),
348
401
  ], {
349
402
  padDelimiterRow: false,
350
403
  minimumColumnWidth: 10,
351
404
  });
352
- for (const [rowKey, rowValue] of Object.entries(rowsByKey)) {
405
+ for (const rowsByKeyEntry of Object.entries(rowsByKey)) {
406
+ const rowKey = rowsByKeyEntry[0];
407
+ const rowValue = rowsByKeyEntry[1];
353
408
  table.addRow([
354
- itemPrettyNamesBrand[rowKey] ?? itemPrettyNamesType[rowKey] ?? chalk.grey(rowKey),
409
+ (libItemPrettyNamesBrand[rowKey]
410
+ ?? libItemPrettyNamesType[rowKey]
411
+ ?? chalk.grey(rowKey)),
355
412
  rowValue,
356
413
  ]);
357
414
  }
358
- process.stdout.write(`${itemPrettyNamesCategory[category] ?? chalk.grey(category)}\n`);
415
+ process.stdout.write(`${libItemPrettyNamesCategory[category] ?? chalk.grey(category)}\n`);
359
416
  process.stdout.write(`${table.render()}\n\n`);
360
417
  }
418
+ return;
361
419
  }
362
420
  }
363
421
  //# sourceMappingURL=version.js.map