@cbnventures/nova 0.14.0 → 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 (974) hide show
  1. package/README.md +48 -0
  2. package/bin/nova.mjs +3 -0
  3. package/build/package.json +33 -23
  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 +298 -100
  49. package/build/src/cli/index.js.map +1 -1
  50. package/build/src/cli/recipe/index.d.ts +2 -2
  51. package/build/src/cli/recipe/index.d.ts.map +1 -1
  52. package/build/src/cli/recipe/index.js +19 -19
  53. package/build/src/cli/recipe/index.js.map +1 -1
  54. package/build/src/cli/recipe/package-json/cleanup.d.ts +3 -3
  55. package/build/src/cli/recipe/package-json/cleanup.d.ts.map +1 -1
  56. package/build/src/cli/recipe/package-json/cleanup.js +59 -50
  57. package/build/src/cli/recipe/package-json/cleanup.js.map +1 -1
  58. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts +3 -3
  59. package/build/src/cli/recipe/package-json/normalize-artifacts.d.ts.map +1 -1
  60. package/build/src/cli/recipe/package-json/normalize-artifacts.js +120 -112
  61. package/build/src/cli/recipe/package-json/normalize-artifacts.js.map +1 -1
  62. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts +3 -3
  63. package/build/src/cli/recipe/package-json/normalize-bundler.d.ts.map +1 -1
  64. package/build/src/cli/recipe/package-json/normalize-bundler.js +36 -35
  65. package/build/src/cli/recipe/package-json/normalize-bundler.js.map +1 -1
  66. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts +3 -3
  67. package/build/src/cli/recipe/package-json/normalize-dependencies.d.ts.map +1 -1
  68. package/build/src/cli/recipe/package-json/normalize-dependencies.js +70 -64
  69. package/build/src/cli/recipe/package-json/normalize-dependencies.js.map +1 -1
  70. package/build/src/cli/recipe/package-json/normalize-modules.d.ts +3 -3
  71. package/build/src/cli/recipe/package-json/normalize-modules.d.ts.map +1 -1
  72. package/build/src/cli/recipe/package-json/normalize-modules.js +156 -142
  73. package/build/src/cli/recipe/package-json/normalize-modules.js.map +1 -1
  74. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts +3 -3
  75. package/build/src/cli/recipe/package-json/normalize-tooling.d.ts.map +1 -1
  76. package/build/src/cli/recipe/package-json/normalize-tooling.js +52 -57
  77. package/build/src/cli/recipe/package-json/normalize-tooling.js.map +1 -1
  78. package/build/src/cli/recipe/package-json/sync-environment.d.ts +3 -3
  79. package/build/src/cli/recipe/package-json/sync-environment.d.ts.map +1 -1
  80. package/build/src/cli/recipe/package-json/sync-environment.js +94 -97
  81. package/build/src/cli/recipe/package-json/sync-environment.js.map +1 -1
  82. package/build/src/cli/recipe/package-json/sync-identity.d.ts +3 -3
  83. package/build/src/cli/recipe/package-json/sync-identity.d.ts.map +1 -1
  84. package/build/src/cli/recipe/package-json/sync-identity.js +67 -62
  85. package/build/src/cli/recipe/package-json/sync-identity.js.map +1 -1
  86. package/build/src/cli/recipe/package-json/sync-ownership.d.ts +3 -3
  87. package/build/src/cli/recipe/package-json/sync-ownership.d.ts.map +1 -1
  88. package/build/src/cli/recipe/package-json/sync-ownership.js +106 -106
  89. package/build/src/cli/recipe/package-json/sync-ownership.js.map +1 -1
  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 +206 -172
  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 +990 -265
  121. package/build/src/cli/utility/initialize.js.map +1 -1
  122. package/build/src/cli/utility/run-recipes.d.ts +3 -3
  123. package/build/src/cli/utility/run-recipes.d.ts.map +1 -1
  124. package/build/src/cli/utility/run-recipes.js +15 -14
  125. package/build/src/cli/utility/run-recipes.js.map +1 -1
  126. package/build/src/cli/utility/run-scripts.d.ts +4 -4
  127. package/build/src/cli/utility/run-scripts.d.ts.map +1 -1
  128. package/build/src/cli/utility/run-scripts.js +167 -70
  129. package/build/src/cli/utility/run-scripts.js.map +1 -1
  130. package/build/src/cli/utility/transpile.d.ts +3 -3
  131. package/build/src/cli/utility/transpile.d.ts.map +1 -1
  132. package/build/src/cli/utility/transpile.js +24 -19
  133. package/build/src/cli/utility/transpile.js.map +1 -1
  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 +24 -19
  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 -29
  143. package/build/src/lib/item.d.ts.map +1 -1
  144. package/build/src/lib/item.js +106 -43
  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 +217 -59
  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 +173 -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 +9 -4
  278. package/build/src/rules/eslint/formatting/no-raw-text-in-code.d.ts.map +1 -1
  279. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js +53 -30
  280. package/build/src/rules/eslint/formatting/no-raw-text-in-code.js.map +1 -1
  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 +23 -11
  298. package/build/src/rules/eslint/formatting/require-padding-lines.d.ts.map +1 -1
  299. package/build/src/rules/eslint/formatting/require-padding-lines.js +291 -155
  300. package/build/src/rules/eslint/formatting/require-padding-lines.js.map +1 -1
  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 -14
  306. package/build/src/rules/eslint/index.d.ts.map +1 -1
  307. package/build/src/rules/eslint/index.js +44 -14
  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 +11 -4
  334. package/build/src/rules/eslint/nova/no-logger-dev.d.ts.map +1 -1
  335. package/build/src/rules/eslint/nova/no-logger-dev.js +104 -82
  336. package/build/src/rules/eslint/nova/no-logger-dev.js.map +1 -1
  337. package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts +9 -4
  338. package/build/src/rules/eslint/patterns/no-assign-then-return.d.ts.map +1 -1
  339. package/build/src/rules/eslint/patterns/no-assign-then-return.js +92 -51
  340. package/build/src/rules/eslint/patterns/no-assign-then-return.js.map +1 -1
  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 +9 -4
  350. package/build/src/rules/eslint/patterns/no-bracket-assignment.d.ts.map +1 -1
  351. package/build/src/rules/eslint/patterns/no-bracket-assignment.js +60 -22
  352. package/build/src/rules/eslint/patterns/no-bracket-assignment.js.map +1 -1
  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 +9 -4
  366. package/build/src/rules/eslint/regex/no-regex-literal-flags.d.ts.map +1 -1
  367. package/build/src/rules/eslint/regex/no-regex-literal-flags.js +51 -26
  368. package/build/src/rules/eslint/regex/no-regex-literal-flags.js.map +1 -1
  369. package/build/src/rules/eslint/regex/no-regex-literals.d.ts +10 -7
  370. package/build/src/rules/eslint/regex/no-regex-literals.d.ts.map +1 -1
  371. package/build/src/rules/eslint/regex/no-regex-literals.js +62 -45
  372. package/build/src/rules/eslint/regex/no-regex-literals.js.map +1 -1
  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 +9 -4
  394. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.d.ts.map +1 -1
  395. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js +61 -34
  396. package/build/src/rules/eslint/typescript/no-catch-unknown-annotation.js.map +1 -1
  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 +14 -4
  402. package/build/src/rules/eslint/typescript/no-inline-type-annotation.d.ts.map +1 -1
  403. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js +180 -30
  404. package/build/src/rules/eslint/typescript/no-inline-type-annotation.js.map +1 -1
  405. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts +10 -7
  406. package/build/src/rules/eslint/typescript/no-shared-type-import.d.ts.map +1 -1
  407. package/build/src/rules/eslint/typescript/no-shared-type-import.js +65 -51
  408. package/build/src/rules/eslint/typescript/no-shared-type-import.js.map +1 -1
  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 +76 -62
  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 +33 -23
  738. package/build/src/presets/eslint/dx-code-style.d.mts +0 -4
  739. package/build/src/presets/eslint/dx-code-style.d.mts.map +0 -1
  740. package/build/src/presets/eslint/dx-code-style.mjs +0 -211
  741. package/build/src/presets/eslint/dx-code-style.mjs.map +0 -1
  742. package/build/src/presets/eslint/dx-ignore.d.mts +0 -4
  743. package/build/src/presets/eslint/dx-ignore.d.mts.map +0 -1
  744. package/build/src/presets/eslint/dx-ignore.mjs.map +0 -1
  745. package/build/src/presets/eslint/env-browser.d.mts +0 -4
  746. package/build/src/presets/eslint/env-browser.d.mts.map +0 -1
  747. package/build/src/presets/eslint/env-browser.mjs +0 -3
  748. package/build/src/presets/eslint/env-browser.mjs.map +0 -1
  749. package/build/src/presets/eslint/env-edge.d.mts +0 -4
  750. package/build/src/presets/eslint/env-edge.d.mts.map +0 -1
  751. package/build/src/presets/eslint/env-edge.mjs.map +0 -1
  752. package/build/src/presets/eslint/env-node.d.mts +0 -4
  753. package/build/src/presets/eslint/env-node.d.mts.map +0 -1
  754. package/build/src/presets/eslint/env-node.mjs.map +0 -1
  755. package/build/src/presets/eslint/env-service-worker.d.mts +0 -4
  756. package/build/src/presets/eslint/env-service-worker.d.mts.map +0 -1
  757. package/build/src/presets/eslint/env-service-worker.mjs +0 -3
  758. package/build/src/presets/eslint/env-service-worker.mjs.map +0 -1
  759. package/build/src/presets/eslint/env-web-worker.d.mts +0 -4
  760. package/build/src/presets/eslint/env-web-worker.d.mts.map +0 -1
  761. package/build/src/presets/eslint/env-web-worker.mjs.map +0 -1
  762. package/build/src/presets/eslint/fw-docusaurus.d.mts +0 -4
  763. package/build/src/presets/eslint/fw-docusaurus.d.mts.map +0 -1
  764. package/build/src/presets/eslint/fw-docusaurus.mjs +0 -10
  765. package/build/src/presets/eslint/fw-docusaurus.mjs.map +0 -1
  766. package/build/src/presets/eslint/fw-expressjs.d.mts +0 -4
  767. package/build/src/presets/eslint/fw-expressjs.d.mts.map +0 -1
  768. package/build/src/presets/eslint/fw-expressjs.mjs.map +0 -1
  769. package/build/src/presets/eslint/fw-nextjs.d.mts +0 -4
  770. package/build/src/presets/eslint/fw-nextjs.d.mts.map +0 -1
  771. package/build/src/presets/eslint/fw-nextjs.mjs.map +0 -1
  772. package/build/src/presets/eslint/index.d.mts +0 -16
  773. package/build/src/presets/eslint/index.d.mts.map +0 -1
  774. package/build/src/presets/eslint/index.mjs +0 -16
  775. package/build/src/presets/eslint/index.mjs.map +0 -1
  776. package/build/src/presets/eslint/lang-javascript.d.mts +0 -4
  777. package/build/src/presets/eslint/lang-javascript.d.mts.map +0 -1
  778. package/build/src/presets/eslint/lang-javascript.mjs +0 -3
  779. package/build/src/presets/eslint/lang-javascript.mjs.map +0 -1
  780. package/build/src/presets/eslint/lang-mdx.d.mts +0 -4
  781. package/build/src/presets/eslint/lang-mdx.d.mts.map +0 -1
  782. package/build/src/presets/eslint/lang-mdx.mjs.map +0 -1
  783. package/build/src/presets/eslint/lang-typescript.d.mts +0 -4
  784. package/build/src/presets/eslint/lang-typescript.d.mts.map +0 -1
  785. package/build/src/presets/eslint/lang-typescript.mjs +0 -88
  786. package/build/src/presets/eslint/lang-typescript.mjs.map +0 -1
  787. package/build/src/presets/eslint/platform-cloudflare-workers.d.mts +0 -4
  788. package/build/src/presets/eslint/platform-cloudflare-workers.d.mts.map +0 -1
  789. package/build/src/presets/eslint/platform-cloudflare-workers.mjs +0 -8
  790. package/build/src/presets/eslint/platform-cloudflare-workers.mjs.map +0 -1
  791. package/build/src/presets/eslint/tool-vite.d.mts +0 -4
  792. package/build/src/presets/eslint/tool-vite.d.mts.map +0 -1
  793. package/build/src/presets/eslint/tool-vite.mjs.map +0 -1
  794. package/build/src/presets/tsconfig/env-web-worker.json +0 -12
  795. package/build/src/rules/eslint/patterns/no-destructuring.d.ts +0 -13
  796. package/build/src/rules/eslint/patterns/no-destructuring.d.ts.map +0 -1
  797. package/build/src/rules/eslint/patterns/no-destructuring.js +0 -177
  798. package/build/src/rules/eslint/patterns/no-destructuring.js.map +0 -1
  799. package/build/src/rules/eslint/patterns/no-implicit-boolean.d.ts +0 -6
  800. package/build/src/rules/eslint/patterns/no-implicit-boolean.d.ts.map +0 -1
  801. package/build/src/rules/eslint/patterns/no-implicit-boolean.js +0 -62
  802. package/build/src/rules/eslint/patterns/no-implicit-boolean.js.map +0 -1
  803. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.d.ts +0 -6
  804. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.d.ts.map +0 -1
  805. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.js +0 -32
  806. package/build/src/rules/eslint/patterns/no-ternary-in-template-literal.js.map +0 -1
  807. package/build/src/rules/eslint/patterns/switch-case-blocks.d.ts +0 -6
  808. package/build/src/rules/eslint/patterns/switch-case-blocks.d.ts.map +0 -1
  809. package/build/src/rules/eslint/patterns/switch-case-blocks.js +0 -36
  810. package/build/src/rules/eslint/patterns/switch-case-blocks.js.map +0 -1
  811. package/build/src/tests/api/node-releases.test.d.ts +0 -2
  812. package/build/src/tests/api/node-releases.test.d.ts.map +0 -1
  813. package/build/src/tests/api/node-releases.test.js +0 -193
  814. package/build/src/tests/api/node-releases.test.js.map +0 -1
  815. package/build/src/tests/api/spdx-licenses.test.d.ts +0 -2
  816. package/build/src/tests/api/spdx-licenses.test.d.ts.map +0 -1
  817. package/build/src/tests/api/spdx-licenses.test.js +0 -91
  818. package/build/src/tests/api/spdx-licenses.test.js.map +0 -1
  819. package/build/src/tests/cli/recipe/package-json/cleanup.test.d.ts +0 -2
  820. package/build/src/tests/cli/recipe/package-json/cleanup.test.d.ts.map +0 -1
  821. package/build/src/tests/cli/recipe/package-json/cleanup.test.js +0 -240
  822. package/build/src/tests/cli/recipe/package-json/cleanup.test.js.map +0 -1
  823. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts +0 -2
  824. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.d.ts.map +0 -1
  825. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.js +0 -161
  826. package/build/src/tests/cli/recipe/package-json/normalize-artifacts.test.js.map +0 -1
  827. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.d.ts +0 -2
  828. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.d.ts.map +0 -1
  829. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.js +0 -161
  830. package/build/src/tests/cli/recipe/package-json/normalize-bundler.test.js.map +0 -1
  831. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts +0 -2
  832. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.d.ts.map +0 -1
  833. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.js +0 -175
  834. package/build/src/tests/cli/recipe/package-json/normalize-dependencies.test.js.map +0 -1
  835. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.d.ts +0 -2
  836. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.d.ts.map +0 -1
  837. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.js +0 -164
  838. package/build/src/tests/cli/recipe/package-json/normalize-modules.test.js.map +0 -1
  839. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.d.ts +0 -2
  840. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.d.ts.map +0 -1
  841. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.js +0 -193
  842. package/build/src/tests/cli/recipe/package-json/normalize-tooling.test.js.map +0 -1
  843. package/build/src/tests/cli/recipe/package-json/sync-environment.test.d.ts +0 -2
  844. package/build/src/tests/cli/recipe/package-json/sync-environment.test.d.ts.map +0 -1
  845. package/build/src/tests/cli/recipe/package-json/sync-environment.test.js +0 -158
  846. package/build/src/tests/cli/recipe/package-json/sync-environment.test.js.map +0 -1
  847. package/build/src/tests/cli/recipe/package-json/sync-identity.test.d.ts +0 -2
  848. package/build/src/tests/cli/recipe/package-json/sync-identity.test.d.ts.map +0 -1
  849. package/build/src/tests/cli/recipe/package-json/sync-identity.test.js +0 -156
  850. package/build/src/tests/cli/recipe/package-json/sync-identity.test.js.map +0 -1
  851. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.d.ts +0 -2
  852. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.d.ts.map +0 -1
  853. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.js +0 -164
  854. package/build/src/tests/cli/recipe/package-json/sync-ownership.test.js.map +0 -1
  855. package/build/src/tests/cli/utility/changelog.test.d.ts +0 -2
  856. package/build/src/tests/cli/utility/changelog.test.d.ts.map +0 -1
  857. package/build/src/tests/cli/utility/changelog.test.js +0 -274
  858. package/build/src/tests/cli/utility/changelog.test.js.map +0 -1
  859. package/build/src/tests/cli/utility/initialize.test.d.ts +0 -2
  860. package/build/src/tests/cli/utility/initialize.test.d.ts.map +0 -1
  861. package/build/src/tests/cli/utility/initialize.test.js +0 -27
  862. package/build/src/tests/cli/utility/initialize.test.js.map +0 -1
  863. package/build/src/tests/cli/utility/run-recipes.test.d.ts +0 -2
  864. package/build/src/tests/cli/utility/run-recipes.test.d.ts.map +0 -1
  865. package/build/src/tests/cli/utility/run-recipes.test.js +0 -41
  866. package/build/src/tests/cli/utility/run-recipes.test.js.map +0 -1
  867. package/build/src/tests/cli/utility/run-scripts.test.d.ts +0 -2
  868. package/build/src/tests/cli/utility/run-scripts.test.d.ts.map +0 -1
  869. package/build/src/tests/cli/utility/run-scripts.test.js +0 -153
  870. package/build/src/tests/cli/utility/run-scripts.test.js.map +0 -1
  871. package/build/src/tests/cli/utility/transpile.test.d.ts +0 -2
  872. package/build/src/tests/cli/utility/transpile.test.d.ts.map +0 -1
  873. package/build/src/tests/cli/utility/transpile.test.js +0 -65
  874. package/build/src/tests/cli/utility/transpile.test.js.map +0 -1
  875. package/build/src/tests/cli/utility/type-check.test.d.ts +0 -2
  876. package/build/src/tests/cli/utility/type-check.test.d.ts.map +0 -1
  877. package/build/src/tests/cli/utility/type-check.test.js +0 -63
  878. package/build/src/tests/cli/utility/type-check.test.js.map +0 -1
  879. package/build/src/tests/cli/utility/version.test.d.ts +0 -2
  880. package/build/src/tests/cli/utility/version.test.d.ts.map +0 -1
  881. package/build/src/tests/cli/utility/version.test.js +0 -38
  882. package/build/src/tests/cli/utility/version.test.js.map +0 -1
  883. package/build/src/tests/lib/item.test.d.ts +0 -2
  884. package/build/src/tests/lib/item.test.d.ts.map +0 -1
  885. package/build/src/tests/lib/item.test.js +0 -142
  886. package/build/src/tests/lib/item.test.js.map +0 -1
  887. package/build/src/tests/lib/nova-config.test.d.ts +0 -2
  888. package/build/src/tests/lib/nova-config.test.d.ts.map +0 -1
  889. package/build/src/tests/lib/nova-config.test.js +0 -516
  890. package/build/src/tests/lib/nova-config.test.js.map +0 -1
  891. package/build/src/tests/lib/regex.test.d.ts +0 -2
  892. package/build/src/tests/lib/regex.test.d.ts.map +0 -1
  893. package/build/src/tests/lib/regex.test.js +0 -342
  894. package/build/src/tests/lib/regex.test.js.map +0 -1
  895. package/build/src/tests/lib/schema.test.d.ts +0 -2
  896. package/build/src/tests/lib/schema.test.d.ts.map +0 -1
  897. package/build/src/tests/lib/schema.test.js +0 -260
  898. package/build/src/tests/lib/schema.test.js.map +0 -1
  899. package/build/src/tests/lib/utility.test.d.ts +0 -2
  900. package/build/src/tests/lib/utility.test.d.ts.map +0 -1
  901. package/build/src/tests/lib/utility.test.js +0 -744
  902. package/build/src/tests/lib/utility.test.js.map +0 -1
  903. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts +0 -2
  904. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.d.ts.map +0 -1
  905. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.js +0 -47
  906. package/build/src/tests/rules/eslint/formatting/no-raw-text-in-code.test.js.map +0 -1
  907. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.d.ts +0 -2
  908. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.d.ts.map +0 -1
  909. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.js +0 -131
  910. package/build/src/tests/rules/eslint/formatting/require-padding-lines.test.js.map +0 -1
  911. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.d.ts +0 -2
  912. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.d.ts.map +0 -1
  913. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.js +0 -55
  914. package/build/src/tests/rules/eslint/nova/no-logger-dev.test.js.map +0 -1
  915. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts +0 -2
  916. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.d.ts.map +0 -1
  917. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.js +0 -39
  918. package/build/src/tests/rules/eslint/patterns/no-assign-then-return.test.js.map +0 -1
  919. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts +0 -2
  920. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.d.ts.map +0 -1
  921. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.js +0 -40
  922. package/build/src/tests/rules/eslint/patterns/no-bracket-assignment.test.js.map +0 -1
  923. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.d.ts +0 -2
  924. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.d.ts.map +0 -1
  925. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.js +0 -86
  926. package/build/src/tests/rules/eslint/patterns/no-destructuring.test.js.map +0 -1
  927. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.d.ts +0 -2
  928. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.d.ts.map +0 -1
  929. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.js +0 -76
  930. package/build/src/tests/rules/eslint/patterns/no-implicit-boolean.test.js.map +0 -1
  931. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.d.ts +0 -2
  932. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.d.ts.map +0 -1
  933. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.js +0 -42
  934. package/build/src/tests/rules/eslint/patterns/no-ternary-in-template-literal.test.js.map +0 -1
  935. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.d.ts +0 -2
  936. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.d.ts.map +0 -1
  937. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.js +0 -43
  938. package/build/src/tests/rules/eslint/patterns/switch-case-blocks.test.js.map +0 -1
  939. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts +0 -2
  940. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.d.ts.map +0 -1
  941. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.js +0 -47
  942. package/build/src/tests/rules/eslint/regex/no-regex-literal-flags.test.js.map +0 -1
  943. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.d.ts +0 -2
  944. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.d.ts.map +0 -1
  945. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.js +0 -49
  946. package/build/src/tests/rules/eslint/regex/no-regex-literals.test.js.map +0 -1
  947. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts +0 -2
  948. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.d.ts.map +0 -1
  949. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.js +0 -34
  950. package/build/src/tests/rules/eslint/typescript/no-catch-unknown-annotation.test.js.map +0 -1
  951. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts +0 -2
  952. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.d.ts.map +0 -1
  953. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.js +0 -55
  954. package/build/src/tests/rules/eslint/typescript/no-inline-type-annotation.test.js.map +0 -1
  955. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts +0 -2
  956. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.d.ts.map +0 -1
  957. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.js +0 -51
  958. package/build/src/tests/rules/eslint/typescript/no-shared-type-import.test.js.map +0 -1
  959. package/build/src/tests/toolkit/cli-header.test.d.ts +0 -2
  960. package/build/src/tests/toolkit/cli-header.test.d.ts.map +0 -1
  961. package/build/src/tests/toolkit/cli-header.test.js +0 -143
  962. package/build/src/tests/toolkit/cli-header.test.js.map +0 -1
  963. package/build/src/tests/toolkit/logger.test.d.ts +0 -2
  964. package/build/src/tests/toolkit/logger.test.d.ts.map +0 -1
  965. package/build/src/tests/toolkit/logger.test.js +0 -96
  966. package/build/src/tests/toolkit/logger.test.js.map +0 -1
  967. package/build/src/tests/toolkit/markdown-table.test.d.ts +0 -2
  968. package/build/src/tests/toolkit/markdown-table.test.d.ts.map +0 -1
  969. package/build/src/tests/toolkit/markdown-table.test.js +0 -138
  970. package/build/src/tests/toolkit/markdown-table.test.js.map +0 -1
  971. /package/build/src/presets/tsconfig/{env-browser.json → runtime-browser.json} +0 -0
  972. /package/build/src/presets/tsconfig/{env-edge.json → runtime-edge.json} +0 -0
  973. /package/build/src/presets/tsconfig/{env-node.json → runtime-node.json} +0 -0
  974. /package/build/src/presets/tsconfig/{env-service-worker.json → runtime-service-worker.json} +0 -0
