projen 0.71.13 → 0.71.15
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.
- package/.jsii +3 -3
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +1 -1
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +1 -1
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +3 -3
- package/lib/version.js +1 -1
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/package.json +3 -11
- package/lib/.types-compat/ts3.9/lib/_resolve.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/awscdk/auto-discover.d.ts +0 -129
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-java.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-py.d.ts +0 -49
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-app-ts.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-construct.d.ts +0 -89
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-java.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-js.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps-py.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-deps.d.ts +0 -168
- package/lib/.types-compat/ts3.9/lib/awscdk/awscdk-pytest-sample.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-config.d.ts +0 -122
- package/lib/.types-compat/ts3.9/lib/awscdk/cdk-tasks.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/awscdk/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/awscdk/integration-test.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/awscdk/internal.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-extension.d.ts +0 -68
- package/lib/.types-compat/ts3.9/lib/awscdk/lambda-function.d.ts +0 -171
- package/lib/.types-compat/ts3.9/lib/build/build-workflow.d.ts +0 -180
- package/lib/.types-compat/ts3.9/lib/build/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/builtin-example.task.d.ts +0 -0
- package/lib/.types-compat/ts3.9/lib/cdk/auto-discover-base.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk/construct-lib.d.ts +0 -38
- package/lib/.types-compat/ts3.9/lib/cdk/consts.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/cdk/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/cdk/integration-test-base.d.ts +0 -53
- package/lib/.types-compat/ts3.9/lib/cdk/internal.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-docgen.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/cdk/jsii-project.d.ts +0 -154
- package/lib/.types-compat/ts3.9/lib/cdk8s/auto-discover.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-py.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-app-ts.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-construct.d.ts +0 -71
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-js.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps-py.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/cdk8s/cdk8s-deps.d.ts +0 -144
- package/lib/.types-compat/ts3.9/lib/cdk8s/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cdk8s/integration-test.d.ts +0 -13
- package/lib/.types-compat/ts3.9/lib/cdktf/cdktf-construct.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/cdktf/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/circleci/circleci.d.ts +0 -132
- package/lib/.types-compat/ts3.9/lib/circleci/constant.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/circleci/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/circleci/model.d.ts +0 -260
- package/lib/.types-compat/ts3.9/lib/cleanup.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/cli/cmds/new.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/cli/index.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/macros.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/cli/synth.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/cli/tasks.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/cli/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/clobber.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/common.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/component.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/dependencies.d.ts +0 -160
- package/lib/.types-compat/ts3.9/lib/dev-env.d.ts +0 -80
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-network.d.ts +0 -103
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-port.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-render.d.ts +0 -2
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-service.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose-volume.d.ts +0 -64
- package/lib/.types-compat/ts3.9/lib/docker-compose/docker-compose.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/docker-compose/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/file.d.ts +0 -120
- package/lib/.types-compat/ts3.9/lib/gitattributes.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/github/actions-provider.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/github/auto-approve.d.ts +0 -44
- package/lib/.types-compat/ts3.9/lib/github/auto-merge.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/github/constants.d.ts +0 -20
- package/lib/.types-compat/ts3.9/lib/github/dependabot.d.ts +0 -247
- package/lib/.types-compat/ts3.9/lib/github/github-credentials.d.ts +0 -58
- package/lib/.types-compat/ts3.9/lib/github/github-project.d.ts +0 -177
- package/lib/.types-compat/ts3.9/lib/github/github.d.ts +0 -110
- package/lib/.types-compat/ts3.9/lib/github/index.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/github/mergify.d.ts +0 -81
- package/lib/.types-compat/ts3.9/lib/github/pr-template.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/github/pull-request-lint.d.ts +0 -48
- package/lib/.types-compat/ts3.9/lib/github/stale-util.d.ts +0 -8
- package/lib/.types-compat/ts3.9/lib/github/stale.d.ts +0 -85
- package/lib/.types-compat/ts3.9/lib/github/task-workflow.d.ts +0 -119
- package/lib/.types-compat/ts3.9/lib/github/util.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/github/workflow-actions.d.ts +0 -169
- package/lib/.types-compat/ts3.9/lib/github/workflow-jobs.d.ts +0 -39
- package/lib/.types-compat/ts3.9/lib/github/workflows-model.d.ts +0 -1031
- package/lib/.types-compat/ts3.9/lib/github/workflows.d.ts +0 -108
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration-model.d.ts +0 -536
- package/lib/.types-compat/ts3.9/lib/gitlab/configuration.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/gitlab/gitlab-configuration.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/gitlab/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/gitlab/nested-configuration.d.ts +0 -11
- package/lib/.types-compat/ts3.9/lib/gitpod.d.ts +0 -301
- package/lib/.types-compat/ts3.9/lib/ignore-file.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/index.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/ini.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/inventory.d.ts +0 -94
- package/lib/.types-compat/ts3.9/lib/java/index.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/java/java-project.d.ts +0 -141
- package/lib/.types-compat/ts3.9/lib/java/junit.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/java/maven-compile.d.ts +0 -26
- package/lib/.types-compat/ts3.9/lib/java/maven-packaging.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/java/maven-sample.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/java/pom.d.ts +0 -214
- package/lib/.types-compat/ts3.9/lib/java/projenrc.d.ts +0 -59
- package/lib/.types-compat/ts3.9/lib/javascript/bundler.d.ts +0 -174
- package/lib/.types-compat/ts3.9/lib/javascript/eslint.d.ts +0 -175
- package/lib/.types-compat/ts3.9/lib/javascript/index.d.ts +0 -10
- package/lib/.types-compat/ts3.9/lib/javascript/jest.d.ts +0 -599
- package/lib/.types-compat/ts3.9/lib/javascript/node-package.d.ts +0 -616
- package/lib/.types-compat/ts3.9/lib/javascript/node-project.d.ts +0 -465
- package/lib/.types-compat/ts3.9/lib/javascript/npm-config.d.ts +0 -40
- package/lib/.types-compat/ts3.9/lib/javascript/prettier.d.ts +0 -358
- package/lib/.types-compat/ts3.9/lib/javascript/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/javascript/render-options.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/javascript/typescript-config.d.ts +0 -403
- package/lib/.types-compat/ts3.9/lib/javascript/upgrade-dependencies.d.ts +0 -188
- package/lib/.types-compat/ts3.9/lib/javascript/util.d.ts +0 -19
- package/lib/.types-compat/ts3.9/lib/json-patch.d.ts +0 -75
- package/lib/.types-compat/ts3.9/lib/json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/license.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/logger.d.ts +0 -73
- package/lib/.types-compat/ts3.9/lib/logging.d.ts +0 -9
- package/lib/.types-compat/ts3.9/lib/makefile.d.ts +0 -77
- package/lib/.types-compat/ts3.9/lib/object-file.d.ts +0 -155
- package/lib/.types-compat/ts3.9/lib/option-hints.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/project-build.d.ts +0 -41
- package/lib/.types-compat/ts3.9/lib/project.d.ts +0 -374
- package/lib/.types-compat/ts3.9/lib/projects.d.ts +0 -63
- package/lib/.types-compat/ts3.9/lib/projenrc-json.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/projenrc.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/python/index.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/python/pip.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/poetry.d.ts +0 -183
- package/lib/.types-compat/ts3.9/lib/python/projenrc.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/python/pytest-sample.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/python/pytest.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/python/python-deps.d.ts +0 -30
- package/lib/.types-compat/ts3.9/lib/python/python-env.d.ts +0 -6
- package/lib/.types-compat/ts3.9/lib/python/python-packaging.d.ts +0 -62
- package/lib/.types-compat/ts3.9/lib/python/python-project.d.ts +0 -190
- package/lib/.types-compat/ts3.9/lib/python/python-sample.d.ts +0 -17
- package/lib/.types-compat/ts3.9/lib/python/requirements-file.d.ts +0 -29
- package/lib/.types-compat/ts3.9/lib/python/setuppy.d.ts +0 -70
- package/lib/.types-compat/ts3.9/lib/python/setuptools.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/python/venv.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/readme.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/release/bump-version.d.ts +0 -72
- package/lib/.types-compat/ts3.9/lib/release/bump-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/index.d.ts +0 -3
- package/lib/.types-compat/ts3.9/lib/release/publisher.d.ts +0 -533
- package/lib/.types-compat/ts3.9/lib/release/release-trigger.d.ts +0 -97
- package/lib/.types-compat/ts3.9/lib/release/release.d.ts +0 -338
- package/lib/.types-compat/ts3.9/lib/release/reset-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/tag-version.d.ts +0 -31
- package/lib/.types-compat/ts3.9/lib/release/tag-version.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/release/update-changelog.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/renovatebot.d.ts +0 -99
- package/lib/.types-compat/ts3.9/lib/run-projenrc-json.task.d.ts +0 -1
- package/lib/.types-compat/ts3.9/lib/sample-file.d.ts +0 -88
- package/lib/.types-compat/ts3.9/lib/semver.d.ts +0 -34
- package/lib/.types-compat/ts3.9/lib/smithy/smithy-build.d.ts +0 -156
- package/lib/.types-compat/ts3.9/lib/source-code.d.ts +0 -46
- package/lib/.types-compat/ts3.9/lib/task-model.d.ts +0 -151
- package/lib/.types-compat/ts3.9/lib/task-runtime.d.ts +0 -32
- package/lib/.types-compat/ts3.9/lib/task.d.ts +0 -136
- package/lib/.types-compat/ts3.9/lib/tasks.d.ts +0 -51
- package/lib/.types-compat/ts3.9/lib/testing.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/textfile.d.ts +0 -33
- package/lib/.types-compat/ts3.9/lib/toml.d.ts +0 -15
- package/lib/.types-compat/ts3.9/lib/typescript/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc-ts.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/typescript/projenrc.d.ts +0 -27
- package/lib/.types-compat/ts3.9/lib/typescript/typescript-typedoc.d.ts +0 -7
- package/lib/.types-compat/ts3.9/lib/typescript/typescript.d.ts +0 -170
- package/lib/.types-compat/ts3.9/lib/util/semver.d.ts +0 -43
- package/lib/.types-compat/ts3.9/lib/util/synth.d.ts +0 -42
- package/lib/.types-compat/ts3.9/lib/util.d.ts +0 -131
- package/lib/.types-compat/ts3.9/lib/version.d.ts +0 -45
- package/lib/.types-compat/ts3.9/lib/vscode/devcontainer.d.ts +0 -86
- package/lib/.types-compat/ts3.9/lib/vscode/extensions.d.ts +0 -36
- package/lib/.types-compat/ts3.9/lib/vscode/index.d.ts +0 -5
- package/lib/.types-compat/ts3.9/lib/vscode/launch-config.d.ts +0 -90
- package/lib/.types-compat/ts3.9/lib/vscode/settings.d.ts +0 -24
- package/lib/.types-compat/ts3.9/lib/vscode/vscode.d.ts +0 -14
- package/lib/.types-compat/ts3.9/lib/web/index.d.ts +0 -4
- package/lib/.types-compat/ts3.9/lib/web/next.d.ts +0 -100
- package/lib/.types-compat/ts3.9/lib/web/postcss.d.ts +0 -28
- package/lib/.types-compat/ts3.9/lib/web/react.d.ts +0 -105
- package/lib/.types-compat/ts3.9/lib/web/tailwind.d.ts +0 -21
- package/lib/.types-compat/ts3.9/lib/xmlfile.d.ts +0 -18
- package/lib/.types-compat/ts3.9/lib/yaml.d.ts +0 -25
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { JsonFile } from "../json";
|
|
3
|
-
import { Project } from "../project";
|
|
4
|
-
export interface TypescriptConfigOptions {
|
|
5
|
-
/**
|
|
6
|
-
* @default "tsconfig.json"
|
|
7
|
-
*/
|
|
8
|
-
readonly fileName?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Specifies a list of glob patterns that match TypeScript files to be included in compilation.
|
|
11
|
-
*
|
|
12
|
-
* @default - all .ts files recursively
|
|
13
|
-
*/
|
|
14
|
-
readonly include?: string[];
|
|
15
|
-
/**
|
|
16
|
-
* Filters results from the "include" option.
|
|
17
|
-
*
|
|
18
|
-
* @default - node_modules is excluded by default
|
|
19
|
-
*/
|
|
20
|
-
readonly exclude?: string[];
|
|
21
|
-
/**
|
|
22
|
-
* Compiler options to use.
|
|
23
|
-
*/
|
|
24
|
-
readonly compilerOptions: TypeScriptCompilerOptions;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Determines how modules get resolved.
|
|
28
|
-
*
|
|
29
|
-
* @see https://www.typescriptlang.org/docs/handbook/module-resolution.html
|
|
30
|
-
*/
|
|
31
|
-
export declare enum TypeScriptModuleResolution {
|
|
32
|
-
/**
|
|
33
|
-
* TypeScript's former default resolution strategy.
|
|
34
|
-
*
|
|
35
|
-
* @see https://www.typescriptlang.org/docs/handbook/module-resolution.html#classic
|
|
36
|
-
*/
|
|
37
|
-
CLASSIC = "classic",
|
|
38
|
-
/**
|
|
39
|
-
* Resolution strategy which attempts to mimic the Node.js module resolution strategy at runtime.
|
|
40
|
-
*
|
|
41
|
-
* @see https://www.typescriptlang.org/docs/handbook/module-resolution.html#node
|
|
42
|
-
*/
|
|
43
|
-
NODE = "node",
|
|
44
|
-
/**
|
|
45
|
-
* Node.js’ ECMAScript Module Support from TypeScript 4.7 onwards
|
|
46
|
-
*
|
|
47
|
-
* @see https://www.typescriptlang.org/tsconfig#moduleResolution
|
|
48
|
-
*/
|
|
49
|
-
NODE16 = "node16",
|
|
50
|
-
/**
|
|
51
|
-
* Node.js’ ECMAScript Module Support from TypeScript 4.7 onwards
|
|
52
|
-
*
|
|
53
|
-
* @see https://www.typescriptlang.org/tsconfig#moduleResolution
|
|
54
|
-
*/
|
|
55
|
-
NODE_NEXT = "nodenext"
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* This flag controls how `import` works, there are 3 different options.
|
|
59
|
-
*
|
|
60
|
-
* @see https://www.typescriptlang.org/tsconfig#importsNotUsedAsValues
|
|
61
|
-
*/
|
|
62
|
-
export declare enum TypeScriptImportsNotUsedAsValues {
|
|
63
|
-
/**
|
|
64
|
-
* The default behavior of dropping `import` statements which only reference types.
|
|
65
|
-
*/
|
|
66
|
-
REMOVE = "remove",
|
|
67
|
-
/**
|
|
68
|
-
* Preserves all `import` statements whose values or types are never used. This can cause imports/side-effects to be preserved.
|
|
69
|
-
*/
|
|
70
|
-
PRESERVE = "preserve",
|
|
71
|
-
/**
|
|
72
|
-
* This preserves all imports (the same as the preserve option), but will error when a value import is only used as a type.
|
|
73
|
-
* This might be useful if you want to ensure no values are being accidentally imported, but still make side-effect imports explicit.
|
|
74
|
-
*/
|
|
75
|
-
ERROR = "error"
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Determines how JSX should get transformed into valid JavaScript.
|
|
79
|
-
*
|
|
80
|
-
* @see https://www.typescriptlang.org/docs/handbook/jsx.html
|
|
81
|
-
*/
|
|
82
|
-
export declare enum TypeScriptJsxMode {
|
|
83
|
-
/**
|
|
84
|
-
* Keeps the JSX as part of the output to be further consumed by another transform step (e.g. Babel).
|
|
85
|
-
*/
|
|
86
|
-
PRESERVE = "preserve",
|
|
87
|
-
/**
|
|
88
|
-
* Converts JSX syntax into React.createElement, does not need to go through a JSX transformation before use, and the output will have a .js file extension.
|
|
89
|
-
*/
|
|
90
|
-
REACT = "react",
|
|
91
|
-
/**
|
|
92
|
-
* Keeps all JSX like 'preserve' mode, but output will have a .js extension.
|
|
93
|
-
*/
|
|
94
|
-
REACT_NATIVE = "react-native",
|
|
95
|
-
/**
|
|
96
|
-
* Passes `key` separately from props and always passes `children` as props (since React 17).
|
|
97
|
-
*
|
|
98
|
-
* @see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-1.html#react-17-jsx-factories
|
|
99
|
-
*/
|
|
100
|
-
REACT_JSX = "react-jsx",
|
|
101
|
-
/**
|
|
102
|
-
* Same as `REACT_JSX` with additional debug data.
|
|
103
|
-
*/
|
|
104
|
-
REACT_JSXDEV = "react-jsxdev"
|
|
105
|
-
}
|
|
106
|
-
export interface TypeScriptCompilerOptions {
|
|
107
|
-
/**
|
|
108
|
-
* Allow JavaScript files to be compiled.
|
|
109
|
-
*
|
|
110
|
-
* @default false
|
|
111
|
-
*/
|
|
112
|
-
readonly allowJs?: boolean;
|
|
113
|
-
/**
|
|
114
|
-
* Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict”
|
|
115
|
-
* for each source file.
|
|
116
|
-
*
|
|
117
|
-
* @default true
|
|
118
|
-
*/
|
|
119
|
-
readonly alwaysStrict?: boolean;
|
|
120
|
-
/**
|
|
121
|
-
* Offers a way to configure the root directory for where declaration files are emitted.
|
|
122
|
-
*
|
|
123
|
-
*/
|
|
124
|
-
readonly declarationDir?: string;
|
|
125
|
-
/**
|
|
126
|
-
* To be specified along with the above
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
readonly declaration?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Emit __importStar and __importDefault helpers for runtime babel
|
|
132
|
-
* ecosystem compatibility and enable --allowSyntheticDefaultImports for
|
|
133
|
-
* typesystem compatibility.
|
|
134
|
-
*
|
|
135
|
-
* @default false
|
|
136
|
-
*/
|
|
137
|
-
readonly esModuleInterop?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.
|
|
140
|
-
*
|
|
141
|
-
* @default true
|
|
142
|
-
*/
|
|
143
|
-
readonly experimentalDecorators?: boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Enables experimental support for decorators, which is in stage 2 of the TC39 standardization process.
|
|
146
|
-
* Decorators are a language feature which hasn’t yet been fully ratified into the JavaScript specification.
|
|
147
|
-
* This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it it decided by TC39.
|
|
148
|
-
* You can find out more about decorator support in TypeScript in the handbook.
|
|
149
|
-
*
|
|
150
|
-
* @see https://www.typescriptlang.org/docs/handbook/decorators.html
|
|
151
|
-
* @default undefined
|
|
152
|
-
*/
|
|
153
|
-
readonly emitDecoratorMetadata?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Disallow inconsistently-cased references to the same file.
|
|
156
|
-
*
|
|
157
|
-
* @default false
|
|
158
|
-
*/
|
|
159
|
-
readonly forceConsistentCasingInFileNames?: boolean;
|
|
160
|
-
/**
|
|
161
|
-
* This flag works because you can use `import type` to explicitly create an `import` statement which should never be emitted into JavaScript.
|
|
162
|
-
*
|
|
163
|
-
* @see https://www.typescriptlang.org/tsconfig#importsNotUsedAsValues
|
|
164
|
-
* @default "remove"
|
|
165
|
-
*/
|
|
166
|
-
readonly importsNotUsedAsValues?: TypeScriptImportsNotUsedAsValues;
|
|
167
|
-
/**
|
|
168
|
-
* When set, instead of writing out a .js.map file to provide source maps,
|
|
169
|
-
* TypeScript will embed the source map content in the .js files.
|
|
170
|
-
*
|
|
171
|
-
* @default true
|
|
172
|
-
*/
|
|
173
|
-
readonly inlineSourceMap?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* When set, TypeScript will include the original content of the .ts file as an embedded
|
|
176
|
-
* string in the source map. This is often useful in the same cases as inlineSourceMap.
|
|
177
|
-
*
|
|
178
|
-
* @default true
|
|
179
|
-
*/
|
|
180
|
-
readonly inlineSources?: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* Enables the generation of sourcemap files.
|
|
183
|
-
*
|
|
184
|
-
* @default undefined
|
|
185
|
-
*/
|
|
186
|
-
readonly sourceMap?: boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Specify the location where a debugger should locate TypeScript files
|
|
189
|
-
* instead of relative source locations.
|
|
190
|
-
*
|
|
191
|
-
* @default undefined
|
|
192
|
-
*/
|
|
193
|
-
readonly sourceRoot?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Perform additional checks to ensure that separate compilation (such as
|
|
196
|
-
* with transpileModule or @babel/plugin-transform-typescript) would be safe.
|
|
197
|
-
*
|
|
198
|
-
* @default false
|
|
199
|
-
*/
|
|
200
|
-
readonly isolatedModules?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Support JSX in .tsx files: "react", "preserve", "react-native" etc.
|
|
203
|
-
*
|
|
204
|
-
* @default undefined
|
|
205
|
-
*/
|
|
206
|
-
readonly jsx?: TypeScriptJsxMode;
|
|
207
|
-
/**
|
|
208
|
-
* Declares the module specifier to be used for importing the jsx and jsxs factory functions when using jsx.
|
|
209
|
-
*
|
|
210
|
-
* @default undefined
|
|
211
|
-
*/
|
|
212
|
-
readonly jsxImportSource?: string;
|
|
213
|
-
/**
|
|
214
|
-
* Reference for type definitions / libraries to use (eg. ES2016, ES5, ES2018).
|
|
215
|
-
*
|
|
216
|
-
* @default [ "es2018" ]
|
|
217
|
-
*/
|
|
218
|
-
readonly lib?: string[];
|
|
219
|
-
/**
|
|
220
|
-
* Sets the module system for the program.
|
|
221
|
-
* See https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules.
|
|
222
|
-
*
|
|
223
|
-
* @default "CommonJS"
|
|
224
|
-
*/
|
|
225
|
-
readonly module?: string;
|
|
226
|
-
/**
|
|
227
|
-
* Determine how modules get resolved. Either "Node" for Node.js/io.js style resolution, or "Classic".
|
|
228
|
-
*
|
|
229
|
-
* @default "node"
|
|
230
|
-
*/
|
|
231
|
-
readonly moduleResolution?: TypeScriptModuleResolution;
|
|
232
|
-
/**
|
|
233
|
-
* Do not emit outputs.
|
|
234
|
-
*
|
|
235
|
-
* @default false
|
|
236
|
-
*/
|
|
237
|
-
readonly noEmit?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Only emit .d.ts files; do not emit .js files.
|
|
240
|
-
*
|
|
241
|
-
* @default false
|
|
242
|
-
*/
|
|
243
|
-
readonly emitDeclarationOnly?: true;
|
|
244
|
-
/**
|
|
245
|
-
* Do not emit compiler output files like JavaScript source code, source-maps or
|
|
246
|
-
* declarations if any errors were reported.
|
|
247
|
-
*
|
|
248
|
-
* @default true
|
|
249
|
-
*/
|
|
250
|
-
readonly noEmitOnError?: boolean;
|
|
251
|
-
/**
|
|
252
|
-
* Report errors for fallthrough cases in switch statements. Ensures that any non-empty
|
|
253
|
-
* case inside a switch statement includes either break or return. This means you won’t
|
|
254
|
-
* accidentally ship a case fallthrough bug.
|
|
255
|
-
*
|
|
256
|
-
* @default true
|
|
257
|
-
*/
|
|
258
|
-
readonly noFallthroughCasesInSwitch?: boolean;
|
|
259
|
-
/**
|
|
260
|
-
* In some cases where no type annotations are present, TypeScript will fall back to a
|
|
261
|
-
* type of any for a variable when it cannot infer the type.
|
|
262
|
-
*
|
|
263
|
-
* @default true
|
|
264
|
-
*/
|
|
265
|
-
readonly noImplicitAny?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Using `noImplicitOverride`, you can ensure that sub-classes never go out of sync as
|
|
268
|
-
* they are required to explicitly declare that they are overriding a member using the
|
|
269
|
-
* `override` keyword. This also improves readability of the programmer's intent.
|
|
270
|
-
*
|
|
271
|
-
* Available with TypeScript 4.3 and newer.
|
|
272
|
-
*
|
|
273
|
-
* @default false
|
|
274
|
-
*/
|
|
275
|
-
readonly noImplicitOverride?: boolean;
|
|
276
|
-
/**
|
|
277
|
-
* When enabled, TypeScript will check all code paths in a function to ensure they
|
|
278
|
-
* return a value.
|
|
279
|
-
*
|
|
280
|
-
* @default true
|
|
281
|
-
*/
|
|
282
|
-
readonly noImplicitReturns?: boolean;
|
|
283
|
-
/**
|
|
284
|
-
* Raise error on ‘this’ expressions with an implied ‘any’ type.
|
|
285
|
-
*
|
|
286
|
-
* @default true
|
|
287
|
-
*/
|
|
288
|
-
readonly noImplicitThis?: boolean;
|
|
289
|
-
/**
|
|
290
|
-
* Raise error on use of the dot syntax to access fields which are not defined.
|
|
291
|
-
*
|
|
292
|
-
* @default true
|
|
293
|
-
*/
|
|
294
|
-
readonly noPropertyAccessFromIndexSignature?: boolean;
|
|
295
|
-
/**
|
|
296
|
-
* Raise error when accessing indexes on objects with unknown keys defined in index signatures.
|
|
297
|
-
*
|
|
298
|
-
* @default true
|
|
299
|
-
*/
|
|
300
|
-
readonly noUncheckedIndexedAccess?: boolean;
|
|
301
|
-
/**
|
|
302
|
-
* Report errors on unused local variables.
|
|
303
|
-
*
|
|
304
|
-
* @default true
|
|
305
|
-
*/
|
|
306
|
-
readonly noUnusedLocals?: boolean;
|
|
307
|
-
/**
|
|
308
|
-
* Report errors on unused parameters in functions.
|
|
309
|
-
*
|
|
310
|
-
* @default true
|
|
311
|
-
*/
|
|
312
|
-
readonly noUnusedParameters?: boolean;
|
|
313
|
-
/**
|
|
314
|
-
* Allows importing modules with a ‘.json’ extension, which is a common practice
|
|
315
|
-
* in node projects. This includes generating a type for the import based on the static JSON shape.
|
|
316
|
-
*
|
|
317
|
-
* @default true
|
|
318
|
-
*/
|
|
319
|
-
readonly resolveJsonModule?: boolean;
|
|
320
|
-
/**
|
|
321
|
-
* Skip type checking of all declaration files (*.d.ts).
|
|
322
|
-
*
|
|
323
|
-
* @default false
|
|
324
|
-
*/
|
|
325
|
-
readonly skipLibCheck?: boolean;
|
|
326
|
-
/**
|
|
327
|
-
* The strict flag enables a wide range of type checking behavior that results in stronger guarantees
|
|
328
|
-
* of program correctness. Turning this on is equivalent to enabling all of the strict mode family
|
|
329
|
-
* options, which are outlined below. You can then turn off individual strict mode family checks as
|
|
330
|
-
* needed.
|
|
331
|
-
*
|
|
332
|
-
* @default true
|
|
333
|
-
*/
|
|
334
|
-
readonly strict?: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* When strictNullChecks is false, null and undefined are effectively ignored by the language.
|
|
337
|
-
* This can lead to unexpected errors at runtime.
|
|
338
|
-
* When strictNullChecks is true, null and undefined have their own distinct types and you’ll
|
|
339
|
-
* get a type error if you try to use them where a concrete value is expected.
|
|
340
|
-
*
|
|
341
|
-
* @default true
|
|
342
|
-
*/
|
|
343
|
-
readonly strictNullChecks?: boolean;
|
|
344
|
-
/**
|
|
345
|
-
* When set to true, TypeScript will raise an error when a class property was declared but
|
|
346
|
-
* not set in the constructor.
|
|
347
|
-
*
|
|
348
|
-
* @default true
|
|
349
|
-
*/
|
|
350
|
-
readonly strictPropertyInitialization?: boolean;
|
|
351
|
-
/**
|
|
352
|
-
* Do not emit declarations for code that has an @internal annotation in it’s JSDoc comment.
|
|
353
|
-
*
|
|
354
|
-
* @default true
|
|
355
|
-
*/
|
|
356
|
-
readonly stripInternal?: boolean;
|
|
357
|
-
/**
|
|
358
|
-
* Modern browsers support all ES6 features, so ES6 is a good choice. You might choose to set
|
|
359
|
-
* a lower target if your code is deployed to older environments, or a higher target if your
|
|
360
|
-
* code is guaranteed to run in newer environments.
|
|
361
|
-
*
|
|
362
|
-
* @default "ES2018"
|
|
363
|
-
*/
|
|
364
|
-
readonly target?: string;
|
|
365
|
-
/**
|
|
366
|
-
* Output directory for the compiled files.
|
|
367
|
-
*/
|
|
368
|
-
readonly outDir?: string;
|
|
369
|
-
/**
|
|
370
|
-
* Specifies the root directory of input files.
|
|
371
|
-
*
|
|
372
|
-
* Only use to control the output directory structure with `outDir`.
|
|
373
|
-
*/
|
|
374
|
-
readonly rootDir?: string;
|
|
375
|
-
/**
|
|
376
|
-
* Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
|
|
377
|
-
*/
|
|
378
|
-
readonly allowSyntheticDefaultImports?: boolean;
|
|
379
|
-
/**
|
|
380
|
-
* Lets you set a base directory to resolve non-absolute module names.
|
|
381
|
-
*
|
|
382
|
-
* You can define a root folder where you can do absolute file resolution.
|
|
383
|
-
*/
|
|
384
|
-
readonly baseUrl?: string;
|
|
385
|
-
/**
|
|
386
|
-
* A series of entries which re-map imports to lookup locations relative to the baseUrl, there is a larger coverage of paths in the handbook.
|
|
387
|
-
*
|
|
388
|
-
* paths lets you declare how TypeScript should resolve an import in your require/imports.
|
|
389
|
-
*/
|
|
390
|
-
readonly paths?: {
|
|
391
|
-
[key: string]: string[];
|
|
392
|
-
};
|
|
393
|
-
}
|
|
394
|
-
export declare class TypescriptConfig extends Component {
|
|
395
|
-
readonly compilerOptions: TypeScriptCompilerOptions;
|
|
396
|
-
readonly include: string[];
|
|
397
|
-
readonly exclude: string[];
|
|
398
|
-
readonly fileName: string;
|
|
399
|
-
readonly file: JsonFile;
|
|
400
|
-
constructor(project: Project, options: TypescriptConfigOptions);
|
|
401
|
-
addInclude(pattern: string): void;
|
|
402
|
-
addExclude(pattern: string): void;
|
|
403
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { Component } from "../component";
|
|
2
|
-
import { GithubCredentials, GithubWorkflow, GitIdentity, workflows } from "../github";
|
|
3
|
-
import { ContainerOptions, JobStep, JobPermissions } from "../github/workflows-model";
|
|
4
|
-
import { NodeProject } from "../javascript";
|
|
5
|
-
import { Task } from "../task";
|
|
6
|
-
/**
|
|
7
|
-
* Options for `UpgradeDependencies`.
|
|
8
|
-
*/
|
|
9
|
-
export interface UpgradeDependenciesOptions {
|
|
10
|
-
/**
|
|
11
|
-
* List of package names to exclude during the upgrade.
|
|
12
|
-
*
|
|
13
|
-
* @default - Nothing is excluded.
|
|
14
|
-
*/
|
|
15
|
-
readonly exclude?: string[];
|
|
16
|
-
/**
|
|
17
|
-
* List of package names to include during the upgrade.
|
|
18
|
-
*
|
|
19
|
-
* @default - Everything is included.
|
|
20
|
-
*/
|
|
21
|
-
readonly include?: string[];
|
|
22
|
-
/**
|
|
23
|
-
* Include a github workflow for creating PR's that upgrades the
|
|
24
|
-
* required dependencies, either by manual dispatch, or by a schedule.
|
|
25
|
-
*
|
|
26
|
-
* If this is `false`, only a local projen task is created, which can be executed manually to
|
|
27
|
-
* upgrade the dependencies.
|
|
28
|
-
*
|
|
29
|
-
* @default - true for root projects, false for sub-projects.
|
|
30
|
-
*/
|
|
31
|
-
readonly workflow?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Options for the github workflow. Only applies if `workflow` is true.
|
|
34
|
-
*
|
|
35
|
-
* @default - default options.
|
|
36
|
-
*/
|
|
37
|
-
readonly workflowOptions?: UpgradeDependenciesWorkflowOptions;
|
|
38
|
-
/**
|
|
39
|
-
* The name of the task that will be created.
|
|
40
|
-
* This will also be the workflow name.
|
|
41
|
-
*
|
|
42
|
-
* @default "upgrade".
|
|
43
|
-
*/
|
|
44
|
-
readonly taskName?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Title of the pull request to use (should be all lower-case).
|
|
47
|
-
*
|
|
48
|
-
* @default "upgrade dependencies"
|
|
49
|
-
*/
|
|
50
|
-
readonly pullRequestTitle?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Add Signed-off-by line by the committer at the end of the commit log message.
|
|
53
|
-
*
|
|
54
|
-
* @default true
|
|
55
|
-
*/
|
|
56
|
-
readonly signoff?: boolean;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Upgrade node project dependencies.
|
|
60
|
-
*/
|
|
61
|
-
export declare class UpgradeDependencies extends Component {
|
|
62
|
-
/**
|
|
63
|
-
* The workflows that execute the upgrades. One workflow per branch.
|
|
64
|
-
*/
|
|
65
|
-
readonly workflows: GithubWorkflow[];
|
|
66
|
-
private readonly options;
|
|
67
|
-
private readonly _project;
|
|
68
|
-
private readonly pullRequestTitle;
|
|
69
|
-
/**
|
|
70
|
-
* Container definitions for the upgrade workflow.
|
|
71
|
-
*/
|
|
72
|
-
containerOptions?: ContainerOptions;
|
|
73
|
-
/**
|
|
74
|
-
* The upgrade task.
|
|
75
|
-
*/
|
|
76
|
-
readonly upgradeTask: Task;
|
|
77
|
-
/**
|
|
78
|
-
* A task run after the upgrade task.
|
|
79
|
-
*/
|
|
80
|
-
readonly postUpgradeTask: Task;
|
|
81
|
-
private readonly gitIdentity;
|
|
82
|
-
private readonly postBuildSteps;
|
|
83
|
-
private readonly permissions;
|
|
84
|
-
constructor(project: NodeProject, options?: UpgradeDependenciesOptions);
|
|
85
|
-
/**
|
|
86
|
-
* Add steps to execute a successful build.
|
|
87
|
-
* @param steps workflow steps
|
|
88
|
-
*/
|
|
89
|
-
addPostBuildSteps(...steps: JobStep[]): void;
|
|
90
|
-
private renderTaskSteps;
|
|
91
|
-
private createWorkflow;
|
|
92
|
-
private createUpgrade;
|
|
93
|
-
private createPr;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Options for `UpgradeDependencies.workflowOptions`.
|
|
97
|
-
*/
|
|
98
|
-
export interface UpgradeDependenciesWorkflowOptions {
|
|
99
|
-
/**
|
|
100
|
-
* Schedule to run on.
|
|
101
|
-
*
|
|
102
|
-
* @default UpgradeDependenciesSchedule.DAILY
|
|
103
|
-
*/
|
|
104
|
-
readonly schedule?: UpgradeDependenciesSchedule;
|
|
105
|
-
/**
|
|
106
|
-
* Choose a method for authenticating with GitHub for creating the PR.
|
|
107
|
-
*
|
|
108
|
-
* When using the default github token, PR's created by this workflow
|
|
109
|
-
* will not trigger any subsequent workflows (i.e the build workflow), so
|
|
110
|
-
* projen requires API access to be provided through e.g. a personal
|
|
111
|
-
* access token or other method.
|
|
112
|
-
*
|
|
113
|
-
* @see https://github.com/peter-evans/create-pull-request/issues/48
|
|
114
|
-
* @default - personal access token named PROJEN_GITHUB_TOKEN
|
|
115
|
-
*/
|
|
116
|
-
readonly projenCredentials?: GithubCredentials;
|
|
117
|
-
/**
|
|
118
|
-
* Labels to apply on the PR.
|
|
119
|
-
*
|
|
120
|
-
* @default - no labels.
|
|
121
|
-
*/
|
|
122
|
-
readonly labels?: string[];
|
|
123
|
-
/**
|
|
124
|
-
* Assignees to add on the PR.
|
|
125
|
-
*
|
|
126
|
-
* @default - no assignees
|
|
127
|
-
*/
|
|
128
|
-
readonly assignees?: string[];
|
|
129
|
-
/**
|
|
130
|
-
* Job container options.
|
|
131
|
-
*
|
|
132
|
-
* @default - defaults
|
|
133
|
-
*/
|
|
134
|
-
readonly container?: workflows.ContainerOptions;
|
|
135
|
-
/**
|
|
136
|
-
* List of branches to create PR's for.
|
|
137
|
-
*
|
|
138
|
-
* @default - All release branches configured for the project.
|
|
139
|
-
*/
|
|
140
|
-
readonly branches?: string[];
|
|
141
|
-
/**
|
|
142
|
-
* The git identity to use for commits.
|
|
143
|
-
* @default "github-actions@github.com"
|
|
144
|
-
*/
|
|
145
|
-
readonly gitIdentity?: GitIdentity;
|
|
146
|
-
/**
|
|
147
|
-
* Github Runner selection labels
|
|
148
|
-
* @default ["ubuntu-latest"]
|
|
149
|
-
*/
|
|
150
|
-
readonly runsOn?: string[];
|
|
151
|
-
/**
|
|
152
|
-
* Permissions granted to the upgrade job
|
|
153
|
-
* To limit job permissions for `contents`, the desired permissions have to be explicitly set, e.g.: `{ contents: JobPermission.NONE }`
|
|
154
|
-
* @default `{ contents: JobPermission.READ }`
|
|
155
|
-
*/
|
|
156
|
-
readonly permissions?: JobPermissions;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* How often to check for new versions and raise pull requests for version upgrades.
|
|
160
|
-
*/
|
|
161
|
-
export declare class UpgradeDependenciesSchedule {
|
|
162
|
-
readonly cron: string[];
|
|
163
|
-
/**
|
|
164
|
-
* Disables automatic upgrades.
|
|
165
|
-
*/
|
|
166
|
-
static readonly NEVER: UpgradeDependenciesSchedule;
|
|
167
|
-
/**
|
|
168
|
-
* At 00:00.
|
|
169
|
-
*/
|
|
170
|
-
static readonly DAILY: UpgradeDependenciesSchedule;
|
|
171
|
-
/**
|
|
172
|
-
* At 00:00 on every day-of-week from Monday through Friday.
|
|
173
|
-
*/
|
|
174
|
-
static readonly WEEKDAY: UpgradeDependenciesSchedule;
|
|
175
|
-
/**
|
|
176
|
-
* At 00:00 on Monday.
|
|
177
|
-
*/
|
|
178
|
-
static readonly WEEKLY: UpgradeDependenciesSchedule;
|
|
179
|
-
/**
|
|
180
|
-
* At 00:00 on day-of-month 1.
|
|
181
|
-
*/
|
|
182
|
-
static readonly MONTHLY: UpgradeDependenciesSchedule;
|
|
183
|
-
/**
|
|
184
|
-
* Create a schedule from a raw cron expression.
|
|
185
|
-
*/
|
|
186
|
-
static expressions(cron: string[]): UpgradeDependenciesSchedule;
|
|
187
|
-
private constructor();
|
|
188
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare function renderBundleName(entrypoint: string): string;
|
|
2
|
-
/**
|
|
3
|
-
* Regex for AWS CodeArtifact registry
|
|
4
|
-
*/
|
|
5
|
-
export declare const codeArtifactRegex: RegExp;
|
|
6
|
-
/**
|
|
7
|
-
* gets AWS details from the Code Artifact registry URL
|
|
8
|
-
* throws exception if not matching expected pattern
|
|
9
|
-
* @param registryUrl Code Artifact registry URL
|
|
10
|
-
* @returns object containing the (domain, accountId, region, repository)
|
|
11
|
-
*/
|
|
12
|
-
export declare function extractCodeArtifactDetails(registryUrl: string): {
|
|
13
|
-
domain: string;
|
|
14
|
-
accountId: string;
|
|
15
|
-
region: string;
|
|
16
|
-
repository: string;
|
|
17
|
-
registry: string;
|
|
18
|
-
};
|
|
19
|
-
export declare function minVersion(version: string): string | undefined;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility for applying RFC-6902 JSON-Patch to a document.
|
|
3
|
-
*
|
|
4
|
-
* Use the the `JsonPatch.apply(doc, ...ops)` function to apply a set of
|
|
5
|
-
* operations to a JSON document and return the result.
|
|
6
|
-
*
|
|
7
|
-
* Operations can be created using the factory methods `JsonPatch.add()`,
|
|
8
|
-
* `JsonPatch.remove()`, etc.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
*
|
|
12
|
-
*const output = JsonPatch.apply(input,
|
|
13
|
-
* JsonPatch.replace('/world/hi/there', 'goodbye'),
|
|
14
|
-
* JsonPatch.add('/world/foo/', 'boom'),
|
|
15
|
-
* JsonPatch.remove('/hello'));
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export declare class JsonPatch {
|
|
19
|
-
private readonly operation;
|
|
20
|
-
/**
|
|
21
|
-
* Applies a set of JSON-Patch (RFC-6902) operations to `document` and returns the result.
|
|
22
|
-
* @param document The document to patch
|
|
23
|
-
* @param ops The operations to apply
|
|
24
|
-
* @returns The result document
|
|
25
|
-
*/
|
|
26
|
-
static apply(document: any, ...ops: JsonPatch[]): any;
|
|
27
|
-
/**
|
|
28
|
-
* Adds a value to an object or inserts it into an array. In the case of an
|
|
29
|
-
* array, the value is inserted before the given index. The - character can be
|
|
30
|
-
* used instead of an index to insert at the end of an array.
|
|
31
|
-
*
|
|
32
|
-
* @example JsonPatch.add('/biscuits/1', { "name": "Ginger Nut" })
|
|
33
|
-
*/
|
|
34
|
-
static add(path: string, value: any): JsonPatch;
|
|
35
|
-
/**
|
|
36
|
-
* Removes a value from an object or array.
|
|
37
|
-
*
|
|
38
|
-
* @example JsonPatch.remove('/biscuits')
|
|
39
|
-
* @example JsonPatch.remove('/biscuits/0')
|
|
40
|
-
*/
|
|
41
|
-
static remove(path: string): JsonPatch;
|
|
42
|
-
/**
|
|
43
|
-
* Replaces a value. Equivalent to a “remove” followed by an “add”.
|
|
44
|
-
*
|
|
45
|
-
* @example JsonPatch.replace('/biscuits/0/name', 'Chocolate Digestive')
|
|
46
|
-
*/
|
|
47
|
-
static replace(path: string, value: any): JsonPatch;
|
|
48
|
-
/**
|
|
49
|
-
* Copies a value from one location to another within the JSON document. Both
|
|
50
|
-
* from and path are JSON Pointers.
|
|
51
|
-
*
|
|
52
|
-
* @example JsonPatch.copy('/biscuits/0', '/best_biscuit')
|
|
53
|
-
*/
|
|
54
|
-
static copy(from: string, path: string): JsonPatch;
|
|
55
|
-
/**
|
|
56
|
-
* Moves a value from one location to the other. Both from and path are JSON Pointers.
|
|
57
|
-
*
|
|
58
|
-
* @example JsonPatch.move('/biscuits', '/cookies')
|
|
59
|
-
*/
|
|
60
|
-
static move(from: string, path: string): JsonPatch;
|
|
61
|
-
/**
|
|
62
|
-
* Tests that the specified value is set in the document. If the test fails,
|
|
63
|
-
* then the patch as a whole should not apply.
|
|
64
|
-
*
|
|
65
|
-
* @example JsonPatch.test('/best_biscuit/name', 'Choco Leibniz')
|
|
66
|
-
*/
|
|
67
|
-
static test(path: string, value: any): JsonPatch;
|
|
68
|
-
private constructor();
|
|
69
|
-
/**
|
|
70
|
-
* Returns the JSON representation of this JSON patch operation.
|
|
71
|
-
*
|
|
72
|
-
* @internal
|
|
73
|
-
*/
|
|
74
|
-
_toJson(): any;
|
|
75
|
-
}
|