projen 0.70.2 → 0.70.4

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 (321) hide show
  1. package/.jsii +108 -90
  2. package/docs/api/API.md +2 -0
  3. package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +2 -0
  4. package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +129 -0
  5. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +53 -0
  6. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +49 -0
  7. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +81 -0
  8. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +89 -0
  9. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +7 -0
  10. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +7 -0
  11. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +7 -0
  12. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +168 -0
  13. package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +5 -0
  14. package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +122 -0
  15. package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +33 -0
  16. package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +14 -0
  17. package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +46 -0
  18. package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +20 -0
  19. package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +68 -0
  20. package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +171 -0
  21. package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +180 -0
  22. package/lib/.types-compat/ts3.9/lib/build/index.d.ts +1 -0
  23. package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
  24. package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +45 -0
  25. package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +38 -0
  26. package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +6 -0
  27. package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +5 -0
  28. package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +53 -0
  29. package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +4 -0
  30. package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +20 -0
  31. package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +153 -0
  32. package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +33 -0
  33. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +39 -0
  34. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +45 -0
  35. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +71 -0
  36. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +4 -0
  37. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +4 -0
  38. package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +144 -0
  39. package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +7 -0
  40. package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +13 -0
  41. package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +26 -0
  42. package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +1 -0
  43. package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +132 -0
  44. package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +5 -0
  45. package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +3 -0
  46. package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +260 -0
  47. package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +2 -0
  48. package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +9 -0
  49. package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +1 -0
  50. package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +1 -0
  51. package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +19 -0
  52. package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +7 -0
  53. package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +19 -0
  54. package/lib/.types-compat/ts3.9/lib/clobber.d.ts +5 -0
  55. package/lib/.types-compat/ts3.9/lib/common.d.ts +5 -0
  56. package/lib/.types-compat/ts3.9/lib/component.d.ts +20 -0
  57. package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +160 -0
  58. package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +80 -0
  59. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +103 -0
  60. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +44 -0
  61. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +2 -0
  62. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +155 -0
  63. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +64 -0
  64. package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +99 -0
  65. package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +5 -0
  66. package/lib/.types-compat/ts3.9/lib/file.d.ts +119 -0
  67. package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +26 -0
  68. package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +28 -0
  69. package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +44 -0
  70. package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +41 -0
  71. package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +20 -0
  72. package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +247 -0
  73. package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +58 -0
  74. package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +177 -0
  75. package/lib/.types-compat/ts3.9/lib/github/github.d.ts +110 -0
  76. package/lib/.types-compat/ts3.9/lib/github/index.d.ts +15 -0
  77. package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +81 -0
  78. package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +19 -0
  79. package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +48 -0
  80. package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +8 -0
  81. package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +85 -0
  82. package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +119 -0
  83. package/lib/.types-compat/ts3.9/lib/github/util.d.ts +1 -0
  84. package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +78 -0
  85. package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +1031 -0
  86. package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +108 -0
  87. package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +536 -0
  88. package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +170 -0
  89. package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +19 -0
  90. package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +4 -0
  91. package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +11 -0
  92. package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +301 -0
  93. package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +59 -0
  94. package/lib/.types-compat/ts3.9/lib/index.d.ts +51 -0
  95. package/lib/.types-compat/ts3.9/lib/ini.d.ts +15 -0
  96. package/lib/.types-compat/ts3.9/lib/inventory.d.ts +46 -0
  97. package/lib/.types-compat/ts3.9/lib/java/index.d.ts +7 -0
  98. package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +141 -0
  99. package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +29 -0
  100. package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +26 -0
  101. package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +34 -0
  102. package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +14 -0
  103. package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +214 -0
  104. package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +59 -0
  105. package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +174 -0
  106. package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +175 -0
  107. package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +10 -0
  108. package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +599 -0
  109. package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +605 -0
  110. package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +464 -0
  111. package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +40 -0
  112. package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +358 -0
  113. package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +18 -0
  114. package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +88 -0
  115. package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +403 -0
  116. package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +188 -0
  117. package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +21 -0
  118. package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +75 -0
  119. package/lib/.types-compat/ts3.9/lib/json.d.ts +27 -0
  120. package/lib/.types-compat/ts3.9/lib/license.d.ts +31 -0
  121. package/lib/.types-compat/ts3.9/lib/logger.d.ts +73 -0
  122. package/lib/.types-compat/ts3.9/lib/logging.d.ts +8 -0
  123. package/lib/.types-compat/ts3.9/lib/makefile.d.ts +77 -0
  124. package/lib/.types-compat/ts3.9/lib/object-file.d.ts +155 -0
  125. package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +18 -0
  126. package/lib/.types-compat/ts3.9/lib/project-build.d.ts +41 -0
  127. package/lib/.types-compat/ts3.9/lib/project.d.ts +374 -0
  128. package/lib/.types-compat/ts3.9/lib/projects.d.ts +63 -0
  129. package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +27 -0
  130. package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +18 -0
  131. package/lib/.types-compat/ts3.9/lib/python/index.d.ts +14 -0
  132. package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +32 -0
  133. package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +177 -0
  134. package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +32 -0
  135. package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +21 -0
  136. package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +24 -0
  137. package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +30 -0
  138. package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +6 -0
  139. package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +62 -0
  140. package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +190 -0
  141. package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +17 -0
  142. package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +29 -0
  143. package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +70 -0
  144. package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +15 -0
  145. package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +28 -0
  146. package/lib/.types-compat/ts3.9/lib/readme.d.ts +28 -0
  147. package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +72 -0
  148. package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +1 -0
  149. package/lib/.types-compat/ts3.9/lib/release/index.d.ts +3 -0
  150. package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +533 -0
  151. package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +97 -0
  152. package/lib/.types-compat/ts3.9/lib/release/release.d.ts +338 -0
  153. package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +1 -0
  154. package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +31 -0
  155. package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +1 -0
  156. package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +36 -0
  157. package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +1 -0
  158. package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +99 -0
  159. package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +1 -0
  160. package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +88 -0
  161. package/lib/.types-compat/ts3.9/lib/semver.d.ts +34 -0
  162. package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +156 -0
  163. package/lib/.types-compat/ts3.9/lib/source-code.d.ts +46 -0
  164. package/lib/.types-compat/ts3.9/lib/task-model.d.ts +130 -0
  165. package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +32 -0
  166. package/lib/.types-compat/ts3.9/lib/task.d.ts +129 -0
  167. package/lib/.types-compat/ts3.9/lib/tasks.d.ts +51 -0
  168. package/lib/.types-compat/ts3.9/lib/testing.d.ts +18 -0
  169. package/lib/.types-compat/ts3.9/lib/textfile.d.ts +33 -0
  170. package/lib/.types-compat/ts3.9/lib/toml.d.ts +15 -0
  171. package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +4 -0
  172. package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +43 -0
  173. package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +27 -0
  174. package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +7 -0
  175. package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +163 -0
  176. package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +43 -0
  177. package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +42 -0
  178. package/lib/.types-compat/ts3.9/lib/util.d.ts +131 -0
  179. package/lib/.types-compat/ts3.9/lib/version.d.ts +45 -0
  180. package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +86 -0
  181. package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +36 -0
  182. package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +5 -0
  183. package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +90 -0
  184. package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +24 -0
  185. package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +14 -0
  186. package/lib/.types-compat/ts3.9/lib/web/index.d.ts +4 -0
  187. package/lib/.types-compat/ts3.9/lib/web/next.d.ts +100 -0
  188. package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +28 -0
  189. package/lib/.types-compat/ts3.9/lib/web/react.d.ts +105 -0
  190. package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +21 -0
  191. package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +18 -0
  192. package/lib/.types-compat/ts3.9/lib/yaml.d.ts +25 -0
  193. package/lib/awscdk/auto-discover.js +5 -5
  194. package/lib/awscdk/awscdk-app-java.js +1 -1
  195. package/lib/awscdk/awscdk-app-py.js +1 -1
  196. package/lib/awscdk/awscdk-app-ts.js +1 -1
  197. package/lib/awscdk/awscdk-construct.js +2 -2
  198. package/lib/awscdk/awscdk-deps-java.js +1 -1
  199. package/lib/awscdk/awscdk-deps-js.js +1 -1
  200. package/lib/awscdk/awscdk-deps-py.js +1 -1
  201. package/lib/awscdk/awscdk-deps.js +1 -1
  202. package/lib/awscdk/cdk-config.js +1 -1
  203. package/lib/awscdk/cdk-tasks.js +1 -1
  204. package/lib/awscdk/integration-test.js +1 -1
  205. package/lib/awscdk/lambda-extension.js +1 -1
  206. package/lib/awscdk/lambda-function.js +2 -2
  207. package/lib/build/build-workflow.js +1 -1
  208. package/lib/cdk/auto-discover-base.js +2 -2
  209. package/lib/cdk/construct-lib.js +1 -1
  210. package/lib/cdk/integration-test-base.js +1 -1
  211. package/lib/cdk/jsii-docgen.js +1 -1
  212. package/lib/cdk/jsii-project.js +8 -5
  213. package/lib/cdk8s/auto-discover.js +2 -2
  214. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  215. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  216. package/lib/cdk8s/cdk8s-construct.js +1 -1
  217. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  218. package/lib/cdk8s/cdk8s-deps.js +1 -1
  219. package/lib/cdk8s/integration-test.js +1 -1
  220. package/lib/cdktf/cdktf-construct.js +1 -1
  221. package/lib/circleci/circleci.js +1 -1
  222. package/lib/cli/index.js +2 -18
  223. package/lib/component.js +1 -1
  224. package/lib/dependencies.js +1 -1
  225. package/lib/dev-env.js +1 -1
  226. package/lib/docker-compose/docker-compose-service.js +1 -1
  227. package/lib/docker-compose/docker-compose.js +1 -1
  228. package/lib/file.js +1 -1
  229. package/lib/gitattributes.js +1 -1
  230. package/lib/github/actions-provider.js +1 -1
  231. package/lib/github/auto-approve.js +1 -1
  232. package/lib/github/auto-merge.js +1 -1
  233. package/lib/github/dependabot.js +1 -1
  234. package/lib/github/github-credentials.js +1 -1
  235. package/lib/github/github-project.js +1 -1
  236. package/lib/github/github.js +1 -1
  237. package/lib/github/mergify.js +1 -1
  238. package/lib/github/pr-template.js +1 -1
  239. package/lib/github/pull-request-lint.js +1 -1
  240. package/lib/github/stale.js +1 -1
  241. package/lib/github/task-workflow.js +1 -1
  242. package/lib/github/workflows.js +1 -1
  243. package/lib/gitlab/configuration.js +1 -1
  244. package/lib/gitlab/gitlab-configuration.js +1 -1
  245. package/lib/gitlab/nested-configuration.js +1 -1
  246. package/lib/gitpod.js +1 -1
  247. package/lib/ignore-file.js +1 -1
  248. package/lib/ini.js +1 -1
  249. package/lib/java/java-project.js +1 -1
  250. package/lib/java/junit.js +1 -1
  251. package/lib/java/maven-compile.js +1 -1
  252. package/lib/java/maven-packaging.js +1 -1
  253. package/lib/java/maven-sample.js +1 -1
  254. package/lib/java/pom.js +1 -1
  255. package/lib/java/projenrc.js +1 -1
  256. package/lib/javascript/bundler.js +1 -1
  257. package/lib/javascript/eslint.js +1 -1
  258. package/lib/javascript/jest.js +4 -4
  259. package/lib/javascript/node-package.js +1 -1
  260. package/lib/javascript/node-project.js +1 -1
  261. package/lib/javascript/npm-config.js +1 -1
  262. package/lib/javascript/prettier.js +1 -1
  263. package/lib/javascript/projenrc.js +1 -1
  264. package/lib/javascript/typescript-config.js +1 -1
  265. package/lib/javascript/upgrade-dependencies.js +2 -2
  266. package/lib/json-patch.js +1 -1
  267. package/lib/json.js +1 -1
  268. package/lib/license.js +1 -1
  269. package/lib/logger.js +1 -1
  270. package/lib/makefile.js +1 -1
  271. package/lib/object-file.js +1 -1
  272. package/lib/project-build.js +1 -1
  273. package/lib/project.js +1 -1
  274. package/lib/projects.js +1 -1
  275. package/lib/projenrc-json.js +2 -2
  276. package/lib/projenrc.js +1 -1
  277. package/lib/python/pip.js +1 -1
  278. package/lib/python/poetry.js +2 -2
  279. package/lib/python/projenrc.js +1 -1
  280. package/lib/python/pytest-sample.js +1 -1
  281. package/lib/python/pytest.js +1 -1
  282. package/lib/python/python-project.js +1 -1
  283. package/lib/python/python-sample.js +1 -1
  284. package/lib/python/requirements-file.js +1 -1
  285. package/lib/python/setuppy.js +1 -1
  286. package/lib/python/setuptools.js +1 -1
  287. package/lib/python/venv.js +1 -1
  288. package/lib/readme.js +1 -1
  289. package/lib/release/publisher.d.ts +7 -0
  290. package/lib/release/publisher.js +9 -2
  291. package/lib/release/release-trigger.js +1 -1
  292. package/lib/release/release.js +3 -2
  293. package/lib/renovatebot.js +1 -1
  294. package/lib/sample-file.js +2 -2
  295. package/lib/semver.js +1 -1
  296. package/lib/source-code.js +1 -1
  297. package/lib/task-runtime.js +1 -1
  298. package/lib/task.js +1 -1
  299. package/lib/tasks.js +1 -1
  300. package/lib/testing.js +1 -1
  301. package/lib/textfile.js +1 -1
  302. package/lib/toml.js +1 -1
  303. package/lib/typescript/projenrc-ts.js +1 -1
  304. package/lib/typescript/projenrc.js +1 -1
  305. package/lib/typescript/typescript-typedoc.js +1 -1
  306. package/lib/typescript/typescript.js +3 -3
  307. package/lib/util.d.ts +19 -0
  308. package/lib/util.js +33 -2
  309. package/lib/version.js +1 -1
  310. package/lib/vscode/devcontainer.js +1 -1
  311. package/lib/vscode/extensions.js +1 -1
  312. package/lib/vscode/launch-config.js +1 -1
  313. package/lib/vscode/settings.js +1 -1
  314. package/lib/vscode/vscode.js +1 -1
  315. package/lib/web/next.js +3 -3
  316. package/lib/web/postcss.js +1 -1
  317. package/lib/web/react.js +4 -4
  318. package/lib/web/tailwind.js +1 -1
  319. package/lib/xmlfile.js +1 -1
  320. package/lib/yaml.js +1 -1
  321. package/package.json +1 -1