@@ -1,8 +1,8 @@
1
1
  import chalk from 'chalk';
2
- import { NovaConfig } from '../../../lib/nova-config.js';
2
+ import { LibNovaConfig } from '../../../lib/nova-config.js';
3
3
  import { isProjectRoot, loadWorkspaceManifests, saveWorkspaceManifest, } from '../../../lib/utility.js';
4
4
  import { Logger } from '../../../toolkit/index.js';
5
- export class CLIRecipePackageJsonNormalizeArtifacts {
5
+ export class CliRecipePackageJsonNormalizeArtifacts {
6
6
  static async run(options) {
7
7
  const currentDirectory = process.cwd();
8
8
  const isAtProjectRoot = await isProjectRoot(currentDirectory);
@@ -10,34 +10,33 @@ export class CLIRecipePackageJsonNormalizeArtifacts {
10
10
  process.exitCode = 1;
11
11
  return;
12
12
  }
13
- const isDryRun = options.dryRun === true;
14
- const isReplaceFile = options.replaceFile === true;
13
+ const isDryRun = options['dryRun'] === true;
14
+ const isReplaceFile = options['replaceFile'] === true;
15
15
  if (isDryRun === true) {
16
16
  Logger.customize({
17
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
17
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
18
18
  purpose: 'options',
19
19
  }).warn('Dry run enabled. File changes will not be made in this session.');
20
20
  }
21
21
  if (isReplaceFile === true) {
22
- const replaceFileNotice = (isDryRun) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
22
+ const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
23
23
  Logger.customize({
24
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
24
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
25
25
  purpose: 'options',
26
26
  }).warn(`Replace file enabled. ${replaceFileNotice}`);
27
27
  }
28
- const novaConfig = new NovaConfig();
29
- const workingFile = await novaConfig.load();
30
- const workingFileWorkspaces = Object.entries(workingFile.workspaces ?? {});
28
+ const workingFile = await new LibNovaConfig().load();
29
+ const workingFileWorkspaces = Object.entries(workingFile['workspaces'] ?? {});
31
30
  if (workingFileWorkspaces.length === 0) {
32
31
  Logger.customize({
33
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
32
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
34
33
  purpose: 'workspaces',
35
34
  }).warn('Skipping normalize-artifacts. No workspaces detected in the "nova.config.json" file.');
36
35
  return;
37
36
  }
38
37
  const eligibleWorkspaces = workingFileWorkspaces.filter((workspace) => {
39
38
  const workspaceConfig = workspace[1];
40
- const workspaceRecipes = workspaceConfig.recipes;
39
+ const workspaceRecipes = workspaceConfig['recipes'];
41
40
  if (workspaceRecipes === undefined) {
42
41
  return false;
43
42
  }
@@ -49,7 +48,7 @@ export class CLIRecipePackageJsonNormalizeArtifacts {
49
48
  });
50
49
  if (eligibleWorkspaces.length === 0) {
51
50
  Logger.customize({
52
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
51
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
53
52
  purpose: 'workspaces',
54
53
  }).warn('Skipping normalize-artifacts. No workspaces have this recipe enabled.');
55
54
  return;
@@ -60,168 +59,177 @@ export class CLIRecipePackageJsonNormalizeArtifacts {
60
59
  });
61
60
  if (workspaces.length === 0) {
62
61
  Logger.customize({
63
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
62
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
64
63
  purpose: 'workspaces',
65
64
  }).warn('Skipping normalize-artifacts. No accessible "package.json" files were found for the configured workspaces.');
66
65
  return;
67
66
  }
68
67
  Logger.customize({
69
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
68
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
70
69
  purpose: 'summary',
71
70
  }).info(`Prepared ${workspaces.length} workspace "package.json" file(s) for normalize-artifacts.`);
72
71
  for (const workspace of workspaces) {
73
72
  Logger.customize({
74
- name: 'CLIRecipePackageJsonNormalizeArtifacts.run',
73
+ name: 'CliRecipePackageJsonNormalizeArtifacts.run',
75
74
  purpose: 'iteration',
76
- }).info(`Running normalize-artifacts for the "${workspace.manifest.name}" workspace ...`);
77
- await CLIRecipePackageJsonNormalizeArtifacts.handle(workspace);
78
- await CLIRecipePackageJsonNormalizeArtifacts.handlePublish(workspace);
75
+ }).info(`Running normalize-artifacts for the "${workspace['manifest']['name']}" workspace ...`);
76
+ await CliRecipePackageJsonNormalizeArtifacts.handle(workspace);
77
+ await CliRecipePackageJsonNormalizeArtifacts.handlePublish(workspace);
79
78
  if (isDryRun === true) {
80
79
  continue;
81
80
  }
82
81
  await saveWorkspaceManifest(workspace, isReplaceFile);
83
82
  }
83
+ return;
84
84
  }
85
85
  static async handle(workspace) {
86
- const fileContents = workspace.fileContents;
87
- const manifest = workspace.manifest;
86
+ const fileContents = workspace['fileContents'];
87
+ const manifest = workspace['manifest'];
88
88
  const packageFiles = fileContents['files'];
89
89
  const packageBin = fileContents['bin'];
90
90
  const packageMan = fileContents['man'];
91
91
  const packageDirectories = fileContents['directories'];
92
92
  if (packageFiles !== undefined
93
- && ['package', 'tool'].includes(manifest.role) === false) {
93
+ && [
94
+ 'package',
95
+ 'tool',
96
+ ].includes(manifest['role']) === false) {
94
97
  Logger.customize({
95
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
98
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
96
99
  purpose: 'files',
97
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "files". Workspace role "${manifest.role}" does not allow it.`);
100
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "files". Workspace role "${manifest['role']}" does not allow it.`);
98
101
  Reflect.deleteProperty(fileContents, 'files');
99
102
  }
100
- else {
101
- if ((manifest.role === 'package' || manifest.role === 'tool')
102
- && packageFiles !== undefined
103
- && CLIRecipePackageJsonNormalizeArtifacts.isEmpty(packageFiles)) {
104
- Logger.customize({
105
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
106
- purpose: 'files',
107
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing empty "files" ...`);
108
- Reflect.deleteProperty(fileContents, 'files');
109
- }
103
+ else if ((manifest['role'] === 'package'
104
+ || manifest['role'] === 'tool')
105
+ && packageFiles !== undefined
106
+ && CliRecipePackageJsonNormalizeArtifacts.isEmpty(packageFiles) === true) {
107
+ Logger.customize({
108
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
109
+ purpose: 'files',
110
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "files" ...`);
111
+ Reflect.deleteProperty(fileContents, 'files');
110
112
  }
111
113
  if (packageBin !== undefined
112
- && ['package', 'tool'].includes(manifest.role) === false) {
114
+ && [
115
+ 'package',
116
+ 'tool',
117
+ ].includes(manifest['role']) === false) {
113
118
  Logger.customize({
114
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
119
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
115
120
  purpose: 'bin',
116
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "bin". Workspace role "${manifest.role}" does not allow it.`);
121
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "bin". Workspace role "${manifest['role']}" does not allow it.`);
117
122
  Reflect.deleteProperty(fileContents, 'bin');
118
123
  }
119
- else {
120
- if ((manifest.role === 'package' || manifest.role === 'tool')
121
- && packageBin !== undefined) {
122
- if (typeof packageBin === 'string') {
123
- const packageName = manifest.name;
124
- const binName = (packageName.includes('/')) ? packageName.split('/').pop() : packageName;
125
- Logger.customize({
126
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
127
- purpose: 'bin',
128
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Normalizing "bin" from string to object ...`);
129
- Reflect.set(fileContents, 'bin', {
130
- [binName ?? packageName]: packageBin,
131
- });
132
- }
133
- else if (CLIRecipePackageJsonNormalizeArtifacts.isEmpty(packageBin)) {
134
- Logger.customize({
135
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
136
- purpose: 'bin',
137
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing empty "bin" ...`);
138
- Reflect.deleteProperty(fileContents, 'bin');
139
- }
124
+ else if ((manifest['role'] === 'package'
125
+ || manifest['role'] === 'tool')
126
+ && packageBin !== undefined) {
127
+ if (typeof packageBin === 'string') {
128
+ const packageName = manifest['name'];
129
+ const binName = (packageName.includes('/') === true) ? packageName.split('/').pop() : packageName;
130
+ Logger.customize({
131
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
132
+ purpose: 'bin',
133
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Normalizing "bin" from string to object ...`);
134
+ Reflect.set(fileContents, 'bin', {
135
+ [binName ?? packageName]: packageBin,
136
+ });
137
+ }
138
+ else if (CliRecipePackageJsonNormalizeArtifacts.isEmpty(packageBin) === true) {
139
+ Logger.customize({
140
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
141
+ purpose: 'bin',
142
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "bin" ...`);
143
+ Reflect.deleteProperty(fileContents, 'bin');
140
144
  }
141
145
  }
142
146
  if (packageMan !== undefined
143
- && ['package', 'tool'].includes(manifest.role) === false) {
147
+ && [
148
+ 'package',
149
+ 'tool',
150
+ ].includes(manifest['role']) === false) {
144
151
  Logger.customize({
145
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
152
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
146
153
  purpose: 'man',
147
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "man". Workspace role "${manifest.role}" does not allow it.`);
154
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "man". Workspace role "${manifest['role']}" does not allow it.`);
148
155
  Reflect.deleteProperty(fileContents, 'man');
149
156
  }
150
- else {
151
- if ((manifest.role === 'package' || manifest.role === 'tool')
152
- && packageMan !== undefined) {
153
- if (typeof packageMan === 'string') {
154
- Logger.customize({
155
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
156
- purpose: 'man',
157
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Normalizing "man" from string to array ...`);
158
- Reflect.set(fileContents, 'man', [packageMan]);
159
- }
160
- else if (CLIRecipePackageJsonNormalizeArtifacts.isEmpty(packageMan)) {
161
- Logger.customize({
162
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
163
- purpose: 'man',
164
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing empty "man" ...`);
165
- Reflect.deleteProperty(fileContents, 'man');
166
- }
157
+ else if ((manifest['role'] === 'package'
158
+ || manifest['role'] === 'tool')
159
+ && packageMan !== undefined) {
160
+ if (typeof packageMan === 'string') {
161
+ Logger.customize({
162
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
163
+ purpose: 'man',
164
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Normalizing "man" from string to array ...`);
165
+ Reflect.set(fileContents, 'man', [packageMan]);
166
+ }
167
+ else if (CliRecipePackageJsonNormalizeArtifacts.isEmpty(packageMan) === true) {
168
+ Logger.customize({
169
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
170
+ purpose: 'man',
171
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "man" ...`);
172
+ Reflect.deleteProperty(fileContents, 'man');
167
173
  }
168
174
  }
169
175
  if (packageDirectories !== undefined
170
- && ['package', 'tool'].includes(manifest.role) === false) {
176
+ && [
177
+ 'package',
178
+ 'tool',
179
+ ].includes(manifest['role']) === false) {
171
180
  Logger.customize({
172
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
181
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
173
182
  purpose: 'directories',
174
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "directories". Workspace role "${manifest.role}" does not allow it.`);
183
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "directories". Workspace role "${manifest['role']}" does not allow it.`);
175
184
  Reflect.deleteProperty(fileContents, 'directories');
176
185
  }
177
- else {
178
- if ((manifest.role === 'package' || manifest.role === 'tool')
179
- && packageDirectories !== undefined
180
- && CLIRecipePackageJsonNormalizeArtifacts.isEmpty(packageDirectories)) {
181
- Logger.customize({
182
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handle',
183
- purpose: 'directories',
184
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing empty "directories" ...`);
185
- Reflect.deleteProperty(fileContents, 'directories');
186
- }
186
+ else if ((manifest['role'] === 'package'
187
+ || manifest['role'] === 'tool')
188
+ && packageDirectories !== undefined
189
+ && CliRecipePackageJsonNormalizeArtifacts.isEmpty(packageDirectories) === true) {
190
+ Logger.customize({
191
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handle',
192
+ purpose: 'directories',
193
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "directories" ...`);
194
+ Reflect.deleteProperty(fileContents, 'directories');
187
195
  }
196
+ return;
188
197
  }
189
198
  static async handlePublish(workspace) {
190
- const fileContents = workspace.fileContents;
191
- const manifest = workspace.manifest;
199
+ const fileContents = workspace['fileContents'];
200
+ const manifest = workspace['manifest'];
192
201
  const packagePrivate = fileContents['private'];
193
202
  const packagePublishConfig = fileContents['publishConfig'];
194
203
  if (typeof packagePrivate !== 'boolean'
195
- || (manifest.policy === 'distributable'
204
+ || (manifest['policy'] === 'distributable'
196
205
  && packagePrivate === true)
197
- || (manifest.policy !== 'distributable'
206
+ || (manifest['policy'] !== 'distributable'
198
207
  && packagePrivate !== true)) {
199
- const privateValue = (manifest.policy !== 'distributable');
208
+ const privateValue = (manifest['policy'] !== 'distributable');
200
209
  Logger.customize({
201
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handlePublish',
210
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handlePublish',
202
211
  purpose: 'private',
203
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Syncing "private" to "${privateValue}" ...`);
212
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Syncing "private" to "${privateValue}" ...`);
204
213
  Reflect.set(fileContents, 'private', privateValue);
205
214
  }
206
215
  if (packagePublishConfig !== undefined
207
- && manifest.policy !== 'distributable') {
216
+ && manifest['policy'] !== 'distributable') {
208
217
  Logger.customize({
209
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handlePublish',
218
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handlePublish',
210
219
  purpose: 'publishConfig',
211
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "publishConfig". Workspace policy "${manifest.policy}" does not allow it.`);
220
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "publishConfig". Workspace policy "${manifest['policy']}" does not allow it.`);
212
221
  Reflect.deleteProperty(fileContents, 'publishConfig');
213
222
  }
214
- else {
215
- if (manifest.policy === 'distributable'
216
- && packagePublishConfig !== undefined
217
- && CLIRecipePackageJsonNormalizeArtifacts.isEmpty(packagePublishConfig)) {
218
- Logger.customize({
219
- name: 'CLIRecipePackageJsonNormalizeArtifacts.handlePublish',
220
- purpose: 'publishConfig',
221
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing empty "publishConfig" ...`);
222
- Reflect.deleteProperty(fileContents, 'publishConfig');
223
- }
223
+ else if (manifest['policy'] === 'distributable'
224
+ && packagePublishConfig !== undefined
225
+ && CliRecipePackageJsonNormalizeArtifacts.isEmpty(packagePublishConfig) === true) {
226
+ Logger.customize({
227
+ name: 'CliRecipePackageJsonNormalizeArtifacts.handlePublish',
228
+ purpose: 'publishConfig',
229
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing empty "publishConfig" ...`);
230
+ Reflect.deleteProperty(fileContents, 'publishConfig');
224
231
  }
232
+ return;
225
233
  }
226
234
  static isEmpty(value) {
227
235
  if (value === null || value === undefined) {
@@ -230,7 +238,7 @@ export class CLIRecipePackageJsonNormalizeArtifacts {
230
238
  if (typeof value === 'string') {
231
239
  return value.trim() === '';
232
240
  }
233
- if (Array.isArray(value)) {
241
+ if (Array.isArray(value) === true) {
234
242
  return value.length === 0;
235
243
  }
236
244
  if (typeof value === 'object') {
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-artifacts.js","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/normalize-artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAkB5C,MAAM,OAAO,sCAAsC;IAU1C,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,OAAyD;QAC/E,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;QACvC,MAAM,eAAe,GAAG,MAAM,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAE9D,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;YAC7B,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;YAErB,OAAO;QACT,CAAC;QAED,MAAM,QAAQ,GAAG,OAAO,CAAC,MAAM,KAAK,IAAI,CAAC;QACzC,MAAM,aAAa,GAAG,OAAO,CAAC,WAAW,KAAK,IAAI,CAAC;QAEnD,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACtB,MAAM,CAAC,SAAS,CAAC;gBACf,IAAI,EAAE,4CAA4C;gBAClD,OAAO,EAAE,SAAS;aACnB,CAAC,CAAC,IAAI,CAAC,iEAAiE,CAAC,CAAC;QAC7E,CAAC;QAED,IAAI,aAAa,KAAK,IAAI,EAAE,CAAC;YAC3B,MAAM,i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,eAAe;mBAChC,oBAAoB,KAAK,SAAS;mBAClC,sCAAsC,CAAC,OAAO,CAAC,oBAAoB,CAAC,EACvE,CAAC;gBACD,MAAM,CAAC,SAAS,CAAC;oBACf,IAAI,EAAE,sDAAsD;oBAC5D,OAAO,EAAE,eAAe;iBACzB,CAAC,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,QAAQ,CAAC,IAAI,aAAa,CAAC,uCAAuC,CAAC,CAAC;gBAEjG,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;YACxD,CAAC;QACH,CAAC;IACH,CAAC;IAaO,MAAM,CAAC,OAAO,CAAC,KAAyD;QAC9E,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QAC7B,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;QACzC,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
1
+ {"version":3,"file":"normalize-artifacts.js","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/normalize-artifacts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,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Aa,CAAC,uCAAuC,CAAC,CAAC;YAEpG,OAAO,CAAC,cAAc,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QACxD,CAAC;QAED,OAAO;IACT,CAAC;IAiBO,MAAM,CAAC,OAAO,CAAC,KAAyD;QAC9E,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YAC1C,OAAO,IAAI,CAAC;QACd,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;QAC7B,CAAC;QAED,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;YAClC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;QAC5B,CAAC;QAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;QACzC,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- import type { CLIRecipePackageJsonNormalizeBundlerRunOptions, CLIRecipePackageJsonNormalizeBundlerRunReturns } from '../../../types/cli/recipe/package-json/normalize-bundler.d.ts';
2
- export declare class CLIRecipePackageJsonNormalizeBundler {
3
- static run(options: CLIRecipePackageJsonNormalizeBundlerRunOptions): CLIRecipePackageJsonNormalizeBundlerRunReturns;
1
+ import type { CliRecipePackageJsonNormalizeBundlerRunOptions, CliRecipePackageJsonNormalizeBundlerRunReturns } from '../../../types/cli/recipe/package-json/normalize-bundler.d.ts';
2
+ export declare class CliRecipePackageJsonNormalizeBundler {
3
+ static run(options: CliRecipePackageJsonNormalizeBundlerRunOptions): CliRecipePackageJsonNormalizeBundlerRunReturns;
4
4
  private static handle;
5
5
  }
6
6
  //# sourceMappingURL=normalize-bundler.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalize-bundler.d.ts","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/normalize-bundler.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAGV,8CAA8C,EAC9C,8CAA8C,EAC/C,MAAM,wDAAwD,CAAC;AAOhE,qBAAa,oCAAoC;WAU3B,GAAG,CAAC,OAAO,EAAE,8CAA8C,GAAG,8CAA8C;IAoHhI,OAAO,CAAC,MAAM,CAAC,MAAM;CAuFtB"}
1
+ {"version":3,"file":"normalize-bundler.d.ts","sourceRoot":"","sources":["../../../../../src/cli/recipe/package-json/normalize-bundler.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAiBV,8CAA8C,EAG9C,8CAA8C,EAM/C,MAAM,+DAA+D,CAAC;AAWvE,qBAAa,oCAAoC;WAa3B,GAAG,CAAC,OAAO,EAAE,8CAA8C,GAAG,8CAA8C;IAwHhI,OAAO,CAAC,MAAM,CAAC,MAAM;CAyFtB"}
@@ -1,9 +1,9 @@
1
1
  import chalk from 'chalk';
2
- import { itemNormalizeBundlerRolesSideEffectsEsnext, itemNormalizeBundlerRolesTypesModule, } from '../../../lib/item.js';
3
- import { NovaConfig } from '../../../lib/nova-config.js';
2
+ import { libItemSideEffectsEsnextRoles, libItemTypesModuleRoles, } from '../../../lib/item.js';
3
+ import { LibNovaConfig } from '../../../lib/nova-config.js';
4
4
  import { isProjectRoot, loadWorkspaceManifests, saveWorkspaceManifest, } from '../../../lib/utility.js';
5
5
  import { Logger } from '../../../toolkit/index.js';
6
- export class CLIRecipePackageJsonNormalizeBundler {
6
+ export class CliRecipePackageJsonNormalizeBundler {
7
7
  static async run(options) {
8
8
  const currentDirectory = process.cwd();
9
9
  const isAtProjectRoot = await isProjectRoot(currentDirectory);
@@ -11,34 +11,33 @@ export class CLIRecipePackageJsonNormalizeBundler {
11
11
  process.exitCode = 1;
12
12
  return;
13
13
  }
14
- const isDryRun = options.dryRun === true;
15
- const isReplaceFile = options.replaceFile === true;
14
+ const isDryRun = options['dryRun'] === true;
15
+ const isReplaceFile = options['replaceFile'] === true;
16
16
  if (isDryRun === true) {
17
17
  Logger.customize({
18
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
18
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
19
19
  purpose: 'options',
20
20
  }).warn('Dry run enabled. File changes will not be made in this session.');
21
21
  }
22
22
  if (isReplaceFile === true) {
23
- const replaceFileNotice = (isDryRun) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
23
+ const replaceFileNotice = (isDryRun === true) ? 'This option has no effect during a dry run session.' : 'Backup file will not be created.';
24
24
  Logger.customize({
25
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
25
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
26
26
  purpose: 'options',
27
27
  }).warn(`Replace file enabled. ${replaceFileNotice}`);
28
28
  }
29
- const novaConfig = new NovaConfig();
30
- const workingFile = await novaConfig.load();
31
- const workingFileWorkspaces = Object.entries(workingFile.workspaces ?? {});
29
+ const workingFile = await new LibNovaConfig().load();
30
+ const workingFileWorkspaces = Object.entries(workingFile['workspaces'] ?? {});
32
31
  if (workingFileWorkspaces.length === 0) {
33
32
  Logger.customize({
34
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
33
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
35
34
  purpose: 'workspaces',
36
35
  }).warn('Skipping normalize-bundler. No workspaces detected in the "nova.config.json" file.');
37
36
  return;
38
37
  }
39
38
  const eligibleWorkspaces = workingFileWorkspaces.filter((workspace) => {
40
39
  const workspaceConfig = workspace[1];
41
- const workspaceRecipes = workspaceConfig.recipes;
40
+ const workspaceRecipes = workspaceConfig['recipes'];
42
41
  if (workspaceRecipes === undefined) {
43
42
  return false;
44
43
  }
@@ -50,7 +49,7 @@ export class CLIRecipePackageJsonNormalizeBundler {
50
49
  });
51
50
  if (eligibleWorkspaces.length === 0) {
52
51
  Logger.customize({
53
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
52
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
54
53
  purpose: 'workspaces',
55
54
  }).warn('Skipping normalize-bundler. No workspaces have this recipe enabled.');
56
55
  return;
@@ -61,30 +60,31 @@ export class CLIRecipePackageJsonNormalizeBundler {
61
60
  });
62
61
  if (workspaces.length === 0) {
63
62
  Logger.customize({
64
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
63
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
65
64
  purpose: 'workspaces',
66
65
  }).warn('Skipping normalize-bundler. No accessible "package.json" files were found for the configured workspaces.');
67
66
  return;
68
67
  }
69
68
  Logger.customize({
70
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
69
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
71
70
  purpose: 'summary',
72
71
  }).info(`Prepared ${workspaces.length} workspace "package.json" file(s) for normalize-bundler.`);
73
72
  for (const workspace of workspaces) {
74
73
  Logger.customize({
75
- name: 'CLIRecipePackageJsonNormalizeBundler.run',
74
+ name: 'CliRecipePackageJsonNormalizeBundler.run',
76
75
  purpose: 'iteration',
77
- }).info(`Running normalize-bundler for the "${workspace.manifest.name}" workspace ...`);
78
- CLIRecipePackageJsonNormalizeBundler.handle(workspace);
76
+ }).info(`Running normalize-bundler for the "${workspace['manifest']['name']}" workspace ...`);
77
+ CliRecipePackageJsonNormalizeBundler.handle(workspace);
79
78
  if (isDryRun === true) {
80
79
  continue;
81
80
  }
82
81
  await saveWorkspaceManifest(workspace, isReplaceFile);
83
82
  }
83
+ return;
84
84
  }
85
85
  static handle(workspace) {
86
- const fileContents = workspace.fileContents;
87
- const manifest = workspace.manifest;
86
+ const fileContents = workspace['fileContents'];
87
+ const manifest = workspace['manifest'];
88
88
  const packageTypes = fileContents['types'];
89
89
  const packageTypings = fileContents['typings'];
90
90
  const packageModule = fileContents['module'];
@@ -93,53 +93,54 @@ export class CLIRecipePackageJsonNormalizeBundler {
93
93
  if (packageTypings !== undefined) {
94
94
  if (packageTypes !== undefined) {
95
95
  Logger.customize({
96
- name: 'CLIRecipePackageJsonNormalizeBundler.handle',
96
+ name: 'CliRecipePackageJsonNormalizeBundler.handle',
97
97
  purpose: 'typings',
98
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Merging "typings" into "types". Keeping existing "types" value.`);
98
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Merging "typings" into "types". Keeping existing "types" value.`);
99
99
  }
100
100
  else {
101
101
  Logger.customize({
102
- name: 'CLIRecipePackageJsonNormalizeBundler.handle',
102
+ name: 'CliRecipePackageJsonNormalizeBundler.handle',
103
103
  purpose: 'typings',
104
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Renaming "typings" to "types" ...`);
104
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Renaming "typings" to "types" ...`);
105
105
  Reflect.set(fileContents, 'types', packageTypings);
106
106
  }
107
107
  Reflect.deleteProperty(fileContents, 'typings');
108
108
  }
109
- const allowsTypesModule = itemNormalizeBundlerRolesTypesModule.includes(manifest.role);
110
- const allowsSideEffectsEsnext = itemNormalizeBundlerRolesSideEffectsEsnext.includes(manifest.role);
109
+ const allowsTypesModule = libItemTypesModuleRoles.includes(manifest['role']);
110
+ const allowsSideEffectsEsnext = libItemSideEffectsEsnextRoles.includes(manifest['role']);
111
111
  if (fileContents['types'] !== undefined
112
112
  && allowsTypesModule === false) {
113
113
  Logger.customize({
114
- name: 'CLIRecipePackageJsonNormalizeBundler.handle',
114
+ name: 'CliRecipePackageJsonNormalizeBundler.handle',
115
115
  purpose: 'types',
116
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "types". Workspace role "${manifest.role}" does not allow it.`);
116
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "types". Workspace role "${manifest['role']}" does not allow it.`);
117
117
  Reflect.deleteProperty(fileContents, 'types');
118
118
  }
119
119
  if (packageModule !== undefined
120
120
  && allowsTypesModule === false) {
121
121
  Logger.customize({
122
- name: 'CLIRecipePackageJsonNormalizeBundler.handle',
122
+ name: 'CliRecipePackageJsonNormalizeBundler.handle',
123
123
  purpose: 'module',
124
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "module". Workspace role "${manifest.role}" does not allow it.`);
124
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "module". Workspace role "${manifest['role']}" does not allow it.`);
125
125
  Reflect.deleteProperty(fileContents, 'module');
126
126
  }
127
127
  if (packageSideEffects !== undefined
128
128
  && allowsSideEffectsEsnext === false) {
129
129
  Logger.customize({
130
- name: 'CLIRecipePackageJsonNormalizeBundler.handle',
130
+ name: 'CliRecipePackageJsonNormalizeBundler.handle',
131
131
  purpose: 'sideEffects',
132
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "sideEffects". Workspace role "${manifest.role}" does not allow it.`);
132
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "sideEffects". Workspace role "${manifest['role']}" does not allow it.`);
133
133
  Reflect.deleteProperty(fileContents, 'sideEffects');
134
134
  }
135
135
  if (packageEsnext !== undefined
136
136
  && allowsSideEffectsEsnext === false) {
137
137
  Logger.customize({
138
- name: 'CLIRecipePackageJsonNormalizeBundler.handle',
138
+ name: 'CliRecipePackageJsonNormalizeBundler.handle',
139
139
  purpose: 'esnext',
140
- }).info(`${chalk.magenta(`"${manifest.name}" workspace`)} → Removing "esnext". Workspace role "${manifest.role}" does not allow it.`);
140
+ }).info(`${chalk.magenta(`"${manifest['name']}" workspace`)} → Removing "esnext". Workspace role "${manifest['role']}" does not allow it.`);
141
141
  Reflect.deleteProperty(fileContents, 'esnext');
142
142
  }
143
+ return;
143
144
  }
144
145
  }
145
146
  //# sourceMappingURL=normalize-bundler.js.map