skuba 14.0.0-esmify-skuba-20251105032119 → 14.0.0-hacky-hack-lang-json-20260108235938

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 (539) hide show
  1. package/config/eslint.js +1 -1
  2. package/config/jest.js +1 -0
  3. package/config/prettier.d.ts +4 -0
  4. package/config/prettier.js +2 -10
  5. package/jest/moduleNameMapper.js +64 -0
  6. package/jest/transform.js +62 -0
  7. package/jest/tsConfig.js +26 -0
  8. package/jest-preset.js +37 -0
  9. package/lib/api/jest/index.d.ts +15 -0
  10. package/lib/api/jest/index.js +59 -0
  11. package/lib/api/jest/index.js.map +7 -0
  12. package/lib/cli/adapter/eslint.js +45 -11
  13. package/lib/cli/adapter/eslint.js.map +3 -3
  14. package/lib/cli/adapter/prettier.js +67 -39
  15. package/lib/cli/adapter/prettier.js.map +2 -2
  16. package/lib/cli/build/args.js +42 -8
  17. package/lib/cli/build/args.js.map +2 -2
  18. package/lib/{src/cli → cli}/build/assets.d.ts +3 -2
  19. package/lib/cli/build/assets.js +60 -28
  20. package/lib/cli/build/assets.js.map +3 -3
  21. package/lib/cli/build/esbuild.d.ts +8 -0
  22. package/lib/cli/build/esbuild.js +64 -23
  23. package/lib/cli/build/esbuild.js.map +2 -2
  24. package/lib/cli/build/index.js +53 -21
  25. package/lib/cli/build/index.js.map +2 -2
  26. package/lib/cli/build/tsc.js +60 -24
  27. package/lib/cli/build/tsc.js.map +3 -3
  28. package/lib/cli/buildPackage/index.js +32 -8
  29. package/lib/cli/buildPackage/index.js.map +1 -1
  30. package/lib/cli/configure/analyseConfiguration.js +50 -16
  31. package/lib/cli/configure/analyseConfiguration.js.map +2 -2
  32. package/lib/{src/cli → cli}/configure/analyseDependencies.d.ts +1 -1
  33. package/lib/cli/configure/analyseDependencies.js +59 -25
  34. package/lib/cli/configure/analyseDependencies.js.map +3 -3
  35. package/lib/cli/configure/analysis/diff.js +29 -5
  36. package/lib/cli/configure/analysis/diff.js.map +2 -2
  37. package/lib/cli/configure/analysis/files.js +42 -8
  38. package/lib/cli/configure/analysis/files.js.map +2 -2
  39. package/lib/cli/configure/analysis/git.js +46 -12
  40. package/lib/cli/configure/analysis/git.js.map +2 -2
  41. package/lib/{src/cli → cli}/configure/analysis/package.d.ts +3 -2
  42. package/lib/cli/configure/analysis/package.js +45 -10
  43. package/lib/cli/configure/analysis/package.js.map +3 -3
  44. package/lib/cli/configure/analysis/project.js +50 -18
  45. package/lib/cli/configure/analysis/project.js.map +2 -2
  46. package/lib/cli/configure/dependencies/index.js +35 -7
  47. package/lib/cli/configure/dependencies/index.js.map +1 -1
  48. package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js +28 -4
  49. package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js.map +1 -1
  50. package/lib/cli/configure/dependencies/seekKoala.js +28 -4
  51. package/lib/cli/configure/dependencies/seekKoala.js.map +1 -1
  52. package/lib/cli/configure/dependencies/skuba.js +28 -4
  53. package/lib/cli/configure/dependencies/skuba.js.map +1 -1
  54. package/lib/cli/configure/dependencies/skubaDeps.js +26 -2
  55. package/lib/cli/configure/dependencies/skubaDeps.js.map +1 -1
  56. package/lib/cli/configure/dependencies/skubaDive.js +29 -4
  57. package/lib/cli/configure/dependencies/skubaDive.js.map +1 -1
  58. package/lib/{src/cli → cli}/configure/ensureTemplateCompletion.d.ts +1 -1
  59. package/lib/cli/configure/ensureTemplateCompletion.js +63 -32
  60. package/lib/cli/configure/ensureTemplateCompletion.js.map +3 -3
  61. package/lib/{src/cli → cli}/configure/getEntryPoint.d.ts +2 -2
  62. package/lib/cli/configure/getEntryPoint.js +51 -19
  63. package/lib/cli/configure/getEntryPoint.js.map +3 -3
  64. package/lib/{src/cli → cli}/configure/getProjectType.d.ts +1 -1
  65. package/lib/cli/configure/getProjectType.js +36 -17
  66. package/lib/cli/configure/getProjectType.js.map +2 -2
  67. package/lib/cli/configure/index.js +91 -56
  68. package/lib/cli/configure/index.js.map +3 -3
  69. package/lib/cli/configure/modules/eslint.js +34 -10
  70. package/lib/cli/configure/modules/eslint.js.map +1 -1
  71. package/lib/cli/configure/modules/ignore.js +32 -8
  72. package/lib/cli/configure/modules/ignore.js.map +1 -1
  73. package/lib/cli/configure/modules/index.js +44 -18
  74. package/lib/cli/configure/modules/index.js.map +2 -2
  75. package/lib/cli/configure/modules/jest.d.ts +2 -0
  76. package/lib/cli/configure/modules/jest.js +86 -0
  77. package/lib/cli/configure/modules/jest.js.map +7 -0
  78. package/lib/cli/configure/modules/nodemon.js +28 -4
  79. package/lib/cli/configure/modules/nodemon.js.map +1 -1
  80. package/lib/cli/configure/modules/package.js +34 -10
  81. package/lib/cli/configure/modules/package.js.map +1 -1
  82. package/lib/cli/configure/modules/prettier.js +35 -11
  83. package/lib/cli/configure/modules/prettier.js.map +1 -1
  84. package/lib/cli/configure/modules/renovate.js +40 -17
  85. package/lib/cli/configure/modules/renovate.js.map +2 -2
  86. package/lib/cli/configure/modules/serverless.js +26 -2
  87. package/lib/cli/configure/modules/serverless.js.map +1 -1
  88. package/lib/cli/configure/modules/tslint.js +28 -4
  89. package/lib/cli/configure/modules/tslint.js.map +1 -1
  90. package/lib/cli/configure/processing/configFile.js +39 -3
  91. package/lib/cli/configure/processing/configFile.js.map +1 -1
  92. package/lib/cli/configure/processing/deleteFiles.js +26 -2
  93. package/lib/cli/configure/processing/deleteFiles.js.map +1 -1
  94. package/lib/cli/configure/processing/javascript.js +27 -2
  95. package/lib/cli/configure/processing/javascript.js.map +1 -1
  96. package/lib/cli/configure/processing/json.js +31 -6
  97. package/lib/cli/configure/processing/json.js.map +1 -1
  98. package/lib/cli/configure/processing/loadFiles.js +26 -2
  99. package/lib/cli/configure/processing/loadFiles.js.map +1 -1
  100. package/lib/cli/configure/processing/module.js +28 -4
  101. package/lib/cli/configure/processing/module.js.map +1 -1
  102. package/lib/cli/configure/processing/package.d.ts +71 -0
  103. package/lib/cli/configure/processing/package.js +45 -8
  104. package/lib/cli/configure/processing/package.js.map +3 -3
  105. package/lib/cli/configure/processing/prettier.js +38 -4
  106. package/lib/cli/configure/processing/prettier.js.map +2 -2
  107. package/lib/cli/configure/processing/record.js +41 -5
  108. package/lib/cli/configure/processing/record.js.map +2 -2
  109. package/lib/cli/configure/processing/typescript.js +63 -26
  110. package/lib/cli/configure/processing/typescript.js.map +2 -2
  111. package/lib/{src/cli → cli}/configure/types.d.ts +4 -15
  112. package/lib/cli/configure/types.js +16 -0
  113. package/lib/cli/configure/types.js.map +3 -3
  114. package/lib/cli/format/index.js +44 -20
  115. package/lib/cli/format/index.js.map +2 -2
  116. package/lib/cli/help/index.js +30 -6
  117. package/lib/cli/help/index.js.map +1 -1
  118. package/lib/{src/cli → cli}/init/getConfig.d.ts +2 -2
  119. package/lib/cli/init/getConfig.js +121 -102
  120. package/lib/cli/init/getConfig.js.map +3 -3
  121. package/lib/cli/init/git.js +51 -16
  122. package/lib/cli/init/git.js.map +2 -2
  123. package/lib/cli/init/index.js +98 -67
  124. package/lib/cli/init/index.js.map +2 -2
  125. package/lib/{src/cli → cli}/init/prompts.d.ts +13 -10
  126. package/lib/cli/init/prompts.js +56 -35
  127. package/lib/cli/init/prompts.js.map +2 -2
  128. package/lib/cli/init/types.js +41 -7
  129. package/lib/cli/init/types.js.map +1 -1
  130. package/lib/cli/init/validation.js +30 -2
  131. package/lib/cli/init/validation.js.map +1 -1
  132. package/lib/cli/init/writePackageJson.js +42 -8
  133. package/lib/cli/init/writePackageJson.js.map +2 -2
  134. package/lib/cli/lint/annotate/buildkite/eslint.js +37 -3
  135. package/lib/cli/lint/annotate/buildkite/eslint.js.map +1 -1
  136. package/lib/cli/lint/annotate/buildkite/index.js +45 -11
  137. package/lib/cli/lint/annotate/buildkite/index.js.map +1 -1
  138. package/lib/cli/lint/annotate/buildkite/internal.js +37 -3
  139. package/lib/cli/lint/annotate/buildkite/internal.js.map +1 -1
  140. package/lib/cli/lint/annotate/buildkite/prettier.js +37 -3
  141. package/lib/cli/lint/annotate/buildkite/prettier.js.map +1 -1
  142. package/lib/cli/lint/annotate/buildkite/tsc.js +37 -3
  143. package/lib/cli/lint/annotate/buildkite/tsc.js.map +1 -1
  144. package/lib/cli/lint/annotate/github/eslint.js +26 -2
  145. package/lib/cli/lint/annotate/github/eslint.js.map +1 -1
  146. package/lib/cli/lint/annotate/github/index.js +45 -11
  147. package/lib/cli/lint/annotate/github/index.js.map +1 -1
  148. package/lib/cli/lint/annotate/github/internal.js +26 -2
  149. package/lib/cli/lint/annotate/github/internal.js.map +1 -1
  150. package/lib/cli/lint/annotate/github/prettier.js +26 -2
  151. package/lib/cli/lint/annotate/github/prettier.js.map +1 -1
  152. package/lib/cli/lint/annotate/github/tsc.js +28 -4
  153. package/lib/cli/lint/annotate/github/tsc.js.map +2 -2
  154. package/lib/cli/lint/annotate/index.js +30 -6
  155. package/lib/cli/lint/annotate/index.js.map +1 -1
  156. package/lib/{src/cli → cli}/lint/autofix.d.ts +5 -0
  157. package/lib/cli/lint/autofix.js +80 -40
  158. package/lib/cli/lint/autofix.js.map +2 -2
  159. package/lib/cli/lint/eslint.js +51 -16
  160. package/lib/cli/lint/eslint.js.map +3 -3
  161. package/lib/cli/lint/external.js +51 -19
  162. package/lib/cli/lint/external.js.map +2 -2
  163. package/lib/cli/lint/index.js +50 -28
  164. package/lib/cli/lint/index.js.map +2 -2
  165. package/lib/cli/lint/internal.js +44 -18
  166. package/lib/cli/lint/internal.js.map +2 -2
  167. package/lib/cli/lint/internalLints/detectBadCodeowners.js +33 -8
  168. package/lib/cli/lint/internalLints/detectBadCodeowners.js.map +1 -1
  169. package/lib/cli/lint/internalLints/noSkubaTemplateJs.js +46 -14
  170. package/lib/cli/lint/internalLints/noSkubaTemplateJs.js.map +3 -3
  171. package/lib/cli/lint/internalLints/patchRenovateConfig.js +55 -21
  172. package/lib/cli/lint/internalLints/patchRenovateConfig.js.map +2 -2
  173. package/lib/cli/lint/internalLints/refreshConfigFiles.js +64 -35
  174. package/lib/cli/lint/internalLints/refreshConfigFiles.js.map +3 -3
  175. package/lib/{src/cli → cli}/lint/internalLints/upgrade/index.d.ts +2 -2
  176. package/lib/cli/lint/internalLints/upgrade/index.js +105 -41
  177. package/lib/cli/lint/internalLints/upgrade/index.js.map +3 -3
  178. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js +28 -4
  179. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js.map +1 -1
  180. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js +45 -11
  181. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js.map +2 -2
  182. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js +30 -6
  183. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js.map +1 -1
  184. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js +65 -34
  185. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js.map +2 -2
  186. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js +46 -11
  187. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js.map +2 -2
  188. package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/index.js +28 -4
  189. package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/index.js.map +1 -1
  190. package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/unhandledRejections.js +59 -23
  191. package/lib/cli/lint/internalLints/upgrade/patches/12.0.2/unhandledRejections.js.map +2 -2
  192. package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/index.js +28 -4
  193. package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/index.js.map +1 -1
  194. package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/patchJestSnapshots.js +46 -11
  195. package/lib/cli/lint/internalLints/upgrade/patches/12.1.1/patchJestSnapshots.js.map +2 -2
  196. package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/index.js +30 -6
  197. package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/index.js.map +1 -1
  198. package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchApiTokenFromEnvironment.js +46 -11
  199. package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchApiTokenFromEnvironment.js.map +2 -2
  200. package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchDockerfileSyntaxDirective.js +46 -11
  201. package/lib/cli/lint/internalLints/upgrade/patches/12.3.0/patchDockerfileSyntaxDirective.js.map +2 -2
  202. package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/index.js +28 -4
  203. package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/index.js.map +1 -1
  204. package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/patchDockerfileCIVariable.js +46 -11
  205. package/lib/cli/lint/internalLints/upgrade/patches/12.4.0/patchDockerfileCIVariable.js.map +2 -2
  206. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/configureTsConfigForESM.js +67 -29
  207. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/configureTsConfigForESM.js.map +2 -2
  208. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/index.js +34 -10
  209. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/index.js.map +1 -1
  210. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/patchApiDockerfiles.js +45 -11
  211. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/patchApiDockerfiles.js.map +2 -2
  212. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/rewriteSrcImports.js +63 -17
  213. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/rewriteSrcImports.js.map +2 -2
  214. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/updateLambdaConfigs.js +50 -15
  215. package/lib/cli/lint/internalLints/upgrade/patches/12.4.1/updateLambdaConfigs.js.map +2 -2
  216. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/index.js +40 -0
  217. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/index.js.map +7 -0
  218. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/patchRootTsconfig.d.ts +3 -0
  219. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/patchRootTsconfig.js +149 -0
  220. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/patchRootTsconfig.js.map +7 -0
  221. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/upgradeNode.js +55 -0
  222. package/lib/cli/lint/internalLints/upgrade/patches/13.1.1/upgradeNode.js.map +7 -0
  223. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js +51 -17
  224. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js.map +2 -2
  225. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js +34 -10
  226. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js.map +1 -1
  227. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js +44 -10
  228. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js.map +2 -2
  229. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js +46 -12
  230. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js.map +2 -2
  231. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js +28 -4
  232. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js.map +1 -1
  233. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js +49 -15
  234. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js.map +2 -2
  235. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js +45 -11
  236. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js.map +2 -2
  237. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js +34 -10
  238. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js.map +1 -1
  239. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js +45 -11
  240. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js.map +2 -2
  241. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js +45 -11
  242. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js.map +2 -2
  243. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js +47 -13
  244. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js.map +2 -2
  245. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js +28 -4
  246. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js.map +1 -1
  247. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js +45 -11
  248. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js.map +2 -2
  249. package/lib/cli/lint/prettier.js +50 -15
  250. package/lib/cli/lint/prettier.js.map +3 -3
  251. package/lib/cli/lint/tsc.js +28 -4
  252. package/lib/cli/lint/tsc.js.map +1 -1
  253. package/lib/cli/lint/types.js +16 -0
  254. package/lib/cli/lint/types.js.map +3 -3
  255. package/lib/cli/migrate/index.d.ts +6 -0
  256. package/lib/cli/migrate/index.js +79 -15
  257. package/lib/cli/migrate/index.js.map +2 -2
  258. package/lib/cli/migrate/nodeVersion/checks.d.ts +1 -0
  259. package/lib/cli/migrate/nodeVersion/checks.js +51 -120
  260. package/lib/cli/migrate/nodeVersion/checks.js.map +2 -2
  261. package/lib/cli/migrate/nodeVersion/index.d.ts +10 -0
  262. package/lib/cli/migrate/nodeVersion/index.js +239 -65
  263. package/lib/cli/migrate/nodeVersion/index.js.map +3 -3
  264. package/lib/cli/migrate/nodeVersion/upgrade.d.ts +8 -0
  265. package/lib/cli/migrate/nodeVersion/upgrade.js +179 -0
  266. package/lib/cli/migrate/nodeVersion/upgrade.js.map +7 -0
  267. package/lib/cli/node/index.js +57 -20
  268. package/lib/cli/node/index.js.map +3 -3
  269. package/lib/cli/release/index.js +28 -4
  270. package/lib/cli/release/index.js.map +1 -1
  271. package/lib/cli/start/index.js +50 -16
  272. package/lib/cli/start/index.js.map +3 -3
  273. package/lib/cli/test/index.js +44 -4
  274. package/lib/cli/test/index.js.map +2 -2
  275. package/lib/cli/test/reporters/github/annotations.d.ts +9 -0
  276. package/lib/cli/test/reporters/github/annotations.js +102 -0
  277. package/lib/cli/test/reporters/github/annotations.js.map +7 -0
  278. package/lib/cli/test/reporters/github/index.d.ts +5 -0
  279. package/lib/cli/test/reporters/github/index.js +74 -0
  280. package/lib/cli/test/reporters/github/index.js.map +7 -0
  281. package/lib/cli/version/index.js +30 -6
  282. package/lib/cli/version/index.js.map +1 -1
  283. package/lib/{src/index.d.ts → index.d.ts} +1 -0
  284. package/lib/index.js +46 -6
  285. package/lib/index.js.map +2 -2
  286. package/lib/skuba.js +45 -26
  287. package/lib/skuba.js.map +3 -3
  288. package/lib/utils/args.js +43 -6
  289. package/lib/utils/args.js.map +2 -2
  290. package/lib/utils/command.js +42 -4
  291. package/lib/utils/command.js.map +3 -3
  292. package/lib/utils/copy.js +57 -20
  293. package/lib/utils/copy.js.map +2 -2
  294. package/lib/utils/dir.js +72 -32
  295. package/lib/utils/dir.js.map +2 -2
  296. package/lib/utils/env.js +26 -2
  297. package/lib/utils/env.js.map +1 -1
  298. package/lib/utils/error.js +47 -10
  299. package/lib/utils/error.js.map +1 -1
  300. package/lib/{src/utils → utils}/exec.d.ts +3 -2
  301. package/lib/utils/exec.js +62 -24
  302. package/lib/utils/exec.js.map +3 -3
  303. package/lib/utils/fs.js +40 -6
  304. package/lib/utils/fs.js.map +2 -2
  305. package/lib/utils/help.js +30 -6
  306. package/lib/utils/help.js.map +1 -1
  307. package/lib/{src/utils → utils}/logging.d.ts +9 -10
  308. package/lib/utils/logging.js +38 -11
  309. package/lib/utils/logging.js.map +2 -2
  310. package/lib/utils/logo.js +52 -25
  311. package/lib/utils/logo.js.map +2 -2
  312. package/lib/{src/utils → utils}/manifest.d.ts +2 -3
  313. package/lib/utils/manifest.js +48 -8
  314. package/lib/utils/manifest.js.map +3 -3
  315. package/lib/utils/npmrc.js +26 -2
  316. package/lib/utils/npmrc.js.map +1 -1
  317. package/lib/utils/packageManager.js +49 -12
  318. package/lib/utils/packageManager.js.map +2 -2
  319. package/lib/utils/port.js +39 -4
  320. package/lib/utils/port.js.map +2 -2
  321. package/lib/utils/sleep.js +26 -2
  322. package/lib/utils/sleep.js.map +1 -1
  323. package/lib/utils/template.js +55 -18
  324. package/lib/utils/template.js.map +3 -3
  325. package/lib/utils/validation.js +31 -2
  326. package/lib/utils/validation.js.map +1 -1
  327. package/lib/utils/version.js +46 -9
  328. package/lib/utils/version.js.map +2 -2
  329. package/lib/utils/wait.js +32 -7
  330. package/lib/utils/wait.js.map +1 -1
  331. package/lib/{src/utils → utils}/worker.d.ts +3 -3
  332. package/lib/utils/worker.js +35 -10
  333. package/lib/utils/worker.js.map +1 -1
  334. package/lib/wrapper/function-arguments.d.js +1 -0
  335. package/lib/wrapper/functionHandler.js +49 -18
  336. package/lib/wrapper/functionHandler.js.map +2 -2
  337. package/lib/wrapper/http.js +43 -8
  338. package/lib/wrapper/http.js.map +2 -2
  339. package/lib/wrapper/index.js +7 -6
  340. package/lib/wrapper/index.js.map +1 -1
  341. package/lib/wrapper/main.js +42 -8
  342. package/lib/wrapper/main.js.map +3 -3
  343. package/lib/wrapper/requestListener.js +47 -13
  344. package/lib/wrapper/requestListener.js.map +2 -2
  345. package/lib/wrapper/server.js +28 -4
  346. package/lib/wrapper/server.js.map +2 -2
  347. package/package.json +43 -45
  348. package/template/base/_.prettierrc.js +1 -1
  349. package/template/base/_eslint.config.js +1 -1
  350. package/template/base/_pnpm-workspace.yaml +4 -3
  351. package/template/base/jest.config.ts +19 -0
  352. package/template/base/jest.setup.ts +3 -0
  353. package/template/express-rest-api/.buildkite/pipeline.yml +1 -1
  354. package/template/express-rest-api/.nvmrc +1 -1
  355. package/template/express-rest-api/package.json +8 -9
  356. package/template/express-rest-api/skuba.template.js +1 -1
  357. package/template/express-rest-api/src/app.test.ts +0 -1
  358. package/template/greeter/.buildkite/pipeline.yml +1 -1
  359. package/template/greeter/.nvmrc +1 -1
  360. package/template/greeter/package.json +4 -5
  361. package/template/greeter/skuba.template.js +1 -1
  362. package/template/greeter/src/app.test.ts +1 -3
  363. package/template/koa-rest-api/.buildkite/pipeline.yml +1 -1
  364. package/template/koa-rest-api/.nvmrc +1 -1
  365. package/template/koa-rest-api/package.json +9 -11
  366. package/template/koa-rest-api/skuba.template.js +1 -1
  367. package/template/koa-rest-api/src/api/jobs/getJobs.test.ts +0 -2
  368. package/template/koa-rest-api/src/api/jobs/postJob.test.ts +0 -2
  369. package/template/koa-rest-api/src/app.test.ts +0 -2
  370. package/template/koa-rest-api/src/framework/server.test.ts +2 -2
  371. package/template/koa-rest-api/src/framework/validation.test.ts +0 -2
  372. package/template/koa-rest-api/src/testing/metrics.ts +0 -2
  373. package/template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml +2 -2
  374. package/template/lambda-sqs-worker-cdk/.nvmrc +1 -1
  375. package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +7 -21
  376. package/template/lambda-sqs-worker-cdk/infra/appStack.test.ts +9 -11
  377. package/template/lambda-sqs-worker-cdk/infra/appStack.ts +3 -3
  378. package/template/lambda-sqs-worker-cdk/infra/config.ts +2 -4
  379. package/template/lambda-sqs-worker-cdk/package.json +9 -9
  380. package/template/lambda-sqs-worker-cdk/skuba.template.js +13 -1
  381. package/template/lambda-sqs-worker-cdk/src/app.test.ts +13 -22
  382. package/template/lambda-sqs-worker-cdk/src/framework/handler.test.ts +0 -1
  383. package/template/lambda-sqs-worker-cdk/src/framework/validation.test.ts +31 -33
  384. package/template/lambda-sqs-worker-cdk/src/services/jobScorer.test.ts +2 -8
  385. package/template/lambda-sqs-worker-cdk/src/services/pipelineEventSender.test.ts +2 -3
  386. package/template/lambda-sqs-worker-cdk/src/testing/services.ts +3 -4
  387. package/template/oss-npm-package/.github/workflows/release.yml +1 -1
  388. package/template/oss-npm-package/.github/workflows/validate.yml +1 -1
  389. package/template/oss-npm-package/.nvmrc +1 -1
  390. package/template/oss-npm-package/_package.json +0 -1
  391. package/template/oss-npm-package/skuba.template.js +1 -1
  392. package/template/oss-npm-package/src/index.test.ts +0 -2
  393. package/template/private-npm-package/.nvmrc +1 -1
  394. package/template/private-npm-package/_package.json +1 -2
  395. package/template/private-npm-package/skuba.template.js +2 -2
  396. package/template/private-npm-package/src/index.test.ts +0 -2
  397. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js +0 -11
  398. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js.map +0 -7
  399. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js +0 -34
  400. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js.map +0 -7
  401. package/lib/config/prettier.d.ts +0 -7
  402. package/lib/enquirer.d.js +0 -1
  403. package/lib/enquirer.d.js.map +0 -7
  404. package/lib/eslint.d.js +0 -1
  405. package/lib/eslint.d.js.map +0 -7
  406. package/lib/src/cli/build/esbuild.d.ts +0 -6
  407. package/lib/src/cli/configure/processing/package.d.ts +0 -5
  408. package/lib/src/cli/migrate/index.d.ts +0 -1
  409. package/lib/src/cli/migrate/nodeVersion/checks.d.ts +0 -14
  410. package/lib/src/cli/migrate/nodeVersion/index.d.ts +0 -4
  411. package/template/base/vitest.config.ts +0 -25
  412. package/lib/{src/cli → cli}/adapter/eslint.d.ts +0 -0
  413. package/lib/{src/cli → cli}/adapter/prettier.d.ts +0 -0
  414. package/lib/{src/cli → cli}/build/args.d.ts +0 -0
  415. package/lib/{src/cli → cli}/build/index.d.ts +0 -0
  416. package/lib/{src/cli → cli}/build/tsc.d.ts +0 -0
  417. package/lib/{src/cli → cli}/buildPackage/index.d.ts +0 -0
  418. package/lib/{src/cli → cli}/configure/analyseConfiguration.d.ts +0 -0
  419. package/lib/{src/cli → cli}/configure/analysis/diff.d.ts +0 -0
  420. package/lib/{src/cli → cli}/configure/analysis/files.d.ts +0 -0
  421. package/lib/{src/cli → cli}/configure/analysis/git.d.ts +0 -0
  422. package/lib/{src/cli → cli}/configure/analysis/project.d.ts +0 -0
  423. package/lib/{src/cli → cli}/configure/dependencies/index.d.ts +0 -0
  424. package/lib/{src/cli → cli}/configure/dependencies/seekDatadogCustomMetrics.d.ts +0 -0
  425. package/lib/{src/cli → cli}/configure/dependencies/seekKoala.d.ts +0 -0
  426. package/lib/{src/cli → cli}/configure/dependencies/skuba.d.ts +0 -0
  427. package/lib/{src/cli → cli}/configure/dependencies/skubaDeps.d.ts +0 -0
  428. package/lib/{src/cli → cli}/configure/dependencies/skubaDive.d.ts +0 -0
  429. package/lib/{src/cli → cli}/configure/index.d.ts +0 -0
  430. package/lib/{src/cli → cli}/configure/modules/eslint.d.ts +0 -0
  431. package/lib/{src/cli → cli}/configure/modules/ignore.d.ts +0 -0
  432. package/lib/{src/cli → cli}/configure/modules/index.d.ts +0 -0
  433. package/lib/{src/cli → cli}/configure/modules/nodemon.d.ts +0 -0
  434. package/lib/{src/cli → cli}/configure/modules/package.d.ts +0 -0
  435. package/lib/{src/cli → cli}/configure/modules/prettier.d.ts +0 -0
  436. package/lib/{src/cli → cli}/configure/modules/renovate.d.ts +0 -0
  437. package/lib/{src/cli → cli}/configure/modules/serverless.d.ts +0 -0
  438. package/lib/{src/cli → cli}/configure/modules/tslint.d.ts +0 -0
  439. package/lib/{src/cli → cli}/configure/processing/configFile.d.ts +0 -0
  440. package/lib/{src/cli → cli}/configure/processing/deleteFiles.d.ts +0 -0
  441. package/lib/{src/cli → cli}/configure/processing/javascript.d.ts +0 -0
  442. package/lib/{src/cli → cli}/configure/processing/json.d.ts +0 -0
  443. package/lib/{src/cli → cli}/configure/processing/loadFiles.d.ts +0 -0
  444. package/lib/{src/cli → cli}/configure/processing/module.d.ts +0 -0
  445. package/lib/{src/cli → cli}/configure/processing/prettier.d.ts +0 -0
  446. package/lib/{src/cli → cli}/configure/processing/record.d.ts +0 -0
  447. package/lib/{src/cli → cli}/configure/processing/typescript.d.ts +0 -0
  448. package/lib/{src/cli → cli}/format/index.d.ts +0 -0
  449. package/lib/{src/cli → cli}/help/index.d.ts +0 -0
  450. package/lib/{src/cli → cli}/init/git.d.ts +0 -0
  451. package/lib/{src/cli → cli}/init/index.d.ts +0 -0
  452. package/lib/{src/cli → cli}/init/types.d.ts +1 -1
  453. /package/lib/{src/cli → cli}/init/validation.d.ts +0 -0
  454. /package/lib/{src/cli → cli}/init/writePackageJson.d.ts +0 -0
  455. /package/lib/{src/cli → cli}/lint/annotate/buildkite/eslint.d.ts +0 -0
  456. /package/lib/{src/cli → cli}/lint/annotate/buildkite/index.d.ts +0 -0
  457. /package/lib/{src/cli → cli}/lint/annotate/buildkite/internal.d.ts +0 -0
  458. /package/lib/{src/cli → cli}/lint/annotate/buildkite/prettier.d.ts +0 -0
  459. /package/lib/{src/cli → cli}/lint/annotate/buildkite/tsc.d.ts +0 -0
  460. /package/lib/{src/cli → cli}/lint/annotate/github/eslint.d.ts +0 -0
  461. /package/lib/{src/cli → cli}/lint/annotate/github/index.d.ts +0 -0
  462. /package/lib/{src/cli → cli}/lint/annotate/github/internal.d.ts +0 -0
  463. /package/lib/{src/cli → cli}/lint/annotate/github/prettier.d.ts +0 -0
  464. /package/lib/{src/cli → cli}/lint/annotate/github/tsc.d.ts +0 -0
  465. /package/lib/{src/cli → cli}/lint/annotate/index.d.ts +0 -0
  466. /package/lib/{src/cli → cli}/lint/eslint.d.ts +0 -0
  467. /package/lib/{src/cli → cli}/lint/external.d.ts +0 -0
  468. /package/lib/{src/cli → cli}/lint/index.d.ts +0 -0
  469. /package/lib/{src/cli → cli}/lint/internal.d.ts +0 -0
  470. /package/lib/{src/cli → cli}/lint/internalLints/detectBadCodeowners.d.ts +0 -0
  471. /package/lib/{src/cli → cli}/lint/internalLints/noSkubaTemplateJs.d.ts +0 -0
  472. /package/lib/{src/cli → cli}/lint/internalLints/patchRenovateConfig.d.ts +0 -0
  473. /package/lib/{src/cli → cli}/lint/internalLints/refreshConfigFiles.d.ts +0 -0
  474. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/10.0.4/index.d.ts +0 -0
  475. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.d.ts +0 -0
  476. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/10.1.0/index.d.ts +0 -0
  477. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.d.ts +0 -0
  478. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.d.ts +0 -0
  479. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.0.2/index.d.ts +0 -0
  480. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.0.2/unhandledRejections.d.ts +0 -0
  481. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.1.1/index.d.ts +0 -0
  482. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.1.1/patchJestSnapshots.d.ts +0 -0
  483. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.3.0/index.d.ts +0 -0
  484. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.3.0/patchApiTokenFromEnvironment.d.ts +0 -0
  485. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.3.0/patchDockerfileSyntaxDirective.d.ts +0 -0
  486. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.0/index.d.ts +0 -0
  487. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.0/patchDockerfileCIVariable.d.ts +0 -0
  488. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.1/configureTsConfigForESM.d.ts +0 -0
  489. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.1/index.d.ts +0 -0
  490. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.1/patchApiDockerfiles.d.ts +0 -0
  491. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.1/rewriteSrcImports.d.ts +0 -0
  492. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/12.4.1/updateLambdaConfigs.d.ts +0 -0
  493. /package/lib/{src/cli/lint/internalLints/upgrade/patches/7.3.1 → cli/lint/internalLints/upgrade/patches/13.1.1}/index.d.ts +0 -0
  494. /package/lib/{src/cli/lint/internalLints/upgrade/patches/9.1.0 → cli/lint/internalLints/upgrade/patches/13.1.1}/upgradeNode.d.ts +0 -0
  495. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.d.ts +0 -0
  496. /package/lib/{src/cli/lint/internalLints/upgrade/patches/8.0.0 → cli/lint/internalLints/upgrade/patches/7.3.1}/index.d.ts +0 -0
  497. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.d.ts +0 -0
  498. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.d.ts +0 -0
  499. /package/lib/{src/cli/lint/internalLints/upgrade/patches/8.2.1 → cli/lint/internalLints/upgrade/patches/8.0.0}/index.d.ts +0 -0
  500. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.d.ts +0 -0
  501. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.d.ts +0 -0
  502. /package/lib/{src/cli/lint/internalLints/upgrade/patches/9.0.1 → cli/lint/internalLints/upgrade/patches/8.2.1}/index.d.ts +0 -0
  503. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.d.ts +0 -0
  504. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.d.ts +0 -0
  505. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.d.ts +0 -0
  506. /package/lib/{src/cli/lint/internalLints/upgrade/patches/9.1.0 → cli/lint/internalLints/upgrade/patches/9.0.1}/index.d.ts +0 -0
  507. /package/lib/{src/cli → cli}/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.d.ts +0 -0
  508. /package/lib/{src/cli → cli}/lint/prettier.d.ts +0 -0
  509. /package/lib/{src/cli → cli}/lint/tsc.d.ts +0 -0
  510. /package/lib/{src/cli → cli}/lint/types.d.ts +0 -0
  511. /package/lib/{src/cli → cli}/node/index.d.ts +0 -0
  512. /package/lib/{src/cli → cli}/release/index.d.ts +0 -0
  513. /package/lib/{src/cli → cli}/start/index.d.ts +0 -0
  514. /package/lib/{src/cli → cli}/test/index.d.ts +0 -0
  515. /package/lib/{src/cli → cli}/version/index.d.ts +0 -0
  516. /package/lib/{src/skuba.d.ts → skuba.d.ts} +0 -0
  517. /package/lib/{src/utils → utils}/args.d.ts +0 -0
  518. /package/lib/{src/utils → utils}/command.d.ts +0 -0
  519. /package/lib/{src/utils → utils}/copy.d.ts +0 -0
  520. /package/lib/{src/utils → utils}/dir.d.ts +0 -0
  521. /package/lib/{src/utils → utils}/env.d.ts +0 -0
  522. /package/lib/{src/utils → utils}/error.d.ts +0 -0
  523. /package/lib/{src/utils → utils}/fs.d.ts +0 -0
  524. /package/lib/{src/utils → utils}/help.d.ts +0 -0
  525. /package/lib/{src/utils → utils}/logo.d.ts +0 -0
  526. /package/lib/{src/utils → utils}/npmrc.d.ts +0 -0
  527. /package/lib/{src/utils → utils}/packageManager.d.ts +0 -0
  528. /package/lib/{src/utils → utils}/port.d.ts +0 -0
  529. /package/lib/{src/utils → utils}/sleep.d.ts +0 -0
  530. /package/lib/{src/utils → utils}/template.d.ts +0 -0
  531. /package/lib/{src/utils → utils}/validation.d.ts +0 -0
  532. /package/lib/{src/utils → utils}/version.d.ts +0 -0
  533. /package/lib/{src/utils → utils}/wait.d.ts +0 -0
  534. /package/lib/{src/wrapper → wrapper}/functionHandler.d.ts +0 -0
  535. /package/lib/{src/wrapper → wrapper}/http.d.ts +0 -0
  536. /package/lib/{src/wrapper → wrapper}/index.d.ts +0 -0
  537. /package/lib/{src/wrapper → wrapper}/main.d.ts +0 -0
  538. /package/lib/{src/wrapper → wrapper}/requestListener.d.ts +0 -0
  539. /package/lib/{src/wrapper → wrapper}/server.d.ts +0 -0
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/buildkite/prettier.ts"],
4
4
  "sourcesContent": ["import type { PrettierOutput } from '../../../adapter/prettier.js';\n\nimport * as Buildkite from '@skuba-lib/api/buildkite';\n\nexport const createPrettierAnnotations = (\n prettier: PrettierOutput,\n): string[] =>\n !prettier.ok\n ? [\n '**Prettier**',\n Buildkite.md.terminal(\n prettier.result.errored\n .map(({ err, filepath }) =>\n [\n filepath,\n ...(typeof err === 'string' || err instanceof Error\n ? [String(err)]\n : []),\n ].join(' '),\n )\n .join('\\n'),\n ),\n ]\n : [];\n"],