@@ -0,0 +1,99 @@
1
+ import { DockerComposeNetworkConfig, IDockerComposeNetworkBinding } from "./docker-compose-network";
2
+ import { DockerComposePortMappingOptions, DockerComposeServicePort } from "./docker-compose-port";
3
+ import { DockerComposeService, DockerComposeServiceDescription, IDockerComposeServiceName } from "./docker-compose-service";
4
+ import { DockerComposeVolumeConfig, IDockerComposeVolumeBinding } from "./docker-compose-volume";
5
+ import { Component } from "../component";
6
+ import { Project } from "../project";
7
+ /**
8
+ * Props for DockerCompose.
9
+ */
10
+ export interface DockerComposeProps {
11
+ /**
12
+ * A name to add to the docker-compose.yml filename.
13
+ * @example 'myname' yields 'docker-compose.myname.yml'
14
+ * @default - no name is added
15
+ */
16
+ readonly nameSuffix?: string;
17
+ /**
18
+ * Docker Compose schema version do be used
19
+ * @default 3.3
20
+ */
21
+ readonly schemaVersion?: string;
22
+ /**
23
+ * Service descriptions.
24
+ */
25
+ readonly services?: Record<string, DockerComposeServiceDescription>;
26
+ }
27
+ /**
28
+ * Create a docker-compose YAML file.
29
+ */
30
+ export declare class DockerCompose extends Component {
31
+ /**
32
+ * Depends on a service name.
33
+ */
34
+ static serviceName(serviceName: string): IDockerComposeServiceName;
35
+ /**
36
+ * Create a port mapping.
37
+ * @param publishedPort Published port number
38
+ * @param targetPort Container's port number
39
+ * @param options Port mapping options
40
+ */
41
+ static portMapping(publishedPort: number, targetPort: number, options?: DockerComposePortMappingOptions): DockerComposeServicePort;
42
+ /**
43
+ * Create a bind volume that binds a host path to the target path in the container.
44
+ * @param sourcePath Host path name
45
+ * @param targetPath Target path name
46
+ */
47
+ static bindVolume(sourcePath: string, targetPath: string): IDockerComposeVolumeBinding;
48
+ /**
49
+ * Create a named volume and mount it to the target path. If you use this
50
+ * named volume in several services, the volume will be shared. In this
51
+ * case, the volume configuration of the first-provided options are used.
52
+ *
53
+ * @param volumeName Name of the volume
54
+ * @param targetPath Target path
55
+ * @param options volume configuration (default: docker compose defaults)
56
+ */
57
+ static namedVolume(volumeName: string, targetPath: string, options?: DockerComposeVolumeConfig): IDockerComposeVolumeBinding;
58
+ /**
59
+ * Create a named network and mount it to the target path. If you use this
60
+ * named network in several services, the network will be shared. In this
61
+ * case, the network configuration of the first-provided options are used.
62
+ *
63
+ * @param networkName Name of the network
64
+ * @param options network configuration
65
+ */
66
+ static network(networkName: string, options?: DockerComposeNetworkConfig): IDockerComposeNetworkBinding;
67
+ private readonly services;
68
+ private readonly version;
69
+ constructor(project: Project, props?: DockerComposeProps);
70
+ /**
71
+ * Add a service to the docker-compose file.
72
+ * @param serviceName name of the service
73
+ * @param description a service description
74
+ */
75
+ addService(serviceName: string, description: DockerComposeServiceDescription): DockerComposeService;
76
+ /**
77
+ * @internal
78
+ */
79
+ _synthesizeDockerCompose(): object;
80
+ }
81
+ /**
82
+ * Build arguments for creating a docker image.
83
+ */
84
+ export interface DockerComposeBuild {
85
+ /**
86
+ * Docker build context directory.
87
+ */
88
+ readonly context: string;
89
+ /**
90
+ * A dockerfile to build from.
91
+ * @default "Dockerfile"
92
+ */
93
+ readonly dockerfile?: string;
94
+ /**
95
+ * Build args.
96
+ * @default - none are provided
97
+ */
98
+ readonly args?: Record<string, string>;
99
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./docker-compose-port";
2
+ export * from "./docker-compose-service";
3
+ export * from "./docker-compose-volume";
4
+ export * from "./docker-compose-network";
5
+ export * from "./docker-compose";
@@ -0,0 +1,119 @@
1
+ import { Component } from "./component";
2
+ import { Project } from "./project";
3
+ export interface FileBaseOptions {
4
+ /**
5
+ * Indicates whether this file should be committed to git or ignored. By
6
+ * default, all generated files are committed and anti-tamper is used to
7
+ * protect against manual modifications.
8
+ *
9
+ * @default true
10
+ */
11
+ readonly committed?: boolean;
12
+ /**
13
+ * Update the project's .gitignore file
14
+ * @default true
15
+ */
16
+ readonly editGitignore?: boolean;
17
+ /**
18
+ * Whether the generated file should be readonly.
19
+ *
20
+ * @default true
21
+ */
22
+ readonly readonly?: boolean;
23
+ /**
24
+ * Whether the generated file should be marked as executable.
25
+ *
26
+ * @default false
27
+ */
28
+ readonly executable?: boolean;
29
+ /**
30
+ * Adds the projen marker to the file.
31
+ *
32
+ * @default - marker will be included as long as the project is not ejected
33
+ */
34
+ readonly marker?: boolean;
35
+ }
36
+ export declare abstract class FileBase extends Component {
37
+ /**
38
+ * The file path, relative to the project root.
39
+ */
40
+ readonly path: string;
41
+ /**
42
+ * Indicates if the file should be read-only or read-write.
43
+ */
44
+ readonly: boolean;
45
+ /**
46
+ * Indicates if the file should be marked as executable
47
+ */
48
+ executable: boolean;
49
+ /**
50
+ * The projen marker, used to identify files as projen-generated.
51
+ *
52
+ * Value is undefined if the project is being ejected.
53
+ */
54
+ readonly marker: string | undefined;
55
+ /**
56
+ * The absolute path of this file.
57
+ */
58
+ readonly absolutePath: string;
59
+ private _changed?;
60
+ constructor(project: Project, filePath: string, options?: FileBaseOptions);
61
+ /**
62
+ * Implemented by derived classes and returns the contents of the file to
63
+ * emit.
64
+ * @param resolver Call `resolver.resolve(obj)` on any objects in order to
65
+ * resolve token functions.
66
+ * @returns the content to synthesize or undefined to skip the file
67
+ */
68
+ protected abstract synthesizeContent(resolver: IResolver): string | undefined;
69
+ /**
70
+ * Writes the file to the project's output directory
71
+ */
72
+ synthesize(): void;
73
+ /**
74
+ * For debugging, check whether a file was incorrectly generated with
75
+ * or without the projen marker. The projen marker does not *need* to be
76
+ * included on projen-generated files, but it's recommended since it signals
77
+ * that it probably should not be edited directly.
78
+ */
79
+ private checkForProjenMarker;
80
+ /**
81
+ * Indicates if the file has been changed during synthesis. This property is
82
+ * only available in `postSynthesize()` hooks. If this is `undefined`, the
83
+ * file has not been synthesized yet.
84
+ */
85
+ get changed(): boolean | undefined;
86
+ }
87
+ /**
88
+ * API for resolving tokens when synthesizing file content.
89
+ */
90
+ export interface IResolver {
91
+ /**
92
+ * Given a value (object/string/array/whatever, looks up any functions inside
93
+ * the object and returns an object where all functions are called.
94
+ * @param value The value to resolve
95
+ * @package options Resolve options
96
+ */
97
+ resolve(value: any, options?: ResolveOptions): any;
98
+ }
99
+ /**
100
+ * Resolve options.
101
+ */
102
+ export interface ResolveOptions {
103
+ /**
104
+ * Omits empty arrays and objects.
105
+ * @default false
106
+ */
107
+ readonly omitEmpty?: boolean;
108
+ /**
109
+ * Context arguments.
110
+ * @default []
111
+ */
112
+ readonly args?: any[];
113
+ }
114
+ export interface IResolvable {
115
+ /**
116
+ * Resolves and returns content.
117
+ */
118
+ toJSON(): any;
119
+ }
@@ -0,0 +1,26 @@
1
+ import { IResolver, FileBase } from "./file";
2
+ import { Project } from "./project";
3
+ /**
4
+ * Assign attributes to file names in a git repository.
5
+ *
6
+ * @see https://git-scm.com/docs/gitattributes
7
+ */
8
+ export declare class GitAttributesFile extends FileBase {
9
+ private readonly attributes;
10
+ constructor(project: Project);
11
+ /**
12
+ * Maps a set of attributes to a set of files.
13
+ * @param glob Glob pattern to match files in the repo
14
+ * @param attributes Attributes to assign to these files.
15
+ */
16
+ addAttributes(glob: string, ...attributes: string[]): void;
17
+ /**
18
+ * Add attributes necessary to mark these files as stored in LFS
19
+ */
20
+ addLfsPattern(glob: string): void;
21
+ /**
22
+ * Whether the current gitattributes file has any LFS patterns
23
+ */
24
+ get hasLfsPatterns(): boolean;
25
+ protected synthesizeContent(_: IResolver): string | undefined;
26
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Manage the versions used for GitHub Actions used in steps
3
+ */
4
+ export declare class GitHubActionsProvider {
5
+ private actions;
6
+ /**
7
+ * Define an override for a given action.
8
+ *
9
+ * Specify the action name without a version to override all usages of the action.
10
+ * You can also override a specific action version, by providing the version string.
11
+ * Specific overrides take precedence over overrides without a version.
12
+ *
13
+ * If an override for the same action name is set multiple times, the last override is used.
14
+ *
15
+ * @example
16
+ * // Force any use of `actions/checkout` to use a pin a specific commit
17
+ * project.github.actions.set("actions/checkout", "actions/checkout@aaaaaa");
18
+ *
19
+ * // But pin usage of `v3` to a different commit
20
+ * project.github.actions.set("actions/checkout@v3", "actions/checkout@ffffff");
21
+ */
22
+ set(action: string, override: string): void;
23
+ /**
24
+ * Resolve an action name to the version that should be used,
25
+ * taking into account any overrides.
26
+ */
27
+ get(action: string): string;
28
+ }
@@ -0,0 +1,44 @@
1
+ import { GitHub } from "./github";
2
+ import { Component } from "../component";
3
+ /**
4
+ * Options for 'AutoApprove'
5
+ */
6
+ export interface AutoApproveOptions {
7
+ /**
8
+ * Only pull requests authored by these Github usernames will be auto-approved.
9
+ * @default ['github-bot']
10
+ */
11
+ readonly allowedUsernames?: string[];
12
+ /**
13
+ * Only pull requests with this label will be auto-approved.
14
+ * @default 'auto-approve'
15
+ */
16
+ readonly label?: string;
17
+ /**
18
+ * A GitHub secret name which contains a GitHub Access Token
19
+ * with write permissions for the `pull_request` scope.
20
+ *
21
+ * This token is used to approve pull requests.
22
+ *
23
+ * Github forbids an identity to approve its own pull request.
24
+ * If your project produces automated pull requests using the Github default token -
25
+ * {@link https://docs.github.com/en/actions/reference/authentication-in-a-workflow `GITHUB_TOKEN` }
26
+ * - that you would like auto approved, such as when using the `depsUpgrade` property in
27
+ * `NodeProjectOptions`, then you must use a different token here.
28
+ *
29
+ * @default "GITHUB_TOKEN"
30
+ */
31
+ readonly secret?: string;
32
+ /**
33
+ * Github Runner selection labels
34
+ * @default ["ubuntu-latest"]
35
+ */
36
+ readonly runsOn?: string[];
37
+ }
38
+ /**
39
+ * Auto approve pull requests that meet a criteria
40
+ */
41
+ export declare class AutoApprove extends Component {
42
+ readonly label: string;
43
+ constructor(github: GitHub, options?: AutoApproveOptions);
44
+ }
@@ -0,0 +1,41 @@
1
+ import { GitHub } from "./github";
2
+ import { Component } from "../component";
3
+ export interface AutoMergeOptions {
4
+ /**
5
+ * Number of approved code reviews.
6
+ * @default 1
7
+ */
8
+ readonly approvedReviews?: number;
9
+ /**
10
+ * List of labels that will prevent auto-merging.
11
+ * @default ['do-not-merge']
12
+ */
13
+ readonly blockingLabels?: string[];
14
+ }
15
+ /**
16
+ * Sets up mergify to merging approved pull requests.
17
+ *
18
+ * If `buildJob` is specified, the specified GitHub workflow job ID is required
19
+ * to succeed in order for the PR to be merged.
20
+ *
21
+ * `approvedReviews` specified the number of code review approvals required for
22
+ * the PR to be merged.
23
+ */
24
+ export declare class AutoMerge extends Component {
25
+ private readonly lazyConditions;
26
+ constructor(github: GitHub, options?: AutoMergeOptions);
27
+ /**
28
+ * Adds conditions to the auto merge rule.
29
+ * @param conditions The conditions to add (mergify syntax)
30
+ */
31
+ addConditions(...conditions: string[]): void;
32
+ /**
33
+ * Adds conditions that will be rendered only during synthesis.
34
+ * @param later The later
35
+ */
36
+ addConditionsLater(later: IAddConditionsLater): void;
37
+ private renderConditions;
38
+ }
39
+ export interface IAddConditionsLater {
40
+ render(): string[];
41
+ }
@@ -0,0 +1,20 @@
1
+ import { GitIdentity } from ".";
2
+ /**
3
+ * Name of the artifact produced by the build job. Its contains the entire
4
+ * working directory.
5
+ */
6
+ export declare const BUILD_ARTIFACT_NAME = "build-artifact";
7
+ /**
8
+ * Represents the github-actions user.
9
+ *
10
+ * Use this when you need to perform a commit as part of your workflow.
11
+ */
12
+ export declare const DEFAULT_GITHUB_ACTIONS_USER: GitIdentity;
13
+ /**
14
+ * Name of the permission back up file to include in the build artifact
15
+ * to work around a GitHub Action bug that does not preserve file mode
16
+ * permissions across upload and download actions.
17
+ *
18
+ * See {@link https://github.com/actions/upload-artifact/issues/38}
19
+ */
20
+ export declare const PERMISSION_BACKUP_FILE = "permissions-backup.acl";
@@ -0,0 +1,247 @@
1
+ import { GitHub } from "./github";
2
+ import { Component } from "../component";
3
+ export interface DependabotOptions {
4
+ /**
5
+ * How often to check for new versions and raise pull requests.
6
+ *
7
+ * @default ScheduleInterval.DAILY
8
+ */
9
+ readonly scheduleInterval?: DependabotScheduleInterval;
10
+ /**
11
+ * The strategy to use when edits manifest and lock files.
12
+ *
13
+ * @default VersioningStrategy.LOCKFILE_ONLY The default is to only update the
14
+ * lock file because package.json is controlled by projen and any outside
15
+ * updates will fail the build.
16
+ */
17
+ readonly versioningStrategy?: VersioningStrategy;
18
+ /**
19
+ * You can use the `ignore` option to customize which dependencies are updated.
20
+ * The ignore option supports the following options.
21
+ * @default []
22
+ */
23
+ readonly ignore?: DependabotIgnore[];
24
+ /**
25
+ * Ignores updates to `projen`.
26
+ *
27
+ * This is required since projen updates may cause changes in committed files
28
+ * and anti-tamper checks will fail.
29
+ *
30
+ * Projen upgrades are covered through the `ProjenUpgrade` class.
31
+ *
32
+ * @default true
33
+ */
34
+ readonly ignoreProjen?: boolean;
35
+ /**
36
+ * List of labels to apply to the created PR's.
37
+ */
38
+ readonly labels?: string[];
39
+ /**
40
+ * Map of package registries to use
41
+ * @default - use public registries
42
+ */
43
+ readonly registries?: {
44
+ [name: string]: DependabotRegistry;
45
+ };
46
+ }
47
+ /**
48
+ * Use to add private registry support for dependabot
49
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#configuration-options-for-private-registries
50
+ */
51
+ export interface DependabotRegistry {
52
+ /**
53
+ * Registry type e.g. 'npm-registry' or 'docker-registry'
54
+ */
55
+ readonly type: DependabotRegistryType;
56
+ /**
57
+ * Url for the registry e.g. 'https://npm.pkg.github.com' or 'registry.hub.docker.com'
58
+ */
59
+ readonly url: string;
60
+ /**
61
+ * The username that Dependabot uses to access the registry
62
+ * @default - do not authenticate
63
+ */
64
+ readonly username?: string;
65
+ /**
66
+ * A reference to a Dependabot secret containing the password for the specified user
67
+ * @default undefined
68
+ */
69
+ readonly password?: string;
70
+ /**
71
+ * A reference to a Dependabot secret containing an access key for this registry
72
+ * @default undefined
73
+ */
74
+ readonly key?: string;
75
+ /**
76
+ * Secret token for dependabot access e.g. '${{ secrets.DEPENDABOT_PACKAGE_TOKEN }}'
77
+ * @default undefined
78
+ */
79
+ readonly token?: string;
80
+ /**
81
+ * For registries with type: python-index, if the boolean value is true, pip
82
+ * esolves dependencies by using the specified URL rather than the base URL of
83
+ * the Python Package Index (by default https://pypi.org/simple)
84
+ * @default undefined
85
+ */
86
+ readonly replacesBase?: boolean;
87
+ /**
88
+ * Used with the hex-organization registry type.
89
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#hex-organization
90
+ * @default undefined
91
+ */
92
+ readonly organization?: string;
93
+ }
94
+ /**
95
+ * Each configuration type requires you to provide particular settings.
96
+ * Some types allow more than one way to connect
97
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#configuration-options-for-private-registries
98
+ */
99
+ export declare enum DependabotRegistryType {
100
+ /**
101
+ * The composer-repository type supports username and password.
102
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#composer-repository
103
+ */
104
+ COMPOSER_REGISTRY = "composer-registry",
105
+ /**
106
+ * The docker-registry type supports username and password.
107
+ * The docker-registry type can also be used to pull from Amazon ECR using static AWS credentials
108
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#docker-registry
109
+ */
110
+ DOCKER_REGISTRY = "docker-registry",
111
+ /**
112
+ * The git type supports username and password
113
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#git
114
+ */
115
+ GIT = "git",
116
+ /**
117
+ * The hex-organization type supports organization and key
118
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#hex-organization
119
+ */
120
+ HEX_ORGANIZATION = "hex-organization",
121
+ /**
122
+ * The maven-repository type supports username and password, or token
123
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#maven-repository
124
+ */
125
+ MAVEN_REPOSITORY = "maven-repository",
126
+ /**
127
+ * The npm-registry type supports username and password, or token
128
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#npm-registry
129
+ */
130
+ NPM_REGISTRY = "npm-registry",
131
+ /**
132
+ * The nuget-feed type supports username and password, or token
133
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#nuget-feed
134
+ */
135
+ NUGET_FEED = "nuget-feed",
136
+ /**
137
+ * The python-index type supports username and password, or token
138
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#python-index
139
+ */
140
+ PYTHON_INDEX = "python-index",
141
+ /**
142
+ * The rubygems-server type supports username and password, or token
143
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#rubygems-server
144
+ */
145
+ RUBYGEMS_SERVER = "rubygems-server",
146
+ /**
147
+ * The terraform-registry type supports a token
148
+ * @see https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#terraform-registry
149
+ */
150
+ TERRAFORM_REGISTRY = "terraform-registry"
151
+ }
152
+ /**
153
+ * You can use the `ignore` option to customize which dependencies are updated.
154
+ * The ignore option supports the following options.
155
+ */
156
+ export interface DependabotIgnore {
157
+ /**
158
+ * Use to ignore updates for dependencies with matching names, optionally
159
+ * using `*` to match zero or more characters.
160
+ *
161
+ * For Java dependencies, the format of the dependency-name attribute is:
162
+ * `groupId:artifactId`, for example: `org.kohsuke:github-api`.
163
+ */
164
+ readonly dependencyName: string;
165
+ /**
166
+ * Use to ignore specific versions or ranges of versions. If you want to
167
+ * define a range, use the standard pattern for the package manager (for
168
+ * example: `^1.0.0` for npm, or `~> 2.0` for Bundler).
169
+ */
170
+ readonly versions?: string[];
171
+ }
172
+ /**
173
+ * How often to check for new versions and raise pull requests for version
174
+ * updates.
175
+ */
176
+ export declare enum DependabotScheduleInterval {
177
+ /**
178
+ * Runs on every weekday, Monday to Friday.
179
+ */
180
+ DAILY = "daily",
181
+ /**
182
+ * Runs once each week. By default, this is on Monday.
183
+ */
184
+ WEEKLY = "weekly",
185
+ /**
186
+ * Runs once each month. This is on the first day of the month.
187
+ */
188
+ MONTHLY = "monthly"
189
+ }
190
+ /**
191
+ * The strategy to use when edits manifest and lock files.
192
+ */
193
+ export declare enum VersioningStrategy {
194
+ /**
195
+ * Only create pull requests to update lockfiles updates. Ignore any new
196
+ * versions that would require package manifest changes.
197
+ */
198
+ LOCKFILE_ONLY = "lockfile-only",
199
+ /**
200
+ * - For apps, the version requirements are increased.
201
+ * - For libraries, the range of versions is widened.
202
+ */
203
+ AUTO = "auto",
204
+ /**
205
+ * Relax the version requirement to include both the new and old version, when
206
+ * possible.
207
+ */
208
+ WIDEN = "widen",
209
+ /**
210
+ * Always increase the version requirement to match the new version.
211
+ */
212
+ INCREASE = "increase",
213
+ /**
214
+ * Increase the version requirement only when required by the new version.
215
+ */
216
+ INCREASE_IF_NECESSARY = "increase-if-necessary"
217
+ }
218
+ /**
219
+ * Defines dependabot configuration for node projects.
220
+ *
221
+ * Since module versions are managed in projen, the versioning strategy will be
222
+ * configured to "lockfile-only" which means that only updates that can be done
223
+ * on the lockfile itself will be proposed.
224
+ */
225
+ export declare class Dependabot extends Component {
226
+ /**
227
+ * The raw dependabot configuration.
228
+ * @see https://docs.github.com/en/github/administering-a-repository/configuration-options-for-dependency-updates
229
+ */
230
+ readonly config: any;
231
+ /**
232
+ * Whether or not projen is also upgraded in this config,
233
+ */
234
+ readonly ignoresProjen: boolean;
235
+ private readonly ignore;
236
+ constructor(github: GitHub, options?: DependabotOptions);
237
+ /**
238
+ * Ignores a dependency from automatic updates.
239
+ *
240
+ * @param dependencyName Use to ignore updates for dependencies with matching
241
+ * names, optionally using `*` to match zero or more characters.
242
+ * @param versions Use to ignore specific versions or ranges of versions. If
243
+ * you want to define a range, use the standard pattern for the package
244
+ * manager (for example: `^1.0.0` for npm, or `~> 2.0` for Bundler).
245
+ */
246
+ addIgnore(dependencyName: string, ...versions: string[]): void;
247
+ }