@contember/cli 2.1.0-beta.2 → 2.2.0-alpha.1
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/CLAUDE.md +14 -1
- package/dist/development/index.cjs +5 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +5 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/run.cjs +3 -3
- package/dist/development/run.cjs.map +1 -1
- package/dist/development/run.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
- package/dist/development/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
- package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
- package/dist/development/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
- package/dist/development/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
- package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
- package/dist/development/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
- package/dist/development/src/commands/deploy/DeployCommand.cjs +3 -1
- package/dist/development/src/commands/deploy/DeployCommand.cjs.map +1 -1
- package/dist/development/src/commands/deploy/DeployCommand.js +3 -1
- package/dist/development/src/commands/deploy/DeployCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationAmendCommand.cjs +26 -4
- package/dist/development/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationAmendCommand.js +26 -4
- package/dist/development/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDiffCommand.cjs +39 -3
- package/dist/development/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDiffCommand.js +39 -3
- package/dist/development/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationExecuteCommand.cjs +3 -1
- package/dist/development/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationExecuteCommand.js +3 -1
- package/dist/development/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationInitStateCommand.cjs +26 -0
- package/dist/development/src/commands/migrations/MigrationInitStateCommand.cjs.map +1 -0
- package/dist/development/src/commands/migrations/MigrationInitStateCommand.js +26 -0
- package/dist/development/src/commands/migrations/MigrationInitStateCommand.js.map +1 -0
- package/dist/development/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationSnapshotCommand.cjs +28 -0
- package/dist/development/src/commands/migrations/MigrationSnapshotCommand.cjs.map +1 -0
- package/dist/development/src/commands/migrations/MigrationSnapshotCommand.js +28 -0
- package/dist/development/src/commands/migrations/MigrationSnapshotCommand.js.map +1 -0
- package/dist/development/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.cjs +23 -0
- package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.cjs.map +1 -0
- package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.js +23 -0
- package/dist/development/src/commands/migrations/MigrationVerifySnapshotCommand.js.map +1 -0
- package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.cjs +2 -2
- package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
- package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
- package/dist/development/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
- package/dist/development/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
- package/dist/development/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
- package/dist/development/src/commands/project/ProjectValidateCommand.js.map +1 -1
- package/dist/development/src/commands/tenant/TenantApplyCommand.cjs +39 -0
- package/dist/development/src/commands/tenant/TenantApplyCommand.cjs.map +1 -0
- package/dist/development/src/commands/tenant/TenantApplyCommand.js +39 -0
- package/dist/development/src/commands/tenant/TenantApplyCommand.js.map +1 -0
- package/dist/development/src/commands/transfer/ExportCommand.cjs.map +1 -1
- package/dist/development/src/commands/transfer/ExportCommand.js.map +1 -1
- package/dist/development/src/commands/transfer/ImportCommand.cjs.map +1 -1
- package/dist/development/src/commands/transfer/ImportCommand.js.map +1 -1
- package/dist/development/src/commands/transfer/TransferCommand.cjs.map +1 -1
- package/dist/development/src/commands/transfer/TransferCommand.js.map +1 -1
- package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
- package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
- package/dist/development/src/consts.cjs +2 -2
- package/dist/development/src/consts.cjs.map +1 -1
- package/dist/development/src/dic.cjs +60 -10
- package/dist/development/src/dic.cjs.map +1 -1
- package/dist/development/src/dic.js +61 -11
- package/dist/development/src/dic.js.map +1 -1
- package/dist/development/src/lib/SystemClientProvider.cjs.map +1 -1
- package/dist/development/src/lib/SystemClientProvider.js.map +1 -1
- package/dist/development/src/lib/TenantClientProvider.cjs.map +1 -1
- package/dist/development/src/lib/TenantClientProvider.js.map +1 -1
- package/dist/development/src/lib/VersionChecker.cjs +2 -2
- package/dist/development/src/lib/VersionChecker.cjs.map +1 -1
- package/dist/development/src/lib/VersionChecker.js.map +1 -1
- package/dist/development/src/lib/admin/AdminClient.cjs.map +1 -1
- package/dist/development/src/lib/admin/AdminClient.js.map +1 -1
- package/dist/development/src/lib/admin/AdminDeployer.cjs.map +1 -1
- package/dist/development/src/lib/admin/AdminDeployer.js.map +1 -1
- package/dist/development/src/lib/fs/DockerComposeManager.cjs +10 -10
- package/dist/development/src/lib/fs/DockerComposeManager.cjs.map +1 -1
- package/dist/development/src/lib/fs/DockerComposeManager.js.map +1 -1
- package/dist/development/src/lib/fs/YamlHandler.cjs.map +1 -1
- package/dist/development/src/lib/fs/YamlHandler.js.map +1 -1
- package/dist/development/src/lib/js/EsBuildBuilder.cjs.map +1 -1
- package/dist/development/src/lib/js/EsBuildBuilder.js.map +1 -1
- package/dist/development/src/lib/js/EvalExecutor.cjs.map +1 -1
- package/dist/development/src/lib/js/EvalExecutor.js.map +1 -1
- package/dist/development/src/lib/js/JsCodeRunner.cjs.map +1 -1
- package/dist/development/src/lib/js/JsCodeRunner.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs +78 -18
- package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationExecutionFacade.js +79 -19
- package/dist/development/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationPrinter.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs +5 -1
- package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationRebaseFacade.js +5 -1
- package/dist/development/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationSnapshotFacade.cjs +171 -0
- package/dist/development/src/lib/migrations/MigrationSnapshotFacade.cjs.map +1 -0
- package/dist/development/src/lib/migrations/MigrationSnapshotFacade.js +171 -0
- package/dist/development/src/lib/migrations/MigrationSnapshotFacade.js.map +1 -0
- package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsValidator.js.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectProvider.js.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectResolver.cjs.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectResolver.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityInfo.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityLink.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityLink.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldLink.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldLink.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldType.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldType.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/OnDelete.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/OnDelete.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/ProjectInfo.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/ProjectInfo.js.map +1 -1
- package/dist/development/src/lib/project/docs/projectDescribe.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/projectDescribe.js.map +1 -1
- package/dist/development/src/lib/schema/SchemaLoader.cjs +5 -5
- package/dist/development/src/lib/schema/SchemaLoader.cjs.map +1 -1
- package/dist/development/src/lib/schema/SchemaLoader.js.map +1 -1
- package/dist/development/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
- package/dist/development/src/lib/schema/SchemaValidationHelper.js.map +1 -1
- package/dist/development/src/lib/tenant/TenantClient.cjs +75 -12
- package/dist/development/src/lib/tenant/TenantClient.cjs.map +1 -1
- package/dist/development/src/lib/tenant/TenantClient.js +75 -12
- package/dist/development/src/lib/tenant/TenantClient.js.map +1 -1
- package/dist/development/src/lib/tenant/TenantConfigApplier.cjs +55 -0
- package/dist/development/src/lib/tenant/TenantConfigApplier.cjs.map +1 -0
- package/dist/development/src/lib/tenant/TenantConfigApplier.js +55 -0
- package/dist/development/src/lib/tenant/TenantConfigApplier.js.map +1 -0
- package/dist/development/src/lib/tenant/TenantConfigLoader.cjs +32 -0
- package/dist/development/src/lib/tenant/TenantConfigLoader.cjs.map +1 -0
- package/dist/development/src/lib/tenant/TenantConfigLoader.js +32 -0
- package/dist/development/src/lib/tenant/TenantConfigLoader.js.map +1 -0
- package/dist/development/src/lib/tenant/tenantConfig.cjs +5 -0
- package/dist/development/src/lib/tenant/tenantConfig.cjs.map +1 -0
- package/dist/development/src/lib/tenant/tenantConfig.js +5 -0
- package/dist/development/src/lib/tenant/tenantConfig.js.map +1 -0
- package/dist/development/src/lib/transfer/DataTransferClient.cjs.map +1 -1
- package/dist/development/src/lib/transfer/DataTransferClient.js.map +1 -1
- package/dist/development/src/lib/workspace/WorkspaceResolver.cjs +6 -6
- package/dist/development/src/lib/workspace/WorkspaceResolver.cjs.map +1 -1
- package/dist/development/src/lib/workspace/WorkspaceResolver.js.map +1 -1
- package/dist/production/index.cjs +5 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +5 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/run.cjs +3 -3
- package/dist/production/run.cjs.map +1 -1
- package/dist/production/run.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
- package/dist/production/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
- package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
- package/dist/production/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
- package/dist/production/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
- package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
- package/dist/production/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
- package/dist/production/src/commands/deploy/DeployCommand.cjs +3 -1
- package/dist/production/src/commands/deploy/DeployCommand.cjs.map +1 -1
- package/dist/production/src/commands/deploy/DeployCommand.js +3 -1
- package/dist/production/src/commands/deploy/DeployCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs +26 -4
- package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationAmendCommand.js +26 -4
- package/dist/production/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs +39 -3
- package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDiffCommand.js +39 -3
- package/dist/production/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs +3 -1
- package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationExecuteCommand.js +3 -1
- package/dist/production/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationInitStateCommand.cjs +26 -0
- package/dist/production/src/commands/migrations/MigrationInitStateCommand.cjs.map +1 -0
- package/dist/production/src/commands/migrations/MigrationInitStateCommand.js +26 -0
- package/dist/production/src/commands/migrations/MigrationInitStateCommand.js.map +1 -0
- package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationSnapshotCommand.cjs +28 -0
- package/dist/production/src/commands/migrations/MigrationSnapshotCommand.cjs.map +1 -0
- package/dist/production/src/commands/migrations/MigrationSnapshotCommand.js +28 -0
- package/dist/production/src/commands/migrations/MigrationSnapshotCommand.js.map +1 -0
- package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.cjs +23 -0
- package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.cjs.map +1 -0
- package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.js +23 -0
- package/dist/production/src/commands/migrations/MigrationVerifySnapshotCommand.js.map +1 -0
- package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs +2 -2
- package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
- package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
- package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
- package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
- package/dist/production/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
- package/dist/production/src/commands/project/ProjectValidateCommand.js.map +1 -1
- package/dist/production/src/commands/tenant/TenantApplyCommand.cjs +39 -0
- package/dist/production/src/commands/tenant/TenantApplyCommand.cjs.map +1 -0
- package/dist/production/src/commands/tenant/TenantApplyCommand.js +39 -0
- package/dist/production/src/commands/tenant/TenantApplyCommand.js.map +1 -0
- package/dist/production/src/commands/transfer/ExportCommand.cjs.map +1 -1
- package/dist/production/src/commands/transfer/ExportCommand.js.map +1 -1
- package/dist/production/src/commands/transfer/ImportCommand.cjs.map +1 -1
- package/dist/production/src/commands/transfer/ImportCommand.js.map +1 -1
- package/dist/production/src/commands/transfer/TransferCommand.cjs.map +1 -1
- package/dist/production/src/commands/transfer/TransferCommand.js.map +1 -1
- package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
- package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
- package/dist/production/src/consts.cjs +2 -2
- package/dist/production/src/consts.cjs.map +1 -1
- package/dist/production/src/dic.cjs +60 -10
- package/dist/production/src/dic.cjs.map +1 -1
- package/dist/production/src/dic.js +61 -11
- package/dist/production/src/dic.js.map +1 -1
- package/dist/production/src/lib/SystemClientProvider.cjs.map +1 -1
- package/dist/production/src/lib/SystemClientProvider.js.map +1 -1
- package/dist/production/src/lib/TenantClientProvider.cjs.map +1 -1
- package/dist/production/src/lib/TenantClientProvider.js.map +1 -1
- package/dist/production/src/lib/VersionChecker.cjs +2 -2
- package/dist/production/src/lib/VersionChecker.cjs.map +1 -1
- package/dist/production/src/lib/VersionChecker.js.map +1 -1
- package/dist/production/src/lib/admin/AdminClient.cjs.map +1 -1
- package/dist/production/src/lib/admin/AdminClient.js.map +1 -1
- package/dist/production/src/lib/admin/AdminDeployer.cjs.map +1 -1
- package/dist/production/src/lib/admin/AdminDeployer.js.map +1 -1
- package/dist/production/src/lib/fs/DockerComposeManager.cjs +10 -10
- package/dist/production/src/lib/fs/DockerComposeManager.cjs.map +1 -1
- package/dist/production/src/lib/fs/DockerComposeManager.js.map +1 -1
- package/dist/production/src/lib/fs/YamlHandler.cjs.map +1 -1
- package/dist/production/src/lib/fs/YamlHandler.js.map +1 -1
- package/dist/production/src/lib/js/EsBuildBuilder.cjs.map +1 -1
- package/dist/production/src/lib/js/EsBuildBuilder.js.map +1 -1
- package/dist/production/src/lib/js/EvalExecutor.cjs.map +1 -1
- package/dist/production/src/lib/js/EvalExecutor.js.map +1 -1
- package/dist/production/src/lib/js/JsCodeRunner.cjs.map +1 -1
- package/dist/production/src/lib/js/JsCodeRunner.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs +78 -18
- package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationExecutionFacade.js +79 -19
- package/dist/production/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationPrinter.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs +5 -1
- package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationRebaseFacade.js +5 -1
- package/dist/production/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationSnapshotFacade.cjs +171 -0
- package/dist/production/src/lib/migrations/MigrationSnapshotFacade.cjs.map +1 -0
- package/dist/production/src/lib/migrations/MigrationSnapshotFacade.js +171 -0
- package/dist/production/src/lib/migrations/MigrationSnapshotFacade.js.map +1 -0
- package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsValidator.js.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectProvider.js.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectResolver.cjs.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectResolver.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityInfo.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityLink.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityLink.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldLink.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldLink.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldType.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldType.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/OnDelete.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/OnDelete.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/ProjectInfo.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/ProjectInfo.js.map +1 -1
- package/dist/production/src/lib/project/docs/projectDescribe.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/projectDescribe.js.map +1 -1
- package/dist/production/src/lib/schema/SchemaLoader.cjs +5 -5
- package/dist/production/src/lib/schema/SchemaLoader.cjs.map +1 -1
- package/dist/production/src/lib/schema/SchemaLoader.js.map +1 -1
- package/dist/production/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
- package/dist/production/src/lib/schema/SchemaValidationHelper.js.map +1 -1
- package/dist/production/src/lib/tenant/TenantClient.cjs +75 -12
- package/dist/production/src/lib/tenant/TenantClient.cjs.map +1 -1
- package/dist/production/src/lib/tenant/TenantClient.js +75 -12
- package/dist/production/src/lib/tenant/TenantClient.js.map +1 -1
- package/dist/production/src/lib/tenant/TenantConfigApplier.cjs +55 -0
- package/dist/production/src/lib/tenant/TenantConfigApplier.cjs.map +1 -0
- package/dist/production/src/lib/tenant/TenantConfigApplier.js +55 -0
- package/dist/production/src/lib/tenant/TenantConfigApplier.js.map +1 -0
- package/dist/production/src/lib/tenant/TenantConfigLoader.cjs +32 -0
- package/dist/production/src/lib/tenant/TenantConfigLoader.cjs.map +1 -0
- package/dist/production/src/lib/tenant/TenantConfigLoader.js +32 -0
- package/dist/production/src/lib/tenant/TenantConfigLoader.js.map +1 -0
- package/dist/production/src/lib/tenant/tenantConfig.cjs +5 -0
- package/dist/production/src/lib/tenant/tenantConfig.cjs.map +1 -0
- package/dist/production/src/lib/tenant/tenantConfig.js +5 -0
- package/dist/production/src/lib/tenant/tenantConfig.js.map +1 -0
- package/dist/production/src/lib/transfer/DataTransferClient.cjs.map +1 -1
- package/dist/production/src/lib/transfer/DataTransferClient.js.map +1 -1
- package/dist/production/src/lib/workspace/WorkspaceResolver.cjs +6 -6
- package/dist/production/src/lib/workspace/WorkspaceResolver.cjs.map +1 -1
- package/dist/production/src/lib/workspace/WorkspaceResolver.js.map +1 -1
- package/dist/types/commands/actions/ActionsGetEventCommand.d.ts +1 -1
- package/dist/types/commands/actions/ActionsGetEventCommand.d.ts.map +1 -1
- package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts +1 -1
- package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts.map +1 -1
- package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts +1 -1
- package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts.map +1 -1
- package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts +1 -1
- package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts.map +1 -1
- package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts +1 -1
- package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts.map +1 -1
- package/dist/types/commands/actions/ActionsStopEventCommand.d.ts +1 -1
- package/dist/types/commands/actions/ActionsStopEventCommand.d.ts.map +1 -1
- package/dist/types/commands/deploy/DeployCommand.d.ts +7 -6
- package/dist/types/commands/deploy/DeployCommand.d.ts.map +1 -1
- package/dist/types/commands/deploy/index.d.ts +1 -1
- package/dist/types/commands/deploy/index.d.ts.map +1 -1
- package/dist/types/commands/index.d.ts +6 -5
- package/dist/types/commands/index.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationAmendCommand.d.ts +8 -7
- package/dist/types/commands/migrations/MigrationAmendCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts +1 -1
- package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationDiffCommand.d.ts +8 -5
- package/dist/types/commands/migrations/MigrationDiffCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts +2 -1
- package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationInitStateCommand.d.ts +14 -0
- package/dist/types/commands/migrations/MigrationInitStateCommand.d.ts.map +1 -0
- package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts +1 -1
- package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationSnapshotCommand.d.ts +12 -0
- package/dist/types/commands/migrations/MigrationSnapshotCommand.d.ts.map +1 -0
- package/dist/types/commands/migrations/MigrationStatusCommand.d.ts +3 -3
- package/dist/types/commands/migrations/MigrationStatusCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationVerifySnapshotCommand.d.ts +12 -0
- package/dist/types/commands/migrations/MigrationVerifySnapshotCommand.d.ts.map +1 -0
- package/dist/types/commands/migrations/index.d.ts +10 -7
- package/dist/types/commands/migrations/index.d.ts.map +1 -1
- package/dist/types/commands/misc/index.d.ts +1 -1
- package/dist/types/commands/misc/index.d.ts.map +1 -1
- package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts +1 -1
- package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts.map +1 -1
- package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts +1 -1
- package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts.map +1 -1
- package/dist/types/commands/project/ProjectValidateCommand.d.ts +2 -2
- package/dist/types/commands/project/ProjectValidateCommand.d.ts.map +1 -1
- package/dist/types/commands/project/index.d.ts +3 -3
- package/dist/types/commands/project/index.d.ts.map +1 -1
- package/dist/types/commands/tenant/TenantApplyCommand.d.ts +21 -0
- package/dist/types/commands/tenant/TenantApplyCommand.d.ts.map +1 -0
- package/dist/types/commands/tenant/index.d.ts +2 -0
- package/dist/types/commands/tenant/index.d.ts.map +1 -0
- package/dist/types/commands/transfer/ExportCommand.d.ts +2 -2
- package/dist/types/commands/transfer/ExportCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/ImportCommand.d.ts +2 -2
- package/dist/types/commands/transfer/ImportCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/TransferCommand.d.ts +2 -2
- package/dist/types/commands/transfer/TransferCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/index.d.ts +3 -3
- package/dist/types/commands/transfer/index.d.ts.map +1 -1
- package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts +1 -1
- package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts.map +1 -1
- package/dist/types/commands/workspace/index.d.ts +1 -1
- package/dist/types/commands/workspace/index.d.ts.map +1 -1
- package/dist/types/dic.d.ts +54 -32
- package/dist/types/dic.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/lib/SystemClientProvider.d.ts +1 -1
- package/dist/types/lib/SystemClientProvider.d.ts.map +1 -1
- package/dist/types/lib/TenantClientProvider.d.ts +2 -2
- package/dist/types/lib/TenantClientProvider.d.ts.map +1 -1
- package/dist/types/lib/VersionChecker.d.ts +1 -1
- package/dist/types/lib/VersionChecker.d.ts.map +1 -1
- package/dist/types/lib/admin/AdminClient.d.ts +1 -1
- package/dist/types/lib/admin/AdminClient.d.ts.map +1 -1
- package/dist/types/lib/admin/AdminDeployer.d.ts +3 -3
- package/dist/types/lib/admin/AdminDeployer.d.ts.map +1 -1
- package/dist/types/lib/fs/DockerComposeManager.d.ts +2 -2
- package/dist/types/lib/fs/DockerComposeManager.d.ts.map +1 -1
- package/dist/types/lib/fs/YamlHandler.d.ts +2 -2
- package/dist/types/lib/fs/YamlHandler.d.ts.map +1 -1
- package/dist/types/lib/js/EsBuildBuilder.d.ts +1 -1
- package/dist/types/lib/js/EsBuildBuilder.d.ts.map +1 -1
- package/dist/types/lib/js/EvalExecutor.d.ts +1 -1
- package/dist/types/lib/js/EvalExecutor.d.ts.map +1 -1
- package/dist/types/lib/js/JsCodeRunner.d.ts +2 -2
- package/dist/types/lib/js/JsCodeRunner.d.ts.map +1 -1
- package/dist/types/lib/migrations/MigrationExecutionFacade.d.ts +13 -8
- package/dist/types/lib/migrations/MigrationExecutionFacade.d.ts.map +1 -1
- package/dist/types/lib/migrations/MigrationRebaseFacade.d.ts +5 -4
- package/dist/types/lib/migrations/MigrationRebaseFacade.d.ts.map +1 -1
- package/dist/types/lib/migrations/MigrationSnapshotFacade.d.ts +28 -0
- package/dist/types/lib/migrations/MigrationSnapshotFacade.d.ts.map +1 -0
- package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts +2 -2
- package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts.map +1 -1
- package/dist/types/lib/project/RemoteProjectProvider.d.ts +1 -1
- package/dist/types/lib/project/RemoteProjectProvider.d.ts.map +1 -1
- package/dist/types/lib/project/RemoteProjectResolver.d.ts +2 -2
- package/dist/types/lib/project/RemoteProjectResolver.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/EntityInfo.d.ts +1 -1
- package/dist/types/lib/project/docs/components/EntityInfo.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/OnDelete.d.ts +1 -1
- package/dist/types/lib/project/docs/components/OnDelete.d.ts.map +1 -1
- package/dist/types/lib/schema/SchemaLoader.d.ts +2 -2
- package/dist/types/lib/schema/SchemaLoader.d.ts.map +1 -1
- package/dist/types/lib/tenant/TenantClient.d.ts +15 -0
- package/dist/types/lib/tenant/TenantClient.d.ts.map +1 -1
- package/dist/types/lib/tenant/TenantConfigApplier.d.ts +18 -0
- package/dist/types/lib/tenant/TenantConfigApplier.d.ts.map +1 -0
- package/dist/types/lib/tenant/TenantConfigLoader.d.ts +16 -0
- package/dist/types/lib/tenant/TenantConfigLoader.d.ts.map +1 -0
- package/dist/types/lib/tenant/tenantConfig.d.ts +74 -0
- package/dist/types/lib/tenant/tenantConfig.d.ts.map +1 -0
- package/dist/types/lib/transfer/DataTransferClient.d.ts +1 -1
- package/dist/types/lib/transfer/DataTransferClient.d.ts.map +1 -1
- package/dist/types/lib/workspace/WorkspaceResolver.d.ts +2 -2
- package/dist/types/lib/workspace/WorkspaceResolver.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -15
- package/src/commands/actions/ActionsGetEventCommand.ts +2 -2
- package/src/commands/actions/ActionsListFailedEventsCommand.ts +2 -2
- package/src/commands/actions/ActionsListVariablesCommand.ts +2 -2
- package/src/commands/actions/ActionsRetryEventCommand.ts +2 -2
- package/src/commands/actions/ActionsSetVariablesCommand.ts +2 -2
- package/src/commands/actions/ActionsStopEventCommand.ts +2 -2
- package/src/commands/deploy/DeployCommand.ts +13 -8
- package/src/commands/deploy/index.ts +1 -1
- package/src/commands/index.ts +6 -5
- package/src/commands/migrations/MigrationAmendCommand.ts +38 -10
- package/src/commands/migrations/MigrationDescribeCommand.ts +1 -1
- package/src/commands/migrations/MigrationDiffCommand.ts +50 -6
- package/src/commands/migrations/MigrationExecuteCommand.ts +6 -1
- package/src/commands/migrations/MigrationInitStateCommand.ts +34 -0
- package/src/commands/migrations/MigrationRebaseCommand.ts +1 -1
- package/src/commands/migrations/MigrationSnapshotCommand.ts +34 -0
- package/src/commands/migrations/MigrationStatusCommand.ts +3 -3
- package/src/commands/migrations/MigrationVerifySnapshotCommand.ts +28 -0
- package/src/commands/migrations/index.ts +10 -7
- package/src/commands/misc/index.ts +1 -1
- package/src/commands/project/ProjectGenerateDocumentationCommand.ts +3 -3
- package/src/commands/project/ProjectPrintSchemaCommand.ts +2 -2
- package/src/commands/project/ProjectValidateCommand.ts +3 -3
- package/src/commands/project/index.ts +3 -3
- package/src/commands/tenant/TenantApplyCommand.ts +57 -0
- package/src/commands/tenant/index.ts +1 -0
- package/src/commands/transfer/ExportCommand.ts +4 -4
- package/src/commands/transfer/ImportCommand.ts +6 -6
- package/src/commands/transfer/TransferCommand.ts +6 -6
- package/src/commands/transfer/index.ts +3 -3
- package/src/commands/workspace/WorkspaceUpdateApiCommand.ts +2 -2
- package/src/commands/workspace/index.ts +1 -1
- package/src/dic.ts +103 -37
- package/src/index.ts +1 -0
- package/src/lib/SystemClientProvider.ts +1 -1
- package/src/lib/TenantClientProvider.ts +2 -2
- package/src/lib/VersionChecker.ts +2 -2
- package/src/lib/admin/AdminClient.ts +2 -2
- package/src/lib/admin/AdminDeployer.ts +3 -3
- package/src/lib/fs/DockerComposeManager.ts +2 -2
- package/src/lib/fs/YamlHandler.ts +2 -2
- package/src/lib/js/EsBuildBuilder.ts +1 -1
- package/src/lib/js/EvalExecutor.ts +1 -1
- package/src/lib/js/JsCodeRunner.ts +2 -2
- package/src/lib/migrations/MigrationExecutionFacade.ts +117 -23
- package/src/lib/migrations/MigrationPrinter.ts +1 -1
- package/src/lib/migrations/MigrationRebaseFacade.ts +10 -3
- package/src/lib/migrations/MigrationSnapshotFacade.ts +218 -0
- package/src/lib/migrations/MigrationsStatusFacade.ts +2 -2
- package/src/lib/migrations/MigrationsValidator.ts +1 -1
- package/src/lib/project/RemoteProjectProvider.ts +1 -1
- package/src/lib/project/RemoteProjectResolver.ts +3 -3
- package/src/lib/project/docs/components/EntityInfo.tsx +6 -6
- package/src/lib/project/docs/components/EntityLink.tsx +1 -1
- package/src/lib/project/docs/components/FieldLink.tsx +2 -2
- package/src/lib/project/docs/components/FieldPermissions.tsx +1 -1
- package/src/lib/project/docs/components/FieldType.tsx +2 -2
- package/src/lib/project/docs/components/OnDelete.tsx +3 -3
- package/src/lib/project/docs/components/ProjectInfo.tsx +3 -3
- package/src/lib/project/docs/projectDescribe.tsx +2 -2
- package/src/lib/schema/SchemaLoader.ts +2 -2
- package/src/lib/schema/SchemaValidationHelper.ts +1 -1
- package/src/lib/tenant/TenantClient.ts +123 -14
- package/src/lib/tenant/TenantConfigApplier.ts +72 -0
- package/src/lib/tenant/TenantConfigLoader.ts +41 -0
- package/src/lib/tenant/tenantConfig.ts +101 -0
- package/src/lib/transfer/DataTransferClient.ts +2 -2
- package/src/lib/workspace/WorkspaceResolver.ts +2 -2
- package/src/run.ts +6 -6
- package/src/tsconfig.json +1 -0
- package/tenant.config.example.ts +64 -0
- package/tests/cases/unit/MigrationAmendCommand.test.ts +156 -0
- package/tests/cases/unit/MigrationExecutionFacade.test.ts +81 -0
- package/tests/cases/unit/MigrationRebaseFacade.test.ts +87 -0
- package/tests/cases/unit/MigrationSnapshotFacade.test.ts +243 -0
- package/tests/tenantConfigApplier.test.ts +87 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Command, CommandConfiguration, Input } from '@contember/cli-common'
|
|
2
|
+
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver.js'
|
|
3
|
+
import { TenantClient } from '../../lib/tenant/TenantClient.js'
|
|
4
|
+
import { TenantConfigLoader } from '../../lib/tenant/TenantConfigLoader.js'
|
|
5
|
+
import { TenantConfigApplier } from '../../lib/tenant/TenantConfigApplier.js'
|
|
6
|
+
|
|
7
|
+
type Args = {
|
|
8
|
+
config?: string
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type Options = {
|
|
12
|
+
dsn?: string
|
|
13
|
+
['dry-run']?: boolean
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const DEFAULT_CONFIG_PATH = 'tenant.config.ts'
|
|
17
|
+
|
|
18
|
+
export class TenantApplyCommand extends Command<Args, Options> {
|
|
19
|
+
constructor(
|
|
20
|
+
private readonly remoteProjectResolver: RemoteProjectResolver,
|
|
21
|
+
private readonly tenantConfigLoader: TenantConfigLoader,
|
|
22
|
+
private readonly tenantConfigApplier: TenantConfigApplier,
|
|
23
|
+
) {
|
|
24
|
+
super()
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
protected configure(configuration: CommandConfiguration<Args, Options>): void {
|
|
28
|
+
configuration.description('Apply declarative tenant configuration (global config, identity providers, mail templates)')
|
|
29
|
+
configuration.argument('config').optional().description(`Path to the tenant config file (default: ${DEFAULT_CONFIG_PATH})`)
|
|
30
|
+
configuration.option('dsn').valueRequired().description('Project DSN. Falls back to CONTEMBER_* environment variables.')
|
|
31
|
+
configuration.option('dry-run').valueNone().description('Print the actions that would be performed without executing them.')
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
protected async execute(input: Input<Args, Options>): Promise<void | number> {
|
|
35
|
+
const configPath = input.getArgument('config') ?? DEFAULT_CONFIG_PATH
|
|
36
|
+
const dsn = input.getOption('dsn')
|
|
37
|
+
const dryRun = input.getOption('dry-run') === true
|
|
38
|
+
|
|
39
|
+
const remoteProject = this.remoteProjectResolver.resolve(dsn)
|
|
40
|
+
if (!remoteProject) {
|
|
41
|
+
throw `Project not defined. Please provide a DSN (--dsn) or set CONTEMBER_* environment variables.`
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const config = await this.tenantConfigLoader.loadConfig(configPath)
|
|
45
|
+
const client = TenantClient.create(remoteProject.endpoint, remoteProject.token)
|
|
46
|
+
|
|
47
|
+
console.log(`Applying tenant config from ${configPath}`)
|
|
48
|
+
console.log(`API URL: ${remoteProject.endpoint}`)
|
|
49
|
+
console.log('')
|
|
50
|
+
|
|
51
|
+
await this.tenantConfigApplier.apply(client, config, { dryRun })
|
|
52
|
+
|
|
53
|
+
console.log('')
|
|
54
|
+
console.log(dryRun ? 'Dry run complete. No changes were made.' : 'Tenant configuration applied.')
|
|
55
|
+
return 0
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TenantApplyCommand.js'
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command, CommandConfiguration, Input } from '@contember/cli-common'
|
|
2
2
|
import { createWriteStream } from 'node:fs'
|
|
3
|
-
import { maskToken } from '../../lib/maskToken'
|
|
3
|
+
import { maskToken } from '../../lib/maskToken.js'
|
|
4
4
|
import { pipeline } from 'node:stream/promises'
|
|
5
|
-
import { printProgressLine } from '../../lib/transfer/stdio'
|
|
5
|
+
import { printProgressLine } from '../../lib/transfer/stdio.js'
|
|
6
6
|
import { createGunzip, createGzip } from 'node:zlib'
|
|
7
|
-
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver'
|
|
8
|
-
import { DataTransferClient } from '../../lib/transfer/DataTransferClient'
|
|
7
|
+
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver.js'
|
|
8
|
+
import { DataTransferClient } from '../../lib/transfer/DataTransferClient.js'
|
|
9
9
|
import { Readable } from 'node:stream'
|
|
10
10
|
|
|
11
11
|
type Args = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Command, CommandConfiguration, Input } from '@contember/cli-common'
|
|
2
2
|
import { createReadStream } from 'node:fs'
|
|
3
3
|
import { createGunzip } from 'node:zlib'
|
|
4
|
-
import { confirmImport } from './utils'
|
|
5
|
-
import { maskToken } from '../../lib/maskToken'
|
|
6
|
-
import { printProgressLine } from '../../lib/transfer/stdio'
|
|
7
|
-
import { readStream } from '../../lib/stream'
|
|
8
|
-
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver'
|
|
9
|
-
import { DataTransferClient } from '../../lib/transfer/DataTransferClient'
|
|
4
|
+
import { confirmImport } from './utils.js'
|
|
5
|
+
import { maskToken } from '../../lib/maskToken.js'
|
|
6
|
+
import { printProgressLine } from '../../lib/transfer/stdio.js'
|
|
7
|
+
import { readStream } from '../../lib/stream.js'
|
|
8
|
+
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver.js'
|
|
9
|
+
import { DataTransferClient } from '../../lib/transfer/DataTransferClient.js'
|
|
10
10
|
|
|
11
11
|
type Args = {
|
|
12
12
|
file: string
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command, CommandConfiguration, Input } from '@contember/cli-common'
|
|
2
|
-
import { confirmImport } from './utils'
|
|
3
|
-
import { maskToken } from '../../lib/maskToken'
|
|
4
|
-
import { printProgressLine } from '../../lib/transfer/stdio'
|
|
5
|
-
import { readStream } from '../../lib/stream'
|
|
2
|
+
import { confirmImport } from './utils.js'
|
|
3
|
+
import { maskToken } from '../../lib/maskToken.js'
|
|
4
|
+
import { printProgressLine } from '../../lib/transfer/stdio.js'
|
|
5
|
+
import { readStream } from '../../lib/stream.js'
|
|
6
6
|
import { createGunzip } from 'node:zlib'
|
|
7
|
-
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver'
|
|
8
|
-
import { DataTransferClient } from '../../lib/transfer/DataTransferClient'
|
|
7
|
+
import { RemoteProjectResolver } from '../../lib/project/RemoteProjectResolver.js'
|
|
8
|
+
import { DataTransferClient } from '../../lib/transfer/DataTransferClient.js'
|
|
9
9
|
import { Duplex, Readable } from 'node:stream'
|
|
10
10
|
|
|
11
11
|
type Args = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './ExportCommand'
|
|
2
|
-
export * from './ImportCommand'
|
|
3
|
-
export * from './TransferCommand'
|
|
1
|
+
export * from './ExportCommand.js'
|
|
2
|
+
export * from './ImportCommand.js'
|
|
3
|
+
export * from './TransferCommand.js'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command, CommandConfiguration, Input, PackageWorkspaceResolver } from '@contember/cli-common'
|
|
2
|
-
import { DockerComposeManager } from '../../lib/fs/DockerComposeManager'
|
|
3
|
-
import { contemberDockerImages } from '../../consts'
|
|
2
|
+
import { DockerComposeManager } from '../../lib/fs/DockerComposeManager.js'
|
|
3
|
+
import { contemberDockerImages } from '../../consts.js'
|
|
4
4
|
|
|
5
5
|
type Args = {
|
|
6
6
|
version: string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './WorkspaceUpdateApiCommand'
|
|
1
|
+
export * from './WorkspaceUpdateApiCommand.js'
|
package/src/dic.ts
CHANGED
|
@@ -12,19 +12,21 @@ import {
|
|
|
12
12
|
ModificationHandlerFactory,
|
|
13
13
|
SchemaDiffer,
|
|
14
14
|
SchemaMigrator,
|
|
15
|
+
SchemaStateManager,
|
|
15
16
|
SchemaVersionBuilder,
|
|
17
|
+
SnapshotManager,
|
|
16
18
|
VERSION_LATEST,
|
|
17
19
|
} from '@contember/migrations-client'
|
|
18
|
-
import { JsCodeRunner } from './lib/js/JsCodeRunner'
|
|
19
|
-
import { EsBuildBuilder } from './lib/js/EsBuildBuilder'
|
|
20
|
-
import { EvalExecutor } from './lib/js/EvalExecutor'
|
|
21
|
-
import { AdminDeployer } from './lib/admin/AdminDeployer'
|
|
22
|
-
import { RemoteProjectResolver } from './lib/project/RemoteProjectResolver'
|
|
23
|
-
import { CliEnv } from './lib/env'
|
|
24
|
-
import { AdminClient } from './lib/admin/AdminClient'
|
|
25
|
-
import { FileSystem } from './lib/fs/FileSystem'
|
|
26
|
-
import { WorkspaceResolver } from './lib/workspace/WorkspaceResolver'
|
|
27
|
-
import { YamlHandler } from './lib/fs/YamlHandler'
|
|
20
|
+
import { JsCodeRunner } from './lib/js/JsCodeRunner.js'
|
|
21
|
+
import { EsBuildBuilder } from './lib/js/EsBuildBuilder.js'
|
|
22
|
+
import { EvalExecutor } from './lib/js/EvalExecutor.js'
|
|
23
|
+
import { AdminDeployer } from './lib/admin/AdminDeployer.js'
|
|
24
|
+
import { RemoteProjectResolver } from './lib/project/RemoteProjectResolver.js'
|
|
25
|
+
import { CliEnv } from './lib/env.js'
|
|
26
|
+
import { AdminClient } from './lib/admin/AdminClient.js'
|
|
27
|
+
import { FileSystem } from './lib/fs/FileSystem.js'
|
|
28
|
+
import { WorkspaceResolver } from './lib/workspace/WorkspaceResolver.js'
|
|
29
|
+
import { YamlHandler } from './lib/fs/YamlHandler.js'
|
|
28
30
|
import {
|
|
29
31
|
DeployCommand,
|
|
30
32
|
MigrationAmendCommand,
|
|
@@ -32,22 +34,26 @@ import {
|
|
|
32
34
|
MigrationDescribeCommand,
|
|
33
35
|
MigrationDiffCommand,
|
|
34
36
|
MigrationExecuteCommand,
|
|
37
|
+
MigrationInitStateCommand,
|
|
35
38
|
MigrationRebaseCommand,
|
|
39
|
+
MigrationSnapshotCommand,
|
|
36
40
|
MigrationStatusCommand,
|
|
41
|
+
MigrationVerifySnapshotCommand,
|
|
37
42
|
ProjectGenerateDocumentationCommand,
|
|
38
43
|
ProjectPrintSchemaCommand,
|
|
39
44
|
ProjectValidateCommand,
|
|
40
45
|
VersionCommand,
|
|
41
46
|
WorkspaceUpdateApiCommand,
|
|
42
|
-
} from './commands'
|
|
43
|
-
import { MigrationExecutionFacade } from './lib/migrations/MigrationExecutionFacade'
|
|
44
|
-
import { MigrationPrinter } from './lib/migrations/MigrationPrinter'
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
47
|
+
} from './commands/index.js'
|
|
48
|
+
import { MigrationExecutionFacade } from './lib/migrations/MigrationExecutionFacade.js'
|
|
49
|
+
import { MigrationPrinter } from './lib/migrations/MigrationPrinter.js'
|
|
50
|
+
import { MigrationSnapshotFacade } from './lib/migrations/MigrationSnapshotFacade.js'
|
|
51
|
+
import { MigrationsStatusFacade } from './lib/migrations/MigrationsStatusFacade.js'
|
|
52
|
+
import { ImportSchemaLoader, SchemaLoader, TranspilingSchemaLoader } from './lib/schema/SchemaLoader.js'
|
|
53
|
+
import { MigrationsValidator } from './lib/migrations/MigrationsValidator.js'
|
|
54
|
+
import { MigrationRebaseFacade } from './lib/migrations/MigrationRebaseFacade.js'
|
|
55
|
+
import { DataTransferClient } from './lib/transfer/DataTransferClient.js'
|
|
56
|
+
import { ExportCommand, ImportCommand, TransferCommand } from './commands/transfer/index.js'
|
|
51
57
|
import {
|
|
52
58
|
Application,
|
|
53
59
|
Bun,
|
|
@@ -60,18 +66,21 @@ import {
|
|
|
60
66
|
Yarn,
|
|
61
67
|
YarnClassic,
|
|
62
68
|
} from '@contember/cli-common'
|
|
63
|
-
import { VersionChecker } from './lib/VersionChecker'
|
|
64
|
-
import { DockerComposeManager } from './lib/fs/DockerComposeManager'
|
|
65
|
-
import { RemoteProjectProvider } from './lib/project/RemoteProjectProvider'
|
|
66
|
-
import { SystemClientProvider } from './lib/SystemClientProvider'
|
|
67
|
-
import { TenantClientProvider } from './lib/TenantClientProvider'
|
|
68
|
-
import { Workspace } from './lib/workspace/Workspace'
|
|
69
|
-
import { ActionsListVariablesCommand } from './commands/actions/ActionsListVariablesCommand'
|
|
70
|
-
import { ActionsSetVariablesCommand } from './commands/actions/ActionsSetVariablesCommand'
|
|
71
|
-
import { ActionsListFailedEventsCommand } from './commands/actions/ActionsListFailedEventsCommand'
|
|
72
|
-
import { ActionsRetryEventCommand } from './commands/actions/ActionsRetryEventCommand'
|
|
73
|
-
import { ActionsGetEventCommand } from './commands/actions/ActionsGetEventCommand'
|
|
74
|
-
import { ActionsStopEventCommand } from './commands/actions/ActionsStopEventCommand'
|
|
69
|
+
import { VersionChecker } from './lib/VersionChecker.js'
|
|
70
|
+
import { DockerComposeManager } from './lib/fs/DockerComposeManager.js'
|
|
71
|
+
import { RemoteProjectProvider } from './lib/project/RemoteProjectProvider.js'
|
|
72
|
+
import { SystemClientProvider } from './lib/SystemClientProvider.js'
|
|
73
|
+
import { TenantClientProvider } from './lib/TenantClientProvider.js'
|
|
74
|
+
import { Workspace } from './lib/workspace/Workspace.js'
|
|
75
|
+
import { ActionsListVariablesCommand } from './commands/actions/ActionsListVariablesCommand.js'
|
|
76
|
+
import { ActionsSetVariablesCommand } from './commands/actions/ActionsSetVariablesCommand.js'
|
|
77
|
+
import { ActionsListFailedEventsCommand } from './commands/actions/ActionsListFailedEventsCommand.js'
|
|
78
|
+
import { ActionsRetryEventCommand } from './commands/actions/ActionsRetryEventCommand.js'
|
|
79
|
+
import { ActionsGetEventCommand } from './commands/actions/ActionsGetEventCommand.js'
|
|
80
|
+
import { ActionsStopEventCommand } from './commands/actions/ActionsStopEventCommand.js'
|
|
81
|
+
import { TenantApplyCommand } from './commands/tenant/index.js'
|
|
82
|
+
import { ImportTenantConfigLoader, TranspilingTenantConfigLoader } from './lib/tenant/TenantConfigLoader.js'
|
|
83
|
+
import { TenantConfigApplier } from './lib/tenant/TenantConfigApplier.js'
|
|
75
84
|
|
|
76
85
|
const jsSample = `
|
|
77
86
|
export const query = \`\`
|
|
@@ -138,7 +147,12 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
138
147
|
.addService('modificationHandlerFactory', () => new ModificationHandlerFactory(ModificationHandlerFactory.defaultFactoryMap))
|
|
139
148
|
.addService('schemaMigrator', ({ modificationHandlerFactory }) => new SchemaMigrator(modificationHandlerFactory))
|
|
140
149
|
.addService('migrationsResolver', ({ migrationFilesManager }) => new MigrationsResolver(migrationFilesManager))
|
|
141
|
-
.addService('
|
|
150
|
+
.addService('schemaStateManager', ({ workspace }) => new SchemaStateManager(workspace.migrationsDir + '/state'))
|
|
151
|
+
.addService('snapshotManager', ({ workspace }) => new SnapshotManager(workspace.migrationsDir + '/snapshot.json'))
|
|
152
|
+
.addService(
|
|
153
|
+
'schemaVersionBuilder',
|
|
154
|
+
({ migrationsResolver, schemaMigrator, schemaStateManager }) => new SchemaVersionBuilder(migrationsResolver, schemaMigrator, schemaStateManager),
|
|
155
|
+
)
|
|
142
156
|
.addService('schemaDiffer', ({ schemaMigrator }) =>
|
|
143
157
|
new SchemaDiffer(schemaMigrator, {
|
|
144
158
|
maxPatchSize: env.migrationsOptions?.maxPatchSize,
|
|
@@ -153,6 +167,18 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
153
167
|
.addService('migrationPrinter', ({ migrationDescriber }) => new MigrationPrinter(migrationDescriber))
|
|
154
168
|
.addService('migrationsExecutor', () => new MigrationExecutor())
|
|
155
169
|
.addService('migrationsStatusResolver', () => new MigrationsStatusResolver())
|
|
170
|
+
.addService(
|
|
171
|
+
'migrationSnapshotFacade',
|
|
172
|
+
({ migrationsResolver, schemaVersionBuilder, schemaDiffer, schemaMigrator, schemaStateManager, snapshotManager }) =>
|
|
173
|
+
new MigrationSnapshotFacade(
|
|
174
|
+
migrationsResolver,
|
|
175
|
+
schemaVersionBuilder,
|
|
176
|
+
schemaDiffer,
|
|
177
|
+
schemaMigrator,
|
|
178
|
+
schemaStateManager,
|
|
179
|
+
snapshotManager,
|
|
180
|
+
),
|
|
181
|
+
)
|
|
156
182
|
.addService(
|
|
157
183
|
'migrationsStatusFacade',
|
|
158
184
|
({ systemClientProvider, migrationsResolver, migrationsStatusResolver, migrationPrinter }) =>
|
|
@@ -168,6 +194,8 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
168
194
|
migrationPrinter,
|
|
169
195
|
migrationsExecutor,
|
|
170
196
|
migrationsStatusFacade,
|
|
197
|
+
schemaStateManager,
|
|
198
|
+
migrationSnapshotFacade,
|
|
171
199
|
}) =>
|
|
172
200
|
new MigrationExecutionFacade(
|
|
173
201
|
systemClientProvider,
|
|
@@ -177,13 +205,15 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
177
205
|
migrationPrinter,
|
|
178
206
|
migrationsExecutor,
|
|
179
207
|
migrationsStatusFacade,
|
|
208
|
+
schemaStateManager,
|
|
209
|
+
migrationSnapshotFacade,
|
|
180
210
|
),
|
|
181
211
|
)
|
|
182
212
|
.addService('migrationsValidator', ({ migrationDescriber, schemaMigrator }) => new MigrationsValidator(migrationDescriber, schemaMigrator))
|
|
183
213
|
.addService(
|
|
184
214
|
'migrationRebaseFacade',
|
|
185
|
-
({ schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager }) =>
|
|
186
|
-
new MigrationRebaseFacade(schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager),
|
|
215
|
+
({ schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager, schemaStateManager }) =>
|
|
216
|
+
new MigrationRebaseFacade(schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager, schemaStateManager),
|
|
187
217
|
)
|
|
188
218
|
.addService(
|
|
189
219
|
'schemaLoader',
|
|
@@ -209,6 +239,7 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
209
239
|
migrationsValidator,
|
|
210
240
|
migrationPrinter,
|
|
211
241
|
schemaMigrator,
|
|
242
|
+
schemaStateManager,
|
|
212
243
|
}) =>
|
|
213
244
|
new MigrationAmendCommand(
|
|
214
245
|
migrationsResolver,
|
|
@@ -220,6 +251,7 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
220
251
|
migrationsValidator,
|
|
221
252
|
migrationPrinter,
|
|
222
253
|
schemaMigrator,
|
|
254
|
+
schemaStateManager,
|
|
223
255
|
),
|
|
224
256
|
)
|
|
225
257
|
.addService('migrationBlankCommand', ({ migrationCreator }) => new MigrationBlankCommand(migrationCreator))
|
|
@@ -230,14 +262,31 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
230
262
|
)
|
|
231
263
|
.addService(
|
|
232
264
|
'migrationDiffCommand',
|
|
233
|
-
({ schemaLoader, schemaVersionBuilder, migrationCreator, migrationPrinter, migrationExecutionFacade }) =>
|
|
234
|
-
new MigrationDiffCommand(
|
|
265
|
+
({ schemaLoader, schemaVersionBuilder, migrationCreator, migrationPrinter, migrationExecutionFacade, schemaStateManager, migrationsResolver }) =>
|
|
266
|
+
new MigrationDiffCommand(
|
|
267
|
+
schemaLoader,
|
|
268
|
+
schemaVersionBuilder,
|
|
269
|
+
migrationCreator,
|
|
270
|
+
migrationPrinter,
|
|
271
|
+
migrationExecutionFacade,
|
|
272
|
+
schemaStateManager,
|
|
273
|
+
migrationsResolver,
|
|
274
|
+
),
|
|
235
275
|
)
|
|
236
276
|
.addService('migrationExecuteCommand', ({ migrationExecutionFacade }) => new MigrationExecuteCommand(migrationExecutionFacade))
|
|
277
|
+
.addService(
|
|
278
|
+
'migrationInitStateCommand',
|
|
279
|
+
({ schemaLoader, schemaStateManager }) => new MigrationInitStateCommand(schemaLoader, schemaStateManager),
|
|
280
|
+
)
|
|
237
281
|
.addService(
|
|
238
282
|
'migrationRebaseCommand',
|
|
239
283
|
({ migrationsResolver, migrationRebaseFacade }) => new MigrationRebaseCommand(migrationsResolver, migrationRebaseFacade),
|
|
240
284
|
)
|
|
285
|
+
.addService('migrationSnapshotCommand', ({ migrationSnapshotFacade }) => new MigrationSnapshotCommand(migrationSnapshotFacade))
|
|
286
|
+
.addService(
|
|
287
|
+
'migrationVerifySnapshotCommand',
|
|
288
|
+
({ migrationSnapshotFacade }) => new MigrationVerifySnapshotCommand(migrationSnapshotFacade),
|
|
289
|
+
)
|
|
241
290
|
.addService(
|
|
242
291
|
'migrationStatusCommand',
|
|
243
292
|
({ migrationsStatusFacade, migrationFilesManager, systemClientProvider, migrationPrinter }) =>
|
|
@@ -270,6 +319,16 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
270
319
|
.addService('actionsRetryEvent', ({ remoteProjectResolver }) => new ActionsRetryEventCommand(remoteProjectResolver))
|
|
271
320
|
.addService('actionsGetEvent', ({ remoteProjectResolver }) => new ActionsGetEventCommand(remoteProjectResolver))
|
|
272
321
|
.addService('actionsStopEvent', ({ remoteProjectResolver }) => new ActionsStopEventCommand(remoteProjectResolver))
|
|
322
|
+
.addService(
|
|
323
|
+
'tenantConfigLoader',
|
|
324
|
+
({ jsCodeRunner }) => runtime === 'bun' ? new ImportTenantConfigLoader() : new TranspilingTenantConfigLoader(jsCodeRunner),
|
|
325
|
+
)
|
|
326
|
+
.addService('tenantConfigApplier', () => new TenantConfigApplier())
|
|
327
|
+
.addService(
|
|
328
|
+
'tenantApplyCommand',
|
|
329
|
+
({ remoteProjectResolver, tenantConfigLoader, tenantConfigApplier }) =>
|
|
330
|
+
new TenantApplyCommand(remoteProjectResolver, tenantConfigLoader, tenantConfigApplier),
|
|
331
|
+
)
|
|
273
332
|
.addService('commandList', dic => {
|
|
274
333
|
const commands: CommandFactoryList = {
|
|
275
334
|
['deploy']: () => dic.deployCommand,
|
|
@@ -280,9 +339,12 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
280
339
|
['migrations:diff']: () => dic.migrationDiffCommand,
|
|
281
340
|
['migrations:amend']: () => dic.migrationAmendCommand,
|
|
282
341
|
['migrations:blank']: () => dic.migrationBlankCommand,
|
|
342
|
+
['migrations:init-state']: () => dic.migrationInitStateCommand,
|
|
283
343
|
['migrations:describe']: () => dic.migrationDescribeCommand,
|
|
284
344
|
['migrations:execute']: () => dic.migrationExecuteCommand,
|
|
285
345
|
['migrations:rebase']: () => dic.migrationRebaseCommand,
|
|
346
|
+
['migrations:snapshot']: () => dic.migrationSnapshotCommand,
|
|
347
|
+
['migrations:verify-snapshot']: () => dic.migrationVerifySnapshotCommand,
|
|
286
348
|
['migrations:status']: () => dic.migrationStatusCommand,
|
|
287
349
|
['workspace:update:api']: () => dic.workspaceUpdateCommand,
|
|
288
350
|
['project:validate']: () => dic.projectValidateCommand,
|
|
@@ -294,6 +356,7 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
294
356
|
['actions:retry-event']: () => dic.actionsRetryEvent,
|
|
295
357
|
['actions:get-event']: () => dic.actionsGetEvent,
|
|
296
358
|
['actions:stop-event']: () => dic.actionsStopEvent,
|
|
359
|
+
['tenant:apply']: () => dic.tenantApplyCommand,
|
|
297
360
|
}
|
|
298
361
|
return commands
|
|
299
362
|
})
|
|
@@ -309,7 +372,10 @@ export const createContainer = ({ env, version, runtime, workspace }: {
|
|
|
309
372
|
`Contember CLI version ${version}`,
|
|
310
373
|
{
|
|
311
374
|
beforeRun: async ({ name }) => {
|
|
312
|
-
if (
|
|
375
|
+
if (
|
|
376
|
+
!process.env.CONTEMBER_SKIP_VERSION_CHECK
|
|
377
|
+
&& !['deploy', 'version', 'data:export', 'data:import', 'data:transfer', 'tenant:apply'].includes(name)
|
|
378
|
+
) {
|
|
313
379
|
await versionChecker.checkVersions()
|
|
314
380
|
}
|
|
315
381
|
},
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib/tenant/tenantConfig.js'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TenantClient } from './tenant/TenantClient'
|
|
2
|
-
import { RemoteProjectProvider } from './project/RemoteProjectProvider'
|
|
1
|
+
import { TenantClient } from './tenant/TenantClient.js'
|
|
2
|
+
import { RemoteProjectProvider } from './project/RemoteProjectProvider.js'
|
|
3
3
|
|
|
4
4
|
export class TenantClientProvider {
|
|
5
5
|
constructor(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { join, relative } from 'node:path'
|
|
2
2
|
import * as semver from 'semver'
|
|
3
3
|
import { PackageWorkspaceResolver } from '@contember/cli-common'
|
|
4
|
-
import { DockerComposeManager } from './fs/DockerComposeManager'
|
|
5
|
-
import { contemberDockerImages } from '../consts'
|
|
4
|
+
import { DockerComposeManager } from './fs/DockerComposeManager.js'
|
|
5
|
+
import { contemberDockerImages } from '../consts.js'
|
|
6
6
|
|
|
7
7
|
export class VersionChecker {
|
|
8
8
|
constructor(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { maskToken } from '../maskToken'
|
|
2
|
-
import { RemoteProjectProvider } from '../project/RemoteProjectProvider'
|
|
1
|
+
import { maskToken } from '../maskToken.js'
|
|
2
|
+
import { RemoteProjectProvider } from '../project/RemoteProjectProvider.js'
|
|
3
3
|
|
|
4
4
|
export type AdminFiles = Array<{ path: string; data: string }>
|
|
5
5
|
export class AdminClient {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AdminClient, AdminFiles } from './AdminClient'
|
|
2
|
-
import { FileSystem } from '../fs/FileSystem'
|
|
3
|
-
import { RemoteProjectProvider } from '../project/RemoteProjectProvider'
|
|
1
|
+
import { AdminClient, AdminFiles } from './AdminClient.js'
|
|
2
|
+
import { FileSystem } from '../fs/FileSystem.js'
|
|
3
|
+
import { RemoteProjectProvider } from '../project/RemoteProjectProvider.js'
|
|
4
4
|
|
|
5
5
|
export class AdminDeployer {
|
|
6
6
|
constructor(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dirname, join } from 'node:path'
|
|
2
2
|
import jsyaml from 'js-yaml'
|
|
3
|
-
import { FileSystem } from './FileSystem'
|
|
4
|
-
import { JsonUpdateCallback, YamlHandler } from './YamlHandler'
|
|
3
|
+
import { FileSystem } from './FileSystem.js'
|
|
4
|
+
import { JsonUpdateCallback, YamlHandler } from './YamlHandler.js'
|
|
5
5
|
|
|
6
6
|
export interface DockerComposeServiceConfig {
|
|
7
7
|
image?: string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { readFile, writeFile } from 'node:fs/promises'
|
|
2
2
|
import jsyaml from 'js-yaml'
|
|
3
|
-
import { FileSystem } from './FileSystem'
|
|
3
|
+
import { FileSystem } from './FileSystem.js'
|
|
4
4
|
import YAWN from 'yawn-yaml'
|
|
5
|
-
import { JSONObject, JSONPrimitive } from '../json'
|
|
5
|
+
import { JSONObject, JSONPrimitive } from '../json.js'
|
|
6
6
|
import { Merger } from '@contember/config-loader'
|
|
7
7
|
|
|
8
8
|
export type JsonUpdateCallback<Value = JSONObject> = (
|