5
- "mappings": "AAEA,YAAY,eAAe;AAEpB,MAAM,4BAA4B,CACvC,aAEA,CAAC,SAAS,KACN;AAAA,EACE;AAAA,EACA,UAAU,GAAG;AAAA,IACX,SAAS,OAAO,QACb;AAAA,MAAI,CAAC,EAAE,KAAK,SAAS,MACpB;AAAA,QACE;AAAA,QACA,GAAI,OAAO,QAAQ,YAAY,eAAe,QAC1C,CAAC,OAAO,GAAG,CAAC,IACZ,CAAC;AAAA,MACP,EAAE,KAAK,GAAG;AAAA,IACZ,EACC,KAAK,IAAI;AAAA,EACd;AACF,IACA,CAAC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,gBAA2B;AAEpB,MAAM,4BAA4B,CACvC,aAEA,CAAC,SAAS,KACN;AAAA,EACE;AAAA,EACA,UAAU,GAAG;AAAA,IACX,SAAS,OAAO,QACb;AAAA,MAAI,CAAC,EAAE,KAAK,SAAS,MACpB;AAAA,QACE;AAAA,QACA,GAAI,OAAO,QAAQ,YAAY,eAAe,QAC1C,CAAC,OAAO,GAAG,CAAC,IACZ,CAAC;AAAA,MACP,EAAE,KAAK,GAAG;AAAA,IACZ,EACC,KAAK,IAAI;AAAA,EACd;AACF,IACA,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,11 +1,45 @@
1
- import * as Buildkite from "@skuba-lib/api/buildkite";
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var tsc_exports = {};
30
+ __export(tsc_exports, {
31
+ createTscAnnotations: () => createTscAnnotations
32
+ });
33
+ module.exports = __toCommonJS(tsc_exports);
34
+ var Buildkite = __toESM(require("@skuba-lib/api/buildkite"));
2
35
  const createTscAnnotations = (tscOk, tscOutputStream) => !tscOk ? [
3
36
  "**tsc**",
4
37
  Buildkite.md.terminal(
5
38
  tscOutputStream.output().split("\n").filter(Boolean).filter((line) => !line.startsWith("TSFILE: ")).join("\n").trim()
6
39
  )
7
40
  ] : [];
8
- export {
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
9
43
  createTscAnnotations
10
- };
44
+ });
11
45
  //# sourceMappingURL=tsc.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/buildkite/tsc.ts"],
4
4
  "sourcesContent": ["import type { StreamInterceptor } from '../../../lint/external.js';\n\nimport * as Buildkite from '@skuba-lib/api/buildkite';\n\nexport const createTscAnnotations = (\n tscOk: boolean,\n tscOutputStream: StreamInterceptor,\n): string[] =>\n !tscOk\n ? [\n '**tsc**',\n Buildkite.md.terminal(\n tscOutputStream\n .output()\n .split('\\n')\n .filter(Boolean)\n .filter((line) => !line.startsWith('TSFILE: '))\n .join('\\n')\n .trim(),\n ),\n ]\n : [];\n"],
5
- "mappings": "AAEA,YAAY,eAAe;AAEpB,MAAM,uBAAuB,CAClC,OACA,oBAEA,CAAC,QACG;AAAA,EACE;AAAA,EACA,UAAU,GAAG;AAAA,IACX,gBACG,OAAO,EACP,MAAM,IAAI,EACV,OAAO,OAAO,EACd,OAAO,CAAC,SAAS,CAAC,KAAK,WAAW,UAAU,CAAC,EAC7C,KAAK,IAAI,EACT,KAAK;AAAA,EACV;AACF,IACA,CAAC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,gBAA2B;AAEpB,MAAM,uBAAuB,CAClC,OACA,oBAEA,CAAC,QACG;AAAA,EACE;AAAA,EACA,UAAU,GAAG;AAAA,IACX,gBACG,OAAO,EACP,MAAM,IAAI,EACV,OAAO,OAAO,EACd,OAAO,CAAC,SAAS,CAAC,KAAK,WAAW,UAAU,CAAC,EAC7C,KAAK,IAAI,EACT,KAAK;AAAA,EACV;AACF,IACA,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var eslint_exports = {};
20
+ __export(eslint_exports, {
21
+ createEslintAnnotations: () => createEslintAnnotations
22
+ });
23
+ module.exports = __toCommonJS(eslint_exports);
1
24
  const createEslintAnnotations = (eslint) => [...eslint.errors, ...eslint.warnings].flatMap(
2
25
  (result) => result.messages.map((message) => {
3
26
  const isSameLine = message.line === message.endLine;
@@ -15,7 +38,8 @@ const createEslintAnnotations = (eslint) => [...eslint.errors, ...eslint.warning
15
38
  };
16
39
  })
17
40
  );
18
- export {
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
19
43
  createEslintAnnotations
20
- };
44
+ });
21
45
  //# sourceMappingURL=eslint.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/github/eslint.ts"],
4
4
  "sourcesContent": ["import type { ESLintOutput } from '../../../adapter/eslint.js';\n\nimport type * as GitHub from '@skuba-lib/api/github';\n\nexport const createEslintAnnotations = (\n eslint: ESLintOutput,\n): GitHub.Annotation[] =>\n [...eslint.errors, ...eslint.warnings].flatMap<GitHub.Annotation>((result) =>\n result.messages.map((message): GitHub.Annotation => {\n // Annotations only support start_column and end_column on the same line.\n const isSameLine = message.line === message.endLine;\n const startColumn = isSameLine && message.column;\n const endColumn = (isSameLine && message.endColumn) || startColumn;\n\n return {\n annotation_level: message.severity === 2 ? 'failure' : 'warning',\n start_line: message.line ?? 1,\n end_line: message.endLine ?? message.line ?? 1,\n ...(startColumn && { start_column: startColumn }),\n ...(endColumn && { end_column: endColumn }),\n message: message.message,\n path: result.filePath,\n title: `ESLint${message.ruleId ? ` (${message.ruleId})` : ''}`,\n };\n }),\n );\n"],
5
- "mappings": "AAIO,MAAM,0BAA0B,CACrC,WAEA,CAAC,GAAG,OAAO,QAAQ,GAAG,OAAO,QAAQ,EAAE;AAAA,EAA2B,CAAC,WACjE,OAAO,SAAS,IAAI,CAAC,YAA+B;AAElD,UAAM,aAAa,QAAQ,SAAS,QAAQ;AAC5C,UAAM,cAAc,cAAc,QAAQ;AAC1C,UAAM,YAAa,cAAc,QAAQ,aAAc;AAEvD,WAAO;AAAA,MACL,kBAAkB,QAAQ,aAAa,IAAI,YAAY;AAAA,MACvD,YAAY,QAAQ,QAAQ;AAAA,MAC5B,UAAU,QAAQ,WAAW,QAAQ,QAAQ;AAAA,MAC7C,GAAI,eAAe,EAAE,cAAc,YAAY;AAAA,MAC/C,GAAI,aAAa,EAAE,YAAY,UAAU;AAAA,MACzC,SAAS,QAAQ;AAAA,MACjB,MAAM,OAAO;AAAA,MACb,OAAO,SAAS,QAAQ,SAAS,KAAK,QAAQ,MAAM,MAAM,EAAE;AAAA,IAC9D;AAAA,EACF,CAAC;AACH;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,0BAA0B,CACrC,WAEA,CAAC,GAAG,OAAO,QAAQ,GAAG,OAAO,QAAQ,EAAE;AAAA,EAA2B,CAAC,WACjE,OAAO,SAAS,IAAI,CAAC,YAA+B;AAElD,UAAM,aAAa,QAAQ,SAAS,QAAQ;AAC5C,UAAM,cAAc,cAAc,QAAQ;AAC1C,UAAM,YAAa,cAAc,QAAQ,aAAc;AAEvD,WAAO;AAAA,MACL,kBAAkB,QAAQ,aAAa,IAAI,YAAY;AAAA,MACvD,YAAY,QAAQ,QAAQ;AAAA,MAC5B,UAAU,QAAQ,WAAW,QAAQ,QAAQ;AAAA,MAC7C,GAAI,eAAe,EAAE,cAAc,YAAY;AAAA,MAC/C,GAAI,aAAa,EAAE,YAAY,UAAU;AAAA,MACzC,SAAS,QAAQ;AAAA,MACjB,MAAM,OAAO;AAAA,MACb,OAAO,SAAS,QAAQ,SAAS,KAAK,QAAQ,MAAM,MAAM,EAAE;AAAA,IAC9D;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,17 +1,50 @@
1
- import { createEslintAnnotations } from "./eslint.js";
2
- import { createInternalAnnotations } from "./internal.js";
3
- import { createPrettierAnnotations } from "./prettier.js";
4
- import { createTscAnnotations } from "./tsc.js";
5
- import * as GitHub from "@skuba-lib/api/github";
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var github_exports = {};
30
+ __export(github_exports, {
31
+ createGitHubAnnotations: () => createGitHubAnnotations
32
+ });
33
+ module.exports = __toCommonJS(github_exports);
34
+ var import_eslint = require("./eslint.js");
35
+ var import_internal = require("./internal.js");
36
+ var import_prettier = require("./prettier.js");
37
+ var import_tsc = require("./tsc.js");
38
+ var GitHub = __toESM(require("@skuba-lib/api/github"));
6
39
  const createGitHubAnnotations = async (internal, eslint, prettier, tscOk, tscOutputStream) => {
7
40
  if (!GitHub.enabledFromEnvironment()) {
8
41
  return;
9
42
  }
10
43
  const annotations = [
11
- ...createInternalAnnotations(internal),
12
- ...createEslintAnnotations(eslint),
13
- ...createPrettierAnnotations(prettier),
14
- ...createTscAnnotations(tscOk, tscOutputStream)
44
+ ...(0, import_internal.createInternalAnnotations)(internal),
45
+ ...(0, import_eslint.createEslintAnnotations)(eslint),
46
+ ...(0, import_prettier.createPrettierAnnotations)(prettier),
47
+ ...(0, import_tsc.createTscAnnotations)(tscOk, tscOutputStream)
15
48
  ];
16
49
  const isOk = eslint.ok && prettier.ok && internal.ok && tscOk;
17
50
  const summary = isOk ? "`skuba lint` passed." : "`skuba lint` found issues that require triage.";
@@ -24,7 +57,8 @@ const createGitHubAnnotations = async (internal, eslint, prettier, tscOk, tscOut
24
57
  title: `${build} ${isOk ? "passed" : "failed"}`
25
58
  });
26
59
  };
27
- export {
60
+ // Annotate the CommonJS export names for ESM import in node:
61
+ 0 && (module.exports = {
28
62
  createGitHubAnnotations
29
- };
63
+ });
30
64
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/github/index.ts"],
4
4
  "sourcesContent": ["import type { ESLintOutput } from '../../../adapter/eslint.js';\nimport type { PrettierOutput } from '../../../adapter/prettier.js';\nimport type { StreamInterceptor } from '../../../lint/external.js';\nimport type { InternalLintResult } from '../../internal.js';\n\nimport { createEslintAnnotations } from './eslint.js';\nimport { createInternalAnnotations } from './internal.js';\nimport { createPrettierAnnotations } from './prettier.js';\nimport { createTscAnnotations } from './tsc.js';\n\nimport * as GitHub from '@skuba-lib/api/github';\n\nexport const createGitHubAnnotations = async (\n internal: InternalLintResult,\n eslint: ESLintOutput,\n prettier: PrettierOutput,\n tscOk: boolean,\n tscOutputStream: StreamInterceptor,\n) => {\n if (!GitHub.enabledFromEnvironment()) {\n return;\n }\n\n const annotations: GitHub.Annotation[] = [\n ...createInternalAnnotations(internal),\n ...createEslintAnnotations(eslint),\n ...createPrettierAnnotations(prettier),\n ...createTscAnnotations(tscOk, tscOutputStream),\n ];\n\n const isOk = eslint.ok && prettier.ok && internal.ok && tscOk;\n\n const summary = isOk\n ? '`skuba lint` passed.'\n : '`skuba lint` found issues that require triage.';\n\n const build = GitHub.buildNameFromEnvironment();\n\n await GitHub.createCheckRun({\n name: 'skuba/lint',\n summary,\n annotations,\n conclusion: isOk ? 'success' : 'failure',\n title: `${build} ${isOk ? 'passed' : 'failed'}`,\n });\n};\n"],
5
- "mappings": "AAKA,SAAS,+BAA+B;AACxC,SAAS,iCAAiC;AAC1C,SAAS,iCAAiC;AAC1C,SAAS,4BAA4B;AAErC,YAAY,YAAY;AAEjB,MAAM,0BAA0B,OACrC,UACA,QACA,UACA,OACA,oBACG;AACH,MAAI,CAAC,OAAO,uBAAuB,GAAG;AACpC;AAAA,EACF;AAEA,QAAM,cAAmC;AAAA,IACvC,GAAG,0BAA0B,QAAQ;AAAA,IACrC,GAAG,wBAAwB,MAAM;AAAA,IACjC,GAAG,0BAA0B,QAAQ;AAAA,IACrC,GAAG,qBAAqB,OAAO,eAAe;AAAA,EAChD;AAEA,QAAM,OAAO,OAAO,MAAM,SAAS,MAAM,SAAS,MAAM;AAExD,QAAM,UAAU,OACZ,yBACA;AAEJ,QAAM,QAAQ,OAAO,yBAAyB;AAE9C,QAAM,OAAO,eAAe;AAAA,IAC1B,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,YAAY,OAAO,YAAY;AAAA,IAC/B,OAAO,GAAG,KAAK,IAAI,OAAO,WAAW,QAAQ;AAAA,EAC/C,CAAC;AACH;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,oBAAwC;AACxC,sBAA0C;AAC1C,sBAA0C;AAC1C,iBAAqC;AAErC,aAAwB;AAEjB,MAAM,0BAA0B,OACrC,UACA,QACA,UACA,OACA,oBACG;AACH,MAAI,CAAC,OAAO,uBAAuB,GAAG;AACpC;AAAA,EACF;AAEA,QAAM,cAAmC;AAAA,IACvC,OAAG,2CAA0B,QAAQ;AAAA,IACrC,OAAG,uCAAwB,MAAM;AAAA,IACjC,OAAG,2CAA0B,QAAQ;AAAA,IACrC,OAAG,iCAAqB,OAAO,eAAe;AAAA,EAChD;AAEA,QAAM,OAAO,OAAO,MAAM,SAAS,MAAM,SAAS,MAAM;AAExD,QAAM,UAAU,OACZ,yBACA;AAEJ,QAAM,QAAQ,OAAO,yBAAyB;AAE9C,QAAM,OAAO,eAAe;AAAA,IAC1B,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,YAAY,OAAO,YAAY;AAAA,IAC/B,OAAO,GAAG,KAAK,IAAI,OAAO,WAAW,QAAQ;AAAA,EAC/C,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var internal_exports = {};
20
+ __export(internal_exports, {
21
+ createInternalAnnotations: () => createInternalAnnotations
22
+ });
23
+ module.exports = __toCommonJS(internal_exports);
1
24
  const createInternalAnnotations = (internal) => (internal.annotations ?? []).map((annotation) => ({
2
25
  annotation_level: "failure",
3
26
  start_line: annotation.start_line ?? 1,
@@ -6,7 +29,8 @@ const createInternalAnnotations = (internal) => (internal.annotations ?? []).map
6
29
  message: annotation.message,
7
30
  title: "skuba lint"
8
31
  }));
9
- export {
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
10
34
  createInternalAnnotations
11
- };
35
+ });
12
36
  //# sourceMappingURL=internal.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/github/internal.ts"],
4
4
  "sourcesContent": ["import type { InternalLintResult } from '../../internal.js';\n\nimport type * as GitHub from '@skuba-lib/api/github';\n\nexport const createInternalAnnotations = (\n internal: InternalLintResult,\n): GitHub.Annotation[] =>\n (internal.annotations ?? []).map((annotation) => ({\n annotation_level: 'failure',\n start_line: annotation.start_line ?? 1,\n end_line: annotation.end_line ?? annotation.start_line ?? 1,\n path: annotation.path,\n message: annotation.message,\n title: 'skuba lint',\n }));\n"],
5
- "mappings": "AAIO,MAAM,4BAA4B,CACvC,cAEC,SAAS,eAAe,CAAC,GAAG,IAAI,CAAC,gBAAgB;AAAA,EAChD,kBAAkB;AAAA,EAClB,YAAY,WAAW,cAAc;AAAA,EACrC,UAAU,WAAW,YAAY,WAAW,cAAc;AAAA,EAC1D,MAAM,WAAW;AAAA,EACjB,SAAS,WAAW;AAAA,EACpB,OAAO;AACT,EAAE;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,4BAA4B,CACvC,cAEC,SAAS,eAAe,CAAC,GAAG,IAAI,CAAC,gBAAgB;AAAA,EAChD,kBAAkB;AAAA,EAClB,YAAY,WAAW,cAAc;AAAA,EACrC,UAAU,WAAW,YAAY,WAAW,cAAc;AAAA,EAC1D,MAAM,WAAW;AAAA,EACjB,SAAS,WAAW;AAAA,EACpB,OAAO;AACT,EAAE;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,26 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var prettier_exports = {};
20
+ __export(prettier_exports, {
21
+ createPrettierAnnotations: () => createPrettierAnnotations
22
+ });
23
+ module.exports = __toCommonJS(prettier_exports);
1
24
  const createPrettierAnnotations = (prettier) => prettier.result.errored.map((result) => {
2
25
  const message = result.err instanceof Error ? result.err.message : result.err;
3
26
  return {
@@ -9,7 +32,8 @@ const createPrettierAnnotations = (prettier) => prettier.result.errored.map((res
9
32
  title: "Prettier"
10
33
  };
11
34
  });
12
- export {
35
+ // Annotate the CommonJS export names for ESM import in node:
36
+ 0 && (module.exports = {
13
37
  createPrettierAnnotations
14
- };
38
+ });
15
39
  //# sourceMappingURL=prettier.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/github/prettier.ts"],
4
4
  "sourcesContent": ["import type { PrettierOutput } from '../../../adapter/prettier.js';\n\nimport type * as GitHub from '@skuba-lib/api/github';\n\nexport const createPrettierAnnotations = (\n prettier: PrettierOutput,\n): GitHub.Annotation[] =>\n prettier.result.errored.map((result) => {\n const message =\n result.err instanceof Error ? result.err.message : result.err;\n\n return {\n annotation_level: 'failure',\n start_line: 1,\n end_line: 1,\n path: result.filepath,\n message:\n typeof message === 'string' || message instanceof Error\n ? String(message)\n : 'This file has not been formatted.',\n title: 'Prettier',\n };\n });\n"],
5
- "mappings": "AAIO,MAAM,4BAA4B,CACvC,aAEA,SAAS,OAAO,QAAQ,IAAI,CAAC,WAAW;AACtC,QAAM,UACJ,OAAO,eAAe,QAAQ,OAAO,IAAI,UAAU,OAAO;AAE5D,SAAO;AAAA,IACL,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,MAAM,OAAO;AAAA,IACb,SACE,OAAO,YAAY,YAAY,mBAAmB,QAC9C,OAAO,OAAO,IACd;AAAA,IACN,OAAO;AAAA,EACT;AACF,CAAC;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,4BAA4B,CACvC,aAEA,SAAS,OAAO,QAAQ,IAAI,CAAC,WAAW;AACtC,QAAM,UACJ,OAAO,eAAe,QAAQ,OAAO,IAAI,UAAU,OAAO;AAE5D,SAAO;AAAA,IACL,kBAAkB;AAAA,IAClB,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,MAAM,OAAO;AAAA,IACb,SACE,OAAO,YAAY,YAAY,mBAAmB,QAC9C,OAAO,OAAO,IACd;AAAA,IACN,OAAO;AAAA,EACT;AACF,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,27 @@
1
- import { stripVTControlCharacters as stripAnsi } from "util";
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var tsc_exports = {};
20
+ __export(tsc_exports, {
21
+ createTscAnnotations: () => createTscAnnotations
22
+ });
23
+ module.exports = __toCommonJS(tsc_exports);
24
+ var import_util = require("util");
2
25
  const tscOutputRegex = /([^\s].*)[\(:](\d+)[,:](\d+)(?:\):\s+|\s+-\s+)(error|warning|info)\s+TS(\d+)\s*:\s*([\s\S]*?)(?=\n\S)(?=\n\D)/g;
3
26
  const annotationLevelMap = {
4
27
  error: "failure",
@@ -9,7 +32,7 @@ const createTscAnnotations = (tscOk, tscOutputStream) => {
9
32
  if (tscOk) {
10
33
  return [];
11
34
  }
12
- const matches = stripAnsi(tscOutputStream.output()).matchAll(tscOutputRegex);
35
+ const matches = (0, import_util.stripVTControlCharacters)(tscOutputStream.output()).matchAll(tscOutputRegex);
13
36
  return Array.from(matches).flatMap(
14
37
  (match) => match?.length === 7 && match[1] && match[4] && match[5] && match[6] ? {
15
38
  annotation_level: annotationLevelMap[match[4]],
@@ -23,7 +46,8 @@ const createTscAnnotations = (tscOk, tscOutputStream) => {
23
46
  } : []
24
47
  );
25
48
  };
26
- export {
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
27
51
  createTscAnnotations
28
- };
52
+ });
29
53
  //# sourceMappingURL=tsc.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/cli/lint/annotate/github/tsc.ts"],
4
4
  "sourcesContent": ["import { stripVTControlCharacters as stripAnsi } from 'util';\n\nimport type { StreamInterceptor } from '../../../lint/external.js';\n\nimport type * as GitHub from '@skuba-lib/api/github';\n\ntype TscLevel = 'error' | 'warning' | 'info';\n\n/**\n * Matches the `tsc \u2502` prefix on each `tsc` log.\n */\n\n/**\n * Matches regular and pretty `tsc` output.\n *\n * For example, given the following input string:\n *\n * ```console\n * src/skuba.ts:43:7 - error TS2769: No overload matches this call.\n * Overload 1 of 2, '(obj: LogContext, msg?: string | undefined, ...args: any[]): void', gave the following error.\n * Argument of type 'unknown' is not assignable to parameter of type 'LogContext'.\n * Overload 2 of 2, '(msg?: string | undefined, ...args: any[]): void', gave the following error.\n * Argument of type 'unknown' is not assignable to parameter of type 'string | undefined'.\n * Type 'unknown' is not assignable to type 'string'.\n * ```\n *\n * This pattern will produce the following matches:\n *\n * 1. src/skuba.ts\n * 2. 43\n * 3. 7\n * 4. error\n * 5. 2769\n * 6. No overload matches this call [...] not assignable to type 'string'.\n */\nconst tscOutputRegex =\n /([^\\s].*)[\\(:](\\d+)[,:](\\d+)(?:\\):\\s+|\\s+-\\s+)(error|warning|info)\\s+TS(\\d+)\\s*:\\s*([\\s\\S]*?)(?=\\n\\S)(?=\\n\\D)/g;\n\nconst annotationLevelMap: Record<\n TscLevel,\n GitHub.Annotation['annotation_level']\n> = {\n error: 'failure',\n warning: 'warning',\n info: 'notice',\n};\n\nexport const createTscAnnotations = (\n tscOk: boolean,\n tscOutputStream: StreamInterceptor,\n): GitHub.Annotation[] => {\n if (tscOk) {\n return [];\n }\n\n const matches = stripAnsi(tscOutputStream.output()).matchAll(tscOutputRegex);\n return Array.from(matches).flatMap<GitHub.Annotation>((match) =>\n match?.length === 7 && match[1] && match[4] && match[5] && match[6]\n ? {\n annotation_level: annotationLevelMap[match[4] as TscLevel],\n path: match[1],\n start_line: Number(match[2]),\n end_line: Number(match[2]),\n start_column: Number(match[3]),\n end_column: Number(match[3]),\n message: match[6].trim(),\n title: `tsc (TS${match[5]})`,\n }\n : [],\n );\n};\n"],
5
- "mappings": "AAAA,SAAS,4BAA4B,iBAAiB;AAmCtD,MAAM,iBACJ;AAEF,MAAM,qBAGF;AAAA,EACF,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR;AAEO,MAAM,uBAAuB,CAClC,OACA,oBACwB;AACxB,MAAI,OAAO;AACT,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,UAAU,UAAU,gBAAgB,OAAO,CAAC,EAAE,SAAS,cAAc;AAC3E,SAAO,MAAM,KAAK,OAAO,EAAE;AAAA,IAA2B,CAAC,UACrD,OAAO,WAAW,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,IAC9D;AAAA,MACE,kBAAkB,mBAAmB,MAAM,CAAC,CAAa;AAAA,MACzD,MAAM,MAAM,CAAC;AAAA,MACb,YAAY,OAAO,MAAM,CAAC,CAAC;AAAA,MAC3B,UAAU,OAAO,MAAM,CAAC,CAAC;AAAA,MACzB,cAAc,OAAO,MAAM,CAAC,CAAC;AAAA,MAC7B,YAAY,OAAO,MAAM,CAAC,CAAC;AAAA,MAC3B,SAAS,MAAM,CAAC,EAAE,KAAK;AAAA,MACvB,OAAO,UAAU,MAAM,CAAC,CAAC;AAAA,IAC3B,IACA,CAAC;AAAA,EACP;AACF;",
6
- "names": []
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAsD;AAmCtD,MAAM,iBACJ;AAEF,MAAM,qBAGF;AAAA,EACF,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AACR;AAEO,MAAM,uBAAuB,CAClC,OACA,oBACwB;AACxB,MAAI,OAAO;AACT,WAAO,CAAC;AAAA,EACV;AAEA,QAAM,cAAU,YAAAA,0BAAU,gBAAgB,OAAO,CAAC,EAAE,SAAS,cAAc;AAC3E,SAAO,MAAM,KAAK,OAAO,EAAE;AAAA,IAA2B,CAAC,UACrD,OAAO,WAAW,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,KAAK,MAAM,CAAC,IAC9D;AAAA,MACE,kBAAkB,mBAAmB,MAAM,CAAC,CAAa;AAAA,MACzD,MAAM,MAAM,CAAC;AAAA,MACb,YAAY,OAAO,MAAM,CAAC,CAAC;AAAA,MAC3B,UAAU,OAAO,MAAM,CAAC,CAAC;AAAA,MACzB,cAAc,OAAO,MAAM,CAAC,CAAC;AAAA,MAC7B,YAAY,OAAO,MAAM,CAAC,CAAC;AAAA,MAC3B,SAAS,MAAM,CAAC,EAAE,KAAK;AAAA,MACvB,OAAO,UAAU,MAAM,CAAC,CAAC;AAAA,IAC3B,IACA,CAAC;AAAA,EACP;AACF;",
6
+ "names": ["stripAnsi"]
7
7
  }
@@ -1,9 +1,32 @@
1
- import { createBuildkiteAnnotations } from "./buildkite/index.js";
2
- import { createGitHubAnnotations } from "./github/index.js";
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var annotate_exports = {};
20
+ __export(annotate_exports, {
21
+ createAnnotations: () => createAnnotations
22
+ });
23
+ module.exports = __toCommonJS(annotate_exports);
24
+ var import_buildkite = require("./buildkite/index.js");
25
+ var import_github = require("./github/index.js");
3
26
  const createAnnotations = async (internal, eslint, prettier, tscOk, tscOutputStream) => {
4
27
  await Promise.all([
5
- createGitHubAnnotations(internal, eslint, prettier, tscOk, tscOutputStream),
6
- createBuildkiteAnnotations(
28
+ (0, import_github.createGitHubAnnotations)(internal, eslint, prettier, tscOk, tscOutputStream),
29
+ (0, import_buildkite.createBuildkiteAnnotations)(
7
30
  internal,
8
31
  eslint,
9
32
  prettier,
@@ -12,7 +35,8 @@ const createAnnotations = async (internal, eslint, prettier, tscOk, tscOutputStr
12
35
  )
13
36
  ]);
14
37
  };
15
- export {
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
16
40
  createAnnotations
17
- };
41
+ });
18
42
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/cli/lint/annotate/index.ts"],
4
4
  "sourcesContent": ["import type { ESLintOutput } from '../../../cli/adapter/eslint.js';\nimport type { PrettierOutput } from '../../../cli/adapter/prettier.js';\nimport type { StreamInterceptor } from '../external.js';\nimport type { InternalLintResult } from '../internal.js';\n\nimport { createBuildkiteAnnotations } from './buildkite/index.js';\nimport { createGitHubAnnotations } from './github/index.js';\n\nexport const createAnnotations = async (\n internal: InternalLintResult,\n eslint: ESLintOutput,\n prettier: PrettierOutput,\n tscOk: boolean,\n tscOutputStream: StreamInterceptor,\n): Promise<void> => {\n await Promise.all([\n createGitHubAnnotations(internal, eslint, prettier, tscOk, tscOutputStream),\n createBuildkiteAnnotations(\n internal,\n eslint,\n prettier,\n tscOk,\n tscOutputStream,\n ),\n ]);\n};\n"],
5
- "mappings": "AAKA,SAAS,kCAAkC;AAC3C,SAAS,+BAA+B;AAEjC,MAAM,oBAAoB,OAC/B,UACA,QACA,UACA,OACA,oBACkB;AAClB,QAAM,QAAQ,IAAI;AAAA,IAChB,wBAAwB,UAAU,QAAQ,UAAU,OAAO,eAAe;AAAA,IAC1E;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF,CAAC;AACH;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKA,uBAA2C;AAC3C,oBAAwC;AAEjC,MAAM,oBAAoB,OAC/B,UACA,QACA,UACA,OACA,oBACkB;AAClB,QAAM,QAAQ,IAAI;AAAA,QAChB,uCAAwB,UAAU,QAAQ,UAAU,OAAO,eAAe;AAAA,QAC1E;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF,CAAC;AACH;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,11 @@ import type { Input } from './types.js';
2
2
  import * as Git from '@skuba-lib/api/git';
3
3
  export declare const AUTOFIX_IGNORE_FILES_BASE: Git.ChangedFile[];
4
4
  export declare const AUTOFIX_IGNORE_FILES_NPMRC: Git.ChangedFile[];
5
+ export declare const shouldCommit: ({ currentBranch, dir, }: {
6
+ currentBranch?: string;
7
+ dir: string;
8
+ }) => Promise<boolean>;
9
+ export declare const getIgnores: (dir: string) => Promise<Git.ChangedFile[]>;
5
10
  interface AutofixParameters {
6
11
  debug: Input['debug'];
7
12
  eslint: boolean;
@@ -1,16 +1,53 @@
1
- import { inspect } from "util";
2
- import { simpleGit } from "simple-git";
3
- import { isCiEnv } from "../../utils/env.js";
4
- import { createLogger, log } from "../../utils/logging.js";
5
- import { hasNpmrcSecret } from "../../utils/npmrc.js";
6
- import { throwOnTimeout } from "../../utils/wait.js";
7
- import { runESLint } from "../adapter/eslint.js";
8
- import { runPrettier } from "../adapter/prettier.js";
9
- import { createDestinationFileReader } from "../configure/analysis/project.js";
10
- import { internalLint } from "./internal.js";
11
- import * as Buildkite from "@skuba-lib/api/buildkite";
12
- import * as Git from "@skuba-lib/api/git";
13
- import * as GitHub from "@skuba-lib/api/github";
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var autofix_exports = {};
30
+ __export(autofix_exports, {
31
+ AUTOFIX_IGNORE_FILES_BASE: () => AUTOFIX_IGNORE_FILES_BASE,
32
+ AUTOFIX_IGNORE_FILES_NPMRC: () => AUTOFIX_IGNORE_FILES_NPMRC,
33
+ autofix: () => autofix,
34
+ getIgnores: () => getIgnores,
35
+ shouldCommit: () => shouldCommit
36
+ });
37
+ module.exports = __toCommonJS(autofix_exports);
38
+ var import_util = require("util");
39
+ var import_simple_git = require("simple-git");
40
+ var import_env = require("../../utils/env.js");
41
+ var import_logging = require("../../utils/logging.js");
42
+ var import_npmrc = require("../../utils/npmrc.js");
43
+ var import_wait = require("../../utils/wait.js");
44
+ var import_eslint = require("../adapter/eslint.js");
45
+ var import_prettier = require("../adapter/prettier.js");
46
+ var import_project = require("../configure/analysis/project.js");
47
+ var import_internal = require("./internal.js");
48
+ var Buildkite = __toESM(require("@skuba-lib/api/buildkite"));
49
+ var Git = __toESM(require("@skuba-lib/api/git"));
50
+ var GitHub = __toESM(require("@skuba-lib/api/github"));
14
51
  const RENOVATE_DEFAULT_PREFIX = "renovate";
15
52
  const AUTOFIX_COMMIT_MESSAGE = "Run `skuba format`";
16
53
  const AUTOFIX_IGNORE_FILES_BASE = [
@@ -29,11 +66,11 @@ const AUTOFIX_IGNORE_FILES_NPMRC = [
29
66
  state: "modified"
30
67
  }
31
68
  ];
32
- const shouldPush = async ({
69
+ const shouldCommit = async ({
33
70
  currentBranch,
34
71
  dir
35
72
  }) => {
36
- if (!isCiEnv()) {
73
+ if (!(0, import_env.isCiEnv)()) {
37
74
  return false;
38
75
  }
39
76
  const isDefaultBuildkiteBranch = currentBranch && [process.env.BUILDKITE_PIPELINE_DEFAULT_BRANCH, "master", "main"].includes(
@@ -48,7 +85,7 @@ const shouldPush = async ({
48
85
  await GitHub.getPullRequestNumber();
49
86
  } catch {
50
87
  const warning = "An autofix is available, but it was not pushed because an open pull request for this Renovate branch could not be found. If a pull request has since been created, retry the lint step to push the fix.";
51
- log.warn(warning);
88
+ import_logging.log.warn(warning);
52
89
  try {
53
90
  await Buildkite.annotate(Buildkite.md.terminal(warning));
54
91
  } catch {
@@ -67,8 +104,8 @@ const shouldPush = async ({
67
104
  return true;
68
105
  };
69
106
  const getIgnores = async (dir) => {
70
- const contents = await createDestinationFileReader(dir)(".npmrc");
71
- if (hasNpmrcSecret(contents ?? "")) {
107
+ const contents = await (0, import_project.createDestinationFileReader)(dir)(".npmrc");
108
+ if ((0, import_npmrc.hasNpmrcSecret)(contents ?? "")) {
72
109
  return [...AUTOFIX_IGNORE_FILES_BASE, ...AUTOFIX_IGNORE_FILES_NPMRC];
73
110
  }
74
111
  return AUTOFIX_IGNORE_FILES_BASE;
@@ -83,12 +120,12 @@ const autofix = async (params) => {
83
120
  currentBranch = await Git.currentBranch({ dir });
84
121
  } catch {
85
122
  }
86
- if (!await shouldPush({ currentBranch, dir })) {
123
+ if (!await shouldCommit({ currentBranch, dir })) {
87
124
  return;
88
125
  }
89
126
  try {
90
- log.newline();
91
- log.warn(
127
+ import_logging.log.newline();
128
+ import_logging.log.warn(
92
129
  `Attempting to autofix issues (${[
93
130
  params.internal ? "skuba" : void 0,
94
131
  params.internal || params.eslint ? "ESLint" : void 0,
@@ -96,14 +133,14 @@ const autofix = async (params) => {
96
133
  // Prettier is always run
97
134
  ].filter((s) => s !== void 0).join(", ")})...`
98
135
  );
99
- const logger = createLogger({ debug: params.debug });
136
+ const logger = (0, import_logging.createLogger)({ debug: params.debug });
100
137
  if (params.internal) {
101
- await internalLint("format");
138
+ await (0, import_internal.internalLint)("format");
102
139
  }
103
140
  if (params.internal || params.eslint) {
104
- await runESLint("format", logger, params.eslintConfigFile);
141
+ await (0, import_eslint.runESLint)("format", logger, params.eslintConfigFile);
105
142
  }
106
- await runPrettier("format", logger);
143
+ await (0, import_prettier.runPrettier)("format", logger);
107
144
  if (process.env.GITHUB_ACTIONS) {
108
145
  const ref2 = await Git.commitAllChanges({
109
146
  dir,
@@ -111,20 +148,20 @@ const autofix = async (params) => {
111
148
  ignore: await getIgnores(dir)
112
149
  });
113
150
  if (!ref2) {
114
- return log.warn("No autofixes detected.");
151
+ return import_logging.log.warn("No autofixes detected.");
115
152
  }
116
- await throwOnTimeout(simpleGit().push(), { s: 30 });
117
- log.warn(`Pushed fix commit ${ref2}.`);
153
+ await (0, import_wait.throwOnTimeout)((0, import_simple_git.simpleGit)().push(), { s: 30 });
154
+ import_logging.log.warn(`Pushed fix commit ${ref2}.`);
118
155
  return;
119
156
  }
120
157
  if (!currentBranch) {
121
- log.warn("Could not determine the current branch.");
122
- log.warn(
158
+ import_logging.log.warn("Could not determine the current branch.");
159
+ import_logging.log.warn(
123
160
  "Please propagate BUILDKITE_BRANCH, GITHUB_HEAD_REF, GITHUB_REF_NAME, or the .git directory to your container."
124
161
  );
125
162
  return;
126
163
  }
127
- const ref = await throwOnTimeout(
164
+ const ref = await (0, import_wait.throwOnTimeout)(
128
165
  GitHub.uploadAllFileChanges({
129
166
  branch: currentBranch,
130
167
  dir,
@@ -134,22 +171,25 @@ const autofix = async (params) => {
134
171
  { s: 30 }
135
172
  );
136
173
  if (!ref) {
137
- return log.warn("No autofixes detected.");
174
+ return import_logging.log.warn("No autofixes detected.");
138
175
  }
139
- log.warn(`Pushed fix commit ${ref}.`);
176
+ import_logging.log.warn(`Pushed fix commit ${ref}.`);
140
177
  } catch (err) {
141
- log.warn(log.bold("Failed to push fix commit."));
142
- log.warn(
143
- log.bold(
178
+ import_logging.log.warn(import_logging.log.bold("Failed to push fix commit."));
179
+ import_logging.log.warn(
180
+ import_logging.log.bold(
144
181
  "Does your CI environment have write access to your Git repository?"
145
182
  )
146
183
  );
147
- log.subtle(inspect(err));
184
+ import_logging.log.subtle((0, import_util.inspect)(err));
148
185
  }
149
186
  };
150
- export {
187
+ // Annotate the CommonJS export names for ESM import in node:
188
+ 0 && (module.exports = {
151
189
  AUTOFIX_IGNORE_FILES_BASE,
152
190
  AUTOFIX_IGNORE_FILES_NPMRC,
153
- autofix
154
- };
191
+ autofix,
192
+ getIgnores,
193
+ shouldCommit
194
+ });
155
195
  //# sourceMappingURL=autofix.js.map