@webiny/project 0.0.0-unstable.61c048f412
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/GracefulError.d.ts +4 -0
- package/GracefulError.js +20 -0
- package/GracefulError.js.map +1 -0
- package/LICENSE +21 -0
- package/ProjectError.d.ts +4 -0
- package/ProjectError.js +18 -0
- package/ProjectError.js.map +1 -0
- package/ProjectSdk.d.ts +46 -0
- package/ProjectSdk.js +131 -0
- package/ProjectSdk.js.map +1 -0
- package/README.md +11 -0
- package/abstractions/createAbstraction.d.ts +2 -0
- package/abstractions/createAbstraction.js +6 -0
- package/abstractions/createAbstraction.js.map +1 -0
- package/abstractions/features/BuildApp.d.ts +16 -0
- package/abstractions/features/BuildApp.js +4 -0
- package/abstractions/features/BuildApp.js.map +1 -0
- package/abstractions/features/BuildExtension.d.ts +7 -0
- package/abstractions/features/BuildExtension.js +4 -0
- package/abstractions/features/BuildExtension.js.map +1 -0
- package/abstractions/features/DeployApp.d.ts +21 -0
- package/abstractions/features/DeployApp.js +4 -0
- package/abstractions/features/DeployApp.js.map +1 -0
- package/abstractions/features/DestroyApp.d.ts +18 -0
- package/abstractions/features/DestroyApp.js +4 -0
- package/abstractions/features/DestroyApp.js.map +1 -0
- package/abstractions/features/ExportStack.d.ts +18 -0
- package/abstractions/features/ExportStack.js +4 -0
- package/abstractions/features/ExportStack.js.map +1 -0
- package/abstractions/features/GetApp.d.ts +13 -0
- package/abstractions/features/GetApp.js +4 -0
- package/abstractions/features/GetApp.js.map +1 -0
- package/abstractions/features/GetAppOutput.d.ts +18 -0
- package/abstractions/features/GetAppOutput.js +4 -0
- package/abstractions/features/GetAppOutput.js.map +1 -0
- package/abstractions/features/GetAppStackOutput.d.ts +21 -0
- package/abstractions/features/GetAppStackOutput.js +9 -0
- package/abstractions/features/GetAppStackOutput.js.map +1 -0
- package/abstractions/features/GetLogger.d.ts +10 -0
- package/abstractions/features/GetLogger.js +4 -0
- package/abstractions/features/GetLogger.js.map +1 -0
- package/abstractions/features/GetProductionEnvironments.d.ts +7 -0
- package/abstractions/features/GetProductionEnvironments.js +4 -0
- package/abstractions/features/GetProductionEnvironments.js.map +1 -0
- package/abstractions/features/GetProject.d.ts +10 -0
- package/abstractions/features/GetProject.js +4 -0
- package/abstractions/features/GetProject.js.map +1 -0
- package/abstractions/features/GetProjectConfig.d.ts +14 -0
- package/abstractions/features/GetProjectConfig.js +4 -0
- package/abstractions/features/GetProjectConfig.js.map +1 -0
- package/abstractions/features/GetProjectInfo.d.ts +13 -0
- package/abstractions/features/GetProjectInfo.js +4 -0
- package/abstractions/features/GetProjectInfo.js.map +1 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js +4 -0
- package/abstractions/features/GetPulumiResourceNamePrefix.js.map +1 -0
- package/abstractions/features/InstallExtension.d.ts +10 -0
- package/abstractions/features/InstallExtension.js +4 -0
- package/abstractions/features/InstallExtension.js.map +1 -0
- package/abstractions/features/IsCi.d.ts +8 -0
- package/abstractions/features/IsCi.js +4 -0
- package/abstractions/features/IsCi.js.map +1 -0
- package/abstractions/features/IsTelemetryEnabled.d.ts +8 -0
- package/abstractions/features/IsTelemetryEnabled.js +4 -0
- package/abstractions/features/IsTelemetryEnabled.js.map +1 -0
- package/abstractions/features/IsWcpEnabled.d.ts +8 -0
- package/abstractions/features/IsWcpEnabled.js +4 -0
- package/abstractions/features/IsWcpEnabled.js.map +1 -0
- package/abstractions/features/IsWebinyJsRepo.d.ts +8 -0
- package/abstractions/features/IsWebinyJsRepo.js +4 -0
- package/abstractions/features/IsWebinyJsRepo.js.map +1 -0
- package/abstractions/features/RefreshApp.d.ts +18 -0
- package/abstractions/features/RefreshApp.js +4 -0
- package/abstractions/features/RefreshApp.js.map +1 -0
- package/abstractions/features/RunPulumiCommand.d.ts +19 -0
- package/abstractions/features/RunPulumiCommand.js +4 -0
- package/abstractions/features/RunPulumiCommand.js.map +1 -0
- package/abstractions/features/ValidateProjectConfig.d.ts +10 -0
- package/abstractions/features/ValidateProjectConfig.js +4 -0
- package/abstractions/features/ValidateProjectConfig.js.map +1 -0
- package/abstractions/features/Watch.d.ts +31 -0
- package/abstractions/features/Watch.js +4 -0
- package/abstractions/features/Watch.js.map +1 -0
- package/abstractions/features/hooks/AdminAfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/AdminAfterBuild.js +4 -0
- package/abstractions/features/hooks/AdminAfterBuild.js.map +1 -0
- package/abstractions/features/hooks/AdminAfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/AdminAfterDeploy.js +4 -0
- package/abstractions/features/hooks/AdminAfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/AdminBeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/AdminBeforeBuild.js +4 -0
- package/abstractions/features/hooks/AdminBeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/AdminBeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/AdminBeforeDeploy.js +4 -0
- package/abstractions/features/hooks/AdminBeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/AdminBeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/AdminBeforeWatch.js +4 -0
- package/abstractions/features/hooks/AdminBeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/AfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/AfterBuild.js +4 -0
- package/abstractions/features/hooks/AfterBuild.js.map +1 -0
- package/abstractions/features/hooks/AfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/AfterDeploy.js +4 -0
- package/abstractions/features/hooks/AfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/ApiAfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/ApiAfterBuild.js +4 -0
- package/abstractions/features/hooks/ApiAfterBuild.js.map +1 -0
- package/abstractions/features/hooks/ApiAfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/ApiAfterDeploy.js +4 -0
- package/abstractions/features/hooks/ApiAfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/ApiBeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/ApiBeforeBuild.js +4 -0
- package/abstractions/features/hooks/ApiBeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/ApiBeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/ApiBeforeDeploy.js +4 -0
- package/abstractions/features/hooks/ApiBeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/ApiBeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/ApiBeforeWatch.js +4 -0
- package/abstractions/features/hooks/ApiBeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/BeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/BeforeBuild.js +4 -0
- package/abstractions/features/hooks/BeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/BeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/BeforeDeploy.js +4 -0
- package/abstractions/features/hooks/BeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/BeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/BeforeWatch.js +4 -0
- package/abstractions/features/hooks/BeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/CoreAfterBuild.d.ts +9 -0
- package/abstractions/features/hooks/CoreAfterBuild.js +4 -0
- package/abstractions/features/hooks/CoreAfterBuild.js.map +1 -0
- package/abstractions/features/hooks/CoreAfterDeploy.d.ts +9 -0
- package/abstractions/features/hooks/CoreAfterDeploy.js +4 -0
- package/abstractions/features/hooks/CoreAfterDeploy.js.map +1 -0
- package/abstractions/features/hooks/CoreBeforeBuild.d.ts +9 -0
- package/abstractions/features/hooks/CoreBeforeBuild.js +4 -0
- package/abstractions/features/hooks/CoreBeforeBuild.js.map +1 -0
- package/abstractions/features/hooks/CoreBeforeDeploy.d.ts +9 -0
- package/abstractions/features/hooks/CoreBeforeDeploy.js +4 -0
- package/abstractions/features/hooks/CoreBeforeDeploy.js.map +1 -0
- package/abstractions/features/hooks/CoreBeforeWatch.d.ts +9 -0
- package/abstractions/features/hooks/CoreBeforeWatch.js +4 -0
- package/abstractions/features/hooks/CoreBeforeWatch.js.map +1 -0
- package/abstractions/features/hooks/index.d.ts +20 -0
- package/abstractions/features/hooks/index.js +22 -0
- package/abstractions/features/hooks/index.js.map +1 -0
- package/abstractions/features/index.d.ts +25 -0
- package/abstractions/features/index.js +27 -0
- package/abstractions/features/index.js.map +1 -0
- package/abstractions/features/pulumi/AdminPulumi.d.ts +8 -0
- package/abstractions/features/pulumi/AdminPulumi.js +4 -0
- package/abstractions/features/pulumi/AdminPulumi.js.map +1 -0
- package/abstractions/features/pulumi/ApiPulumi.d.ts +8 -0
- package/abstractions/features/pulumi/ApiPulumi.js +4 -0
- package/abstractions/features/pulumi/ApiPulumi.js.map +1 -0
- package/abstractions/features/pulumi/CorePulumi.d.ts +8 -0
- package/abstractions/features/pulumi/CorePulumi.js +4 -0
- package/abstractions/features/pulumi/CorePulumi.js.map +1 -0
- package/abstractions/features/pulumi/index.d.ts +3 -0
- package/abstractions/features/pulumi/index.js +5 -0
- package/abstractions/features/pulumi/index.js.map +1 -0
- package/abstractions/index.d.ts +2 -0
- package/abstractions/index.js +4 -0
- package/abstractions/index.js.map +1 -0
- package/abstractions/models/IAppModel.d.ts +17 -0
- package/abstractions/models/IAppModel.js +3 -0
- package/abstractions/models/IAppModel.js.map +1 -0
- package/abstractions/models/IAppPackageModel.d.ts +9 -0
- package/abstractions/models/IAppPackageModel.js +3 -0
- package/abstractions/models/IAppPackageModel.js.map +1 -0
- package/abstractions/models/IPathModel.d.ts +9 -0
- package/abstractions/models/IPathModel.js +3 -0
- package/abstractions/models/IPathModel.js.map +1 -0
- package/abstractions/models/IProjectConfigDto.d.ts +5 -0
- package/abstractions/models/IProjectConfigDto.js +3 -0
- package/abstractions/models/IProjectConfigDto.js.map +1 -0
- package/abstractions/models/IProjectConfigModel.d.ts +8 -0
- package/abstractions/models/IProjectConfigModel.js +3 -0
- package/abstractions/models/IProjectConfigModel.js.map +1 -0
- package/abstractions/models/IProjectModel.d.ts +28 -0
- package/abstractions/models/IProjectModel.js +3 -0
- package/abstractions/models/IProjectModel.js.map +1 -0
- package/abstractions/models/IUrlModel.d.ts +8 -0
- package/abstractions/models/IUrlModel.js +3 -0
- package/abstractions/models/IUrlModel.js.map +1 -0
- package/abstractions/models/IWcpEnvironmentDto.d.ts +18 -0
- package/abstractions/models/IWcpEnvironmentDto.js +3 -0
- package/abstractions/models/IWcpEnvironmentDto.js.map +1 -0
- package/abstractions/models/IWcpEnvironmentModel.d.ts +18 -0
- package/abstractions/models/IWcpEnvironmentModel.js +3 -0
- package/abstractions/models/IWcpEnvironmentModel.js.map +1 -0
- package/abstractions/models/IWcpUserDto.d.ts +18 -0
- package/abstractions/models/IWcpUserDto.js +3 -0
- package/abstractions/models/IWcpUserDto.js.map +1 -0
- package/abstractions/models/IWcpUserModel.d.ts +18 -0
- package/abstractions/models/IWcpUserModel.js +3 -0
- package/abstractions/models/IWcpUserModel.js.map +1 -0
- package/abstractions/models/IWcpUserPatDto.d.ts +9 -0
- package/abstractions/models/IWcpUserPatDto.js +3 -0
- package/abstractions/models/IWcpUserPatDto.js.map +1 -0
- package/abstractions/models/IWcpUserPatModel.d.ts +9 -0
- package/abstractions/models/IWcpUserPatModel.js +3 -0
- package/abstractions/models/IWcpUserPatModel.js.map +1 -0
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.d.ts +20 -0
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.js +3 -0
- package/abstractions/models/PackagesBuilder/IPackagesBuilder.js.map +1 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.d.ts +14 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.js +3 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcess.js.map +1 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.d.ts +16 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.js +3 -0
- package/abstractions/models/PackagesBuilder/IRunnableBuildProcesses.js.map +1 -0
- package/abstractions/models/PackagesBuilder/index.d.ts +3 -0
- package/abstractions/models/PackagesBuilder/index.js +3 -0
- package/abstractions/models/PackagesBuilder/index.js.map +1 -0
- package/abstractions/models/index.d.ts +15 -0
- package/abstractions/models/index.js +3 -0
- package/abstractions/models/index.js.map +1 -0
- package/abstractions/services/BuildAppWorkspaceService.d.ts +14 -0
- package/abstractions/services/BuildAppWorkspaceService.js +4 -0
- package/abstractions/services/BuildAppWorkspaceService.js.map +1 -0
- package/abstractions/services/BuildProjectWorkspaceService.d.ts +9 -0
- package/abstractions/services/BuildProjectWorkspaceService.js +4 -0
- package/abstractions/services/BuildProjectWorkspaceService.js.map +1 -0
- package/abstractions/services/GetAppPackagesService.d.ts +8 -0
- package/abstractions/services/GetAppPackagesService.js +4 -0
- package/abstractions/services/GetAppPackagesService.js.map +1 -0
- package/abstractions/services/GetAppService.d.ts +14 -0
- package/abstractions/services/GetAppService.js +4 -0
- package/abstractions/services/GetAppService.js.map +1 -0
- package/abstractions/services/GetCwdService.d.ts +7 -0
- package/abstractions/services/GetCwdService.js +4 -0
- package/abstractions/services/GetCwdService.js.map +1 -0
- package/abstractions/services/GetProjectConfigService.d.ts +17 -0
- package/abstractions/services/GetProjectConfigService.js +4 -0
- package/abstractions/services/GetProjectConfigService.js.map +1 -0
- package/abstractions/services/GetProjectIdService.d.ts +10 -0
- package/abstractions/services/GetProjectIdService.js +4 -0
- package/abstractions/services/GetProjectIdService.js.map +1 -0
- package/abstractions/services/GetProjectService.d.ts +11 -0
- package/abstractions/services/GetProjectService.js +4 -0
- package/abstractions/services/GetProjectService.js.map +1 -0
- package/abstractions/services/GetProjectVersionService.d.ts +10 -0
- package/abstractions/services/GetProjectVersionService.js +4 -0
- package/abstractions/services/GetProjectVersionService.js.map +1 -0
- package/abstractions/services/GetPulumiService.d.ts +14 -0
- package/abstractions/services/GetPulumiService.js +4 -0
- package/abstractions/services/GetPulumiService.js.map +1 -0
- package/abstractions/services/InitProjectSdkService.d.ts +8 -0
- package/abstractions/services/InitProjectSdkService.js +4 -0
- package/abstractions/services/InitProjectSdkService.js.map +1 -0
- package/abstractions/services/InstallExtensionService.d.ts +15 -0
- package/abstractions/services/InstallExtensionService.js +4 -0
- package/abstractions/services/InstallExtensionService.js.map +1 -0
- package/abstractions/services/IsRemotePulumiBackendService.d.ts +7 -0
- package/abstractions/services/IsRemotePulumiBackendService.js +4 -0
- package/abstractions/services/IsRemotePulumiBackendService.js.map +1 -0
- package/abstractions/services/ListAppLambdaFunctionsService.d.ts +23 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js +4 -0
- package/abstractions/services/ListAppLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/ListDeployedEnvironmentsService.d.ts +12 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js +4 -0
- package/abstractions/services/ListDeployedEnvironmentsService.js.map +1 -0
- package/abstractions/services/ListPackagesInAppWorkspaceService.d.ts +18 -0
- package/abstractions/services/ListPackagesInAppWorkspaceService.js +4 -0
- package/abstractions/services/ListPackagesInAppWorkspaceService.js.map +1 -0
- package/abstractions/services/ListPackagesService.d.ts +23 -0
- package/abstractions/services/ListPackagesService.js +4 -0
- package/abstractions/services/ListPackagesService.js.map +1 -0
- package/abstractions/services/LoadEnvVarsService.d.ts +7 -0
- package/abstractions/services/LoadEnvVarsService.js +4 -0
- package/abstractions/services/LoadEnvVarsService.js.map +1 -0
- package/abstractions/services/LocalStorageService.d.ts +16 -0
- package/abstractions/services/LocalStorageService.js +4 -0
- package/abstractions/services/LocalStorageService.js.map +1 -0
- package/abstractions/services/LoggerService.d.ts +13 -0
- package/abstractions/services/LoggerService.js +4 -0
- package/abstractions/services/LoggerService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetIsCiService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetIsCiService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetIsCiService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetNpmVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetNpxVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.d.ts +12 -0
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.d.ts +8 -0
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.js +4 -0
- package/abstractions/services/ProjectInfoService/GetYarnVersionService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.d.ts +33 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.js +4 -0
- package/abstractions/services/ProjectInfoService/ProjectInfoService.js.map +1 -0
- package/abstractions/services/ProjectInfoService/index.d.ts +6 -0
- package/abstractions/services/ProjectInfoService/index.js +8 -0
- package/abstractions/services/ProjectInfoService/index.js.map +1 -0
- package/abstractions/services/ProjectSdkParamsService.d.ts +22 -0
- package/abstractions/services/ProjectSdkParamsService.js +4 -0
- package/abstractions/services/ProjectSdkParamsService.js.map +1 -0
- package/abstractions/services/PulumiExportService.d.ts +13 -0
- package/abstractions/services/PulumiExportService.js +7 -0
- package/abstractions/services/PulumiExportService.js.map +1 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.d.ts +7 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js +4 -0
- package/abstractions/services/PulumiGetConfigPassphraseService.js.map +1 -0
- package/abstractions/services/PulumiGetSecretsProviderService.d.ts +7 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js +4 -0
- package/abstractions/services/PulumiGetSecretsProviderService.js.map +1 -0
- package/abstractions/services/PulumiGetStackOutputService.d.ts +13 -0
- package/abstractions/services/PulumiGetStackOutputService.js +4 -0
- package/abstractions/services/PulumiGetStackOutputService.js.map +1 -0
- package/abstractions/services/PulumiImportService.d.ts +8 -0
- package/abstractions/services/PulumiImportService.js +4 -0
- package/abstractions/services/PulumiImportService.js.map +1 -0
- package/abstractions/services/PulumiLoginService.d.ts +16 -0
- package/abstractions/services/PulumiLoginService.js +4 -0
- package/abstractions/services/PulumiLoginService.js.map +1 -0
- package/abstractions/services/PulumiSelectStackService.d.ts +10 -0
- package/abstractions/services/PulumiSelectStackService.js +4 -0
- package/abstractions/services/PulumiSelectStackService.js.map +1 -0
- package/abstractions/services/SetProjectIdService.d.ts +12 -0
- package/abstractions/services/SetProjectIdService.js +4 -0
- package/abstractions/services/SetProjectIdService.js.map +1 -0
- package/abstractions/services/StdioService.d.ts +9 -0
- package/abstractions/services/StdioService.js +4 -0
- package/abstractions/services/StdioService.js.map +1 -0
- package/abstractions/services/UiService.d.ts +15 -0
- package/abstractions/services/UiService.js +4 -0
- package/abstractions/services/UiService.js.map +1 -0
- package/abstractions/services/ValidateProjectConfigService.d.ts +10 -0
- package/abstractions/services/ValidateProjectConfigService.js +4 -0
- package/abstractions/services/ValidateProjectConfigService.js.map +1 -0
- package/abstractions/services/WatchedLambdaFunctionsService.d.ts +23 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js +4 -0
- package/abstractions/services/WatchedLambdaFunctionsService.js.map +1 -0
- package/abstractions/services/WcpService.d.ts +31 -0
- package/abstractions/services/WcpService.js +4 -0
- package/abstractions/services/WcpService.js.map +1 -0
- package/abstractions/services/index.d.ts +35 -0
- package/abstractions/services/index.js +37 -0
- package/abstractions/services/index.js.map +1 -0
- package/abstractions/types.d.ts +1 -0
- package/abstractions/types.js +3 -0
- package/abstractions/types.js.map +1 -0
- package/components/Wcp.d.ts +17 -0
- package/components/Wcp.js +41 -0
- package/components/Wcp.js.map +1 -0
- package/createProjectSdkContainer.d.ts +3 -0
- package/createProjectSdkContainer.js +114 -0
- package/createProjectSdkContainer.js.map +1 -0
- package/decorators/BuildAppWithHooks.d.ts +17 -0
- package/decorators/BuildAppWithHooks.js +50 -0
- package/decorators/BuildAppWithHooks.js.map +1 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.d.ts +16 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js +28 -0
- package/decorators/DeployAppClearWatchedLambdaFunctions.js.map +1 -0
- package/decorators/DeployAppRefreshStackOutputCache.d.ts +17 -0
- package/decorators/DeployAppRefreshStackOutputCache.js +36 -0
- package/decorators/DeployAppRefreshStackOutputCache.js.map +1 -0
- package/decorators/DeployAppWithHooks.d.ts +17 -0
- package/decorators/DeployAppWithHooks.js +48 -0
- package/decorators/DeployAppWithHooks.js.map +1 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.d.ts +16 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js +34 -0
- package/decorators/DeployAppWithWatchedLambdaReplacement.js.map +1 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.d.ts +11 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js +25 -0
- package/decorators/GetPulumiServiceWithDownloadInfo.js.map +1 -0
- package/decorators/WatchWithHooks.d.ts +13 -0
- package/decorators/WatchWithHooks.js +34 -0
- package/decorators/WatchWithHooks.js.map +1 -0
- package/decorators/index.d.ts +7 -0
- package/decorators/index.js +9 -0
- package/decorators/index.js.map +1 -0
- package/defineExtension/createExtensionDefinition.d.ts +4 -0
- package/defineExtension/createExtensionDefinition.js +23 -0
- package/defineExtension/createExtensionDefinition.js.map +1 -0
- package/defineExtension/createExtensionReactComponent.d.ts +11 -0
- package/defineExtension/createExtensionReactComponent.js +55 -0
- package/defineExtension/createExtensionReactComponent.js.map +1 -0
- package/defineExtension/defineApiExtension.d.ts +17 -0
- package/defineExtension/defineApiExtension.js +110 -0
- package/defineExtension/defineApiExtension.js.map +1 -0
- package/defineExtension/defineExtension.d.ts +9 -0
- package/defineExtension/defineExtension.js +14 -0
- package/defineExtension/defineExtension.js.map +1 -0
- package/defineExtension/index.d.ts +4 -0
- package/defineExtension/index.js +6 -0
- package/defineExtension/index.js.map +1 -0
- package/defineExtension/models/ExtensionDefinitionModel.d.ts +22 -0
- package/defineExtension/models/ExtensionDefinitionModel.js +13 -0
- package/defineExtension/models/ExtensionDefinitionModel.js.map +1 -0
- package/defineExtension/models/ExtensionInstanceModel.d.ts +16 -0
- package/defineExtension/models/ExtensionInstanceModel.js +27 -0
- package/defineExtension/models/ExtensionInstanceModel.js.map +1 -0
- package/defineExtension/models/index.d.ts +2 -0
- package/defineExtension/models/index.js +4 -0
- package/defineExtension/models/index.js.map +1 -0
- package/defineExtension/types.d.ts +24 -0
- package/defineExtension/types.js +3 -0
- package/defineExtension/types.js.map +1 -0
- package/defineExtension/zodTypes/zodSrcPath.d.ts +15 -0
- package/defineExtension/zodTypes/zodSrcPath.js +68 -0
- package/defineExtension/zodTypes/zodSrcPath.js.map +1 -0
- package/exports/extensions.d.ts +1 -0
- package/exports/extensions.js +3 -0
- package/exports/extensions.js.map +1 -0
- package/exports/infra/admin.d.ts +6 -0
- package/exports/infra/admin.js +8 -0
- package/exports/infra/admin.js.map +1 -0
- package/exports/infra/api.d.ts +6 -0
- package/exports/infra/api.js +8 -0
- package/exports/infra/api.js.map +1 -0
- package/exports/infra/core.d.ts +5 -0
- package/exports/infra/core.js +7 -0
- package/exports/infra/core.js.map +1 -0
- package/exports/infra/index.d.ts +8 -0
- package/exports/infra/index.js +10 -0
- package/exports/infra/index.js.map +1 -0
- package/extensions/DatabaseSetup.d.ts +8 -0
- package/extensions/DatabaseSetup.js +14 -0
- package/extensions/DatabaseSetup.js.map +1 -0
- package/extensions/EnvVar.d.ts +11 -0
- package/extensions/EnvVar.js +17 -0
- package/extensions/EnvVar.js.map +1 -0
- package/extensions/ExtensionDefinitions.d.ts +8 -0
- package/extensions/ExtensionDefinitions.js +15 -0
- package/extensions/ExtensionDefinitions.js.map +1 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.d.ts +11 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js +31 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminBuild.js.map +1 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.d.ts +11 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js +31 -0
- package/extensions/Project/EnsureApiDeployedBeforeAdminWatch.js.map +1 -0
- package/extensions/Project/EnsureApiDeployedBeforeWatch.d.ts +11 -0
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js +31 -0
- package/extensions/Project/EnsureApiDeployedBeforeWatch.js.map +1 -0
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.d.ts +11 -0
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js +34 -0
- package/extensions/Project/EnsureCoreDeployedBeforeApiDeploy.js.map +1 -0
- package/extensions/Project/EnsureTelemetryEnabledForOss.d.ts +13 -0
- package/extensions/Project/EnsureTelemetryEnabledForOss.js +37 -0
- package/extensions/Project/EnsureTelemetryEnabledForOss.js.map +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.d.ts +12 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js +43 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeBuild.js.map +1 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.d.ts +12 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js +43 -0
- package/extensions/Project/SetAdminAppEnvVarsBeforeWatch.js.map +1 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.d.ts +10 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js +15 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeAdminWatch.js.map +1 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.d.ts +10 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js +15 -0
- package/extensions/Project/ShowConfigChangeInfoBeforeApiWatch.js.map +1 -0
- package/extensions/Project/TelemetryNoLongerNewUser.d.ts +8 -0
- package/extensions/Project/TelemetryNoLongerNewUser.js +14 -0
- package/extensions/Project/TelemetryNoLongerNewUser.js.map +1 -0
- package/extensions/Project/ValidateProductionPulumiState.d.ts +11 -0
- package/extensions/Project/ValidateProductionPulumiState.js +37 -0
- package/extensions/Project/ValidateProductionPulumiState.js.map +1 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.d.ts +14 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js +60 -0
- package/extensions/Project/WcpInjectTelemetryClientAfterBuild.js.map +1 -0
- package/extensions/Project.d.ts +2 -0
- package/extensions/Project.js +33 -0
- package/extensions/Project.js.map +1 -0
- package/extensions/ProjectDecorator.d.ts +8 -0
- package/extensions/ProjectDecorator.js +22 -0
- package/extensions/ProjectDecorator.js.map +1 -0
- package/extensions/ProjectId.d.ts +8 -0
- package/extensions/ProjectId.js +19 -0
- package/extensions/ProjectId.js.map +1 -0
- package/extensions/ProjectImplementation.d.ts +11 -0
- package/extensions/ProjectImplementation.js +23 -0
- package/extensions/ProjectImplementation.js.map +1 -0
- package/extensions/Telemetry.d.ts +8 -0
- package/extensions/Telemetry.js +14 -0
- package/extensions/Telemetry.js.map +1 -0
- package/extensions/hooks/AdminAfterBuild.d.ts +8 -0
- package/extensions/hooks/AdminAfterBuild.js +25 -0
- package/extensions/hooks/AdminAfterBuild.js.map +1 -0
- package/extensions/hooks/AdminAfterDeploy.d.ts +8 -0
- package/extensions/hooks/AdminAfterDeploy.js +25 -0
- package/extensions/hooks/AdminAfterDeploy.js.map +1 -0
- package/extensions/hooks/AdminBeforeBuild.d.ts +8 -0
- package/extensions/hooks/AdminBeforeBuild.js +25 -0
- package/extensions/hooks/AdminBeforeBuild.js.map +1 -0
- package/extensions/hooks/AdminBeforeDeploy.d.ts +8 -0
- package/extensions/hooks/AdminBeforeDeploy.js +25 -0
- package/extensions/hooks/AdminBeforeDeploy.js.map +1 -0
- package/extensions/hooks/AdminBeforeWatch.d.ts +8 -0
- package/extensions/hooks/AdminBeforeWatch.js +25 -0
- package/extensions/hooks/AdminBeforeWatch.js.map +1 -0
- package/extensions/hooks/AfterBuild.d.ts +8 -0
- package/extensions/hooks/AfterBuild.js +24 -0
- package/extensions/hooks/AfterBuild.js.map +1 -0
- package/extensions/hooks/AfterDeploy.d.ts +8 -0
- package/extensions/hooks/AfterDeploy.js +24 -0
- package/extensions/hooks/AfterDeploy.js.map +1 -0
- package/extensions/hooks/ApiAfterBuild.d.ts +8 -0
- package/extensions/hooks/ApiAfterBuild.js +25 -0
- package/extensions/hooks/ApiAfterBuild.js.map +1 -0
- package/extensions/hooks/ApiAfterDeploy.d.ts +8 -0
- package/extensions/hooks/ApiAfterDeploy.js +25 -0
- package/extensions/hooks/ApiAfterDeploy.js.map +1 -0
- package/extensions/hooks/ApiBeforeBuild.d.ts +8 -0
- package/extensions/hooks/ApiBeforeBuild.js +25 -0
- package/extensions/hooks/ApiBeforeBuild.js.map +1 -0
- package/extensions/hooks/ApiBeforeDeploy.d.ts +8 -0
- package/extensions/hooks/ApiBeforeDeploy.js +25 -0
- package/extensions/hooks/ApiBeforeDeploy.js.map +1 -0
- package/extensions/hooks/ApiBeforeWatch.d.ts +8 -0
- package/extensions/hooks/ApiBeforeWatch.js +25 -0
- package/extensions/hooks/ApiBeforeWatch.js.map +1 -0
- package/extensions/hooks/BeforeBuild.d.ts +8 -0
- package/extensions/hooks/BeforeBuild.js +24 -0
- package/extensions/hooks/BeforeBuild.js.map +1 -0
- package/extensions/hooks/BeforeDeploy.d.ts +8 -0
- package/extensions/hooks/BeforeDeploy.js +24 -0
- package/extensions/hooks/BeforeDeploy.js.map +1 -0
- package/extensions/hooks/BeforeWatch.d.ts +8 -0
- package/extensions/hooks/BeforeWatch.js +24 -0
- package/extensions/hooks/BeforeWatch.js.map +1 -0
- package/extensions/hooks/CoreAfterBuild.d.ts +8 -0
- package/extensions/hooks/CoreAfterBuild.js +25 -0
- package/extensions/hooks/CoreAfterBuild.js.map +1 -0
- package/extensions/hooks/CoreAfterDeploy.d.ts +8 -0
- package/extensions/hooks/CoreAfterDeploy.js +25 -0
- package/extensions/hooks/CoreAfterDeploy.js.map +1 -0
- package/extensions/hooks/CoreBeforeBuild.d.ts +8 -0
- package/extensions/hooks/CoreBeforeBuild.js +25 -0
- package/extensions/hooks/CoreBeforeBuild.js.map +1 -0
- package/extensions/hooks/CoreBeforeDeploy.d.ts +8 -0
- package/extensions/hooks/CoreBeforeDeploy.js +25 -0
- package/extensions/hooks/CoreBeforeDeploy.js.map +1 -0
- package/extensions/hooks/CoreBeforeWatch.d.ts +8 -0
- package/extensions/hooks/CoreBeforeWatch.js +25 -0
- package/extensions/hooks/CoreBeforeWatch.js.map +1 -0
- package/extensions/hooks/index.d.ts +20 -0
- package/extensions/hooks/index.js +22 -0
- package/extensions/hooks/index.js.map +1 -0
- package/extensions/index.d.ts +107 -0
- package/extensions/index.js +65 -0
- package/extensions/index.js.map +1 -0
- package/extensions/infra/Env.d.ts +19 -0
- package/extensions/infra/Env.js +79 -0
- package/extensions/infra/Env.js.map +1 -0
- package/extensions/infra/index.d.ts +1 -0
- package/extensions/infra/index.js +3 -0
- package/extensions/infra/index.js.map +1 -0
- package/extensions/pulumi/AdminPulumi.d.ts +8 -0
- package/extensions/pulumi/AdminPulumi.js +25 -0
- package/extensions/pulumi/AdminPulumi.js.map +1 -0
- package/extensions/pulumi/AdminStackOutputValue.d.ts +11 -0
- package/extensions/pulumi/AdminStackOutputValue.js +17 -0
- package/extensions/pulumi/AdminStackOutputValue.js.map +1 -0
- package/extensions/pulumi/ApiPulumi.d.ts +8 -0
- package/extensions/pulumi/ApiPulumi.js +25 -0
- package/extensions/pulumi/ApiPulumi.js.map +1 -0
- package/extensions/pulumi/ApiStackOutputValue.d.ts +11 -0
- package/extensions/pulumi/ApiStackOutputValue.js +17 -0
- package/extensions/pulumi/ApiStackOutputValue.js.map +1 -0
- package/extensions/pulumi/CorePulumi.d.ts +8 -0
- package/extensions/pulumi/CorePulumi.js +25 -0
- package/extensions/pulumi/CorePulumi.js.map +1 -0
- package/extensions/pulumi/CoreStackOutputValue.d.ts +11 -0
- package/extensions/pulumi/CoreStackOutputValue.js +17 -0
- package/extensions/pulumi/CoreStackOutputValue.js.map +1 -0
- package/extensions/pulumi/ProductionEnvironments.d.ts +8 -0
- package/extensions/pulumi/ProductionEnvironments.js +31 -0
- package/extensions/pulumi/ProductionEnvironments.js.map +1 -0
- package/extensions/pulumi/PulumiResourceNamePrefix.d.ts +8 -0
- package/extensions/pulumi/PulumiResourceNamePrefix.js +14 -0
- package/extensions/pulumi/PulumiResourceNamePrefix.js.map +1 -0
- package/extensions/pulumi/index.d.ts +8 -0
- package/extensions/pulumi/index.js +10 -0
- package/extensions/pulumi/index.js.map +1 -0
- package/features/BuildApp/BuildApp.d.ts +12 -0
- package/features/BuildApp/BuildApp.js +48 -0
- package/features/BuildApp/BuildApp.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.d.ts +32 -0
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.js +44 -0
- package/features/BuildApp/PackagesBuilder/PackagesBuilder.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.d.ts +16 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.js +38 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcess.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.d.ts +16 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.js +49 -0
- package/features/BuildApp/PackagesBuilder/RunnableBuildProcesses.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.d.ts +18 -0
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js +15 -0
- package/features/BuildApp/PackagesBuilder/utils/requireConfig.js.map +1 -0
- package/features/BuildApp/PackagesBuilder/worker.d.ts +1 -0
- package/features/BuildApp/PackagesBuilder/worker.js +50 -0
- package/features/BuildApp/PackagesBuilder/worker.js.map +1 -0
- package/features/BuildApp/index.d.ts +1 -0
- package/features/BuildApp/index.js +3 -0
- package/features/BuildApp/index.js.map +1 -0
- package/features/DeployApp/DeployApp.d.ts +14 -0
- package/features/DeployApp/DeployApp.js +86 -0
- package/features/DeployApp/DeployApp.js.map +1 -0
- package/features/DeployApp/index.d.ts +1 -0
- package/features/DeployApp/index.js +3 -0
- package/features/DeployApp/index.js.map +1 -0
- package/features/DestroyApp/DestroyApp.d.ts +14 -0
- package/features/DestroyApp/DestroyApp.js +52 -0
- package/features/DestroyApp/DestroyApp.js.map +1 -0
- package/features/DestroyApp/index.d.ts +1 -0
- package/features/DestroyApp/index.js +3 -0
- package/features/DestroyApp/index.js.map +1 -0
- package/features/ExportStack/ExportStack.d.ts +9 -0
- package/features/ExportStack/ExportStack.js +21 -0
- package/features/ExportStack/ExportStack.js.map +1 -0
- package/features/ExportStack/index.d.ts +1 -0
- package/features/ExportStack/index.js +3 -0
- package/features/ExportStack/index.js.map +1 -0
- package/features/GetApp/GetApp.d.ts +7 -0
- package/features/GetApp/GetApp.js +17 -0
- package/features/GetApp/GetApp.js.map +1 -0
- package/features/GetApp/index.d.ts +1 -0
- package/features/GetApp/index.js +3 -0
- package/features/GetApp/index.js.map +1 -0
- package/features/GetAppOutput/GetAppOutput.d.ts +12 -0
- package/features/GetAppOutput/GetAppOutput.js +40 -0
- package/features/GetAppOutput/GetAppOutput.js.map +1 -0
- package/features/GetAppOutput/index.d.ts +1 -0
- package/features/GetAppOutput/index.js +3 -0
- package/features/GetAppOutput/index.js.map +1 -0
- package/features/GetAppStackOutput/GetAppStackOutput.d.ts +10 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js +21 -0
- package/features/GetAppStackOutput/GetAppStackOutput.js.map +1 -0
- package/features/GetAppStackOutput/index.d.ts +1 -0
- package/features/GetAppStackOutput/index.js +3 -0
- package/features/GetAppStackOutput/index.js.map +1 -0
- package/features/GetLogger/GetLogger.d.ts +7 -0
- package/features/GetLogger/GetLogger.js +17 -0
- package/features/GetLogger/GetLogger.js.map +1 -0
- package/features/GetLogger/index.d.ts +1 -0
- package/features/GetLogger/index.js +3 -0
- package/features/GetLogger/index.js.map +1 -0
- package/features/GetProductionEnvironments/GetProductionEnvironments.d.ts +7 -0
- package/features/GetProductionEnvironments/GetProductionEnvironments.js +26 -0
- package/features/GetProductionEnvironments/GetProductionEnvironments.js.map +1 -0
- package/features/GetProductionEnvironments/index.d.ts +1 -0
- package/features/GetProductionEnvironments/index.js +3 -0
- package/features/GetProductionEnvironments/index.js.map +1 -0
- package/features/GetProject/GetProject.d.ts +7 -0
- package/features/GetProject/GetProject.js +17 -0
- package/features/GetProject/GetProject.js.map +1 -0
- package/features/GetProject/index.d.ts +1 -0
- package/features/GetProject/index.js +3 -0
- package/features/GetProject/index.js.map +1 -0
- package/features/GetProjectConfig/GetProjectConfig.d.ts +7 -0
- package/features/GetProjectConfig/GetProjectConfig.js +17 -0
- package/features/GetProjectConfig/GetProjectConfig.js.map +1 -0
- package/features/GetProjectConfig/index.d.ts +1 -0
- package/features/GetProjectConfig/index.js +3 -0
- package/features/GetProjectConfig/index.js.map +1 -0
- package/features/GetProjectInfo/GetProjectInfo.d.ts +7 -0
- package/features/GetProjectInfo/GetProjectInfo.js +17 -0
- package/features/GetProjectInfo/GetProjectInfo.js.map +1 -0
- package/features/GetProjectInfo/index.d.ts +1 -0
- package/features/GetProjectInfo/index.js +3 -0
- package/features/GetProjectInfo/index.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.d.ts +7 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js +24 -0
- package/features/GetPulumiResourceNamePrefix/GetPulumiResourceNamePrefix.js.map +1 -0
- package/features/GetPulumiResourceNamePrefix/index.d.ts +1 -0
- package/features/GetPulumiResourceNamePrefix/index.js +3 -0
- package/features/GetPulumiResourceNamePrefix/index.js.map +1 -0
- package/features/InstallExtension/InstallExtension.d.ts +7 -0
- package/features/InstallExtension/InstallExtension.js +17 -0
- package/features/InstallExtension/InstallExtension.js.map +1 -0
- package/features/InstallExtension/index.d.ts +1 -0
- package/features/InstallExtension/index.js +3 -0
- package/features/InstallExtension/index.js.map +1 -0
- package/features/IsCi/IsCi.d.ts +7 -0
- package/features/IsCi/IsCi.js +17 -0
- package/features/IsCi/IsCi.js.map +1 -0
- package/features/IsCi/index.d.ts +1 -0
- package/features/IsCi/index.js +3 -0
- package/features/IsCi/index.js.map +1 -0
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.d.ts +7 -0
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.js +25 -0
- package/features/IsTelemetryEnabled/IsTelemetryEnabled.js.map +1 -0
- package/features/IsTelemetryEnabled/index.d.ts +1 -0
- package/features/IsTelemetryEnabled/index.js +3 -0
- package/features/IsTelemetryEnabled/index.js.map +1 -0
- package/features/IsWcpEnabled/IsWcpEnabled.d.ts +7 -0
- package/features/IsWcpEnabled/IsWcpEnabled.js +18 -0
- package/features/IsWcpEnabled/IsWcpEnabled.js.map +1 -0
- package/features/IsWcpEnabled/index.d.ts +1 -0
- package/features/IsWcpEnabled/index.js +3 -0
- package/features/IsWcpEnabled/index.js.map +1 -0
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.d.ts +7 -0
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.js +22 -0
- package/features/IsWebinyJsRepo/IsWebinyJsRepo.js.map +1 -0
- package/features/IsWebinyJsRepo/index.d.ts +1 -0
- package/features/IsWebinyJsRepo/index.js +3 -0
- package/features/IsWebinyJsRepo/index.js.map +1 -0
- package/features/RefreshApp/RefreshApp.d.ts +13 -0
- package/features/RefreshApp/RefreshApp.js +53 -0
- package/features/RefreshApp/RefreshApp.js.map +1 -0
- package/features/RefreshApp/index.d.ts +1 -0
- package/features/RefreshApp/index.js +3 -0
- package/features/RefreshApp/index.js.map +1 -0
- package/features/RunPulumiCommand/RunPulumiCommand.d.ts +13 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js +50 -0
- package/features/RunPulumiCommand/RunPulumiCommand.js.map +1 -0
- package/features/RunPulumiCommand/index.d.ts +1 -0
- package/features/RunPulumiCommand/index.js +3 -0
- package/features/RunPulumiCommand/index.js.map +1 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.d.ts +7 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.js +17 -0
- package/features/ValidateProjectConfig/ValidateProjectConfig.js.map +1 -0
- package/features/ValidateProjectConfig/index.d.ts +1 -0
- package/features/ValidateProjectConfig/index.js +3 -0
- package/features/ValidateProjectConfig/index.js.map +1 -0
- package/features/Watch/Watch.d.ts +28 -0
- package/features/Watch/Watch.js +193 -0
- package/features/Watch/Watch.js.map +1 -0
- package/features/Watch/getIotEndpoint.d.ts +2 -0
- package/features/Watch/getIotEndpoint.js +16 -0
- package/features/Watch/getIotEndpoint.js.map +1 -0
- package/features/Watch/handler/handler.zip +0 -0
- package/features/Watch/index.d.ts +1 -0
- package/features/Watch/index.js +3 -0
- package/features/Watch/index.js.map +1 -0
- package/features/Watch/initInvocationForwarding.d.ts +9 -0
- package/features/Watch/initInvocationForwarding.js +110 -0
- package/features/Watch/initInvocationForwarding.js.map +1 -0
- package/features/Watch/localInvocationWorker.d.ts +1 -0
- package/features/Watch/localInvocationWorker.js +36 -0
- package/features/Watch/localInvocationWorker.js.map +1 -0
- package/features/Watch/replaceLambdaFunctions.d.ts +18 -0
- package/features/Watch/replaceLambdaFunctions.js +91 -0
- package/features/Watch/replaceLambdaFunctions.js.map +1 -0
- package/features/Watch/watchers/BasePackagesWatcher.d.ts +15 -0
- package/features/Watch/watchers/BasePackagesWatcher.js +16 -0
- package/features/Watch/watchers/BasePackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/MultiplePackagesWatcher.d.ts +5 -0
- package/features/Watch/watchers/MultiplePackagesWatcher.js +18 -0
- package/features/Watch/watchers/MultiplePackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/PackagesWatcher.d.ts +5 -0
- package/features/Watch/watchers/PackagesWatcher.js +27 -0
- package/features/Watch/watchers/PackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/RunnableWatchProcess.d.ts +20 -0
- package/features/Watch/watchers/RunnableWatchProcess.js +47 -0
- package/features/Watch/watchers/RunnableWatchProcess.js.map +1 -0
- package/features/Watch/watchers/RunnableWatchProcesses.d.ts +13 -0
- package/features/Watch/watchers/RunnableWatchProcesses.js +37 -0
- package/features/Watch/watchers/RunnableWatchProcesses.js.map +1 -0
- package/features/Watch/watchers/SinglePackageWatcher.d.ts +5 -0
- package/features/Watch/watchers/SinglePackageWatcher.js +14 -0
- package/features/Watch/watchers/SinglePackageWatcher.js.map +1 -0
- package/features/Watch/watchers/WebinyConfigWatcher.d.ts +16 -0
- package/features/Watch/watchers/WebinyConfigWatcher.js +45 -0
- package/features/Watch/watchers/WebinyConfigWatcher.js.map +1 -0
- package/features/Watch/watchers/ZeroPackagesWatcher.d.ts +5 -0
- package/features/Watch/watchers/ZeroPackagesWatcher.js +10 -0
- package/features/Watch/watchers/ZeroPackagesWatcher.js.map +1 -0
- package/features/Watch/watchers/utils/measureDuration.d.ts +1 -0
- package/features/Watch/watchers/utils/measureDuration.js +11 -0
- package/features/Watch/watchers/utils/measureDuration.js.map +1 -0
- package/features/Watch/watchers/utils/requireConfig.d.ts +18 -0
- package/features/Watch/watchers/utils/requireConfig.js +15 -0
- package/features/Watch/watchers/utils/requireConfig.js.map +1 -0
- package/features/Watch/watchers/worker.d.ts +1 -0
- package/features/Watch/watchers/worker.js +33 -0
- package/features/Watch/watchers/worker.js.map +1 -0
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.d.ts +7 -0
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.js +21 -0
- package/features/hooks/AdminAfterBuild/AdminBeforeBuild.js.map +1 -0
- package/features/hooks/AdminAfterBuild/index.d.ts +1 -0
- package/features/hooks/AdminAfterBuild/index.js +3 -0
- package/features/hooks/AdminAfterBuild/index.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.d.ts +7 -0
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js +21 -0
- package/features/hooks/AdminAfterDeploy/AdminBeforeBuild.js.map +1 -0
- package/features/hooks/AdminAfterDeploy/index.d.ts +1 -0
- package/features/hooks/AdminAfterDeploy/index.js +3 -0
- package/features/hooks/AdminAfterDeploy/index.js.map +1 -0
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.d.ts +7 -0
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.js +21 -0
- package/features/hooks/AdminBeforeBuild/AdminBeforeBuild.js.map +1 -0
- package/features/hooks/AdminBeforeBuild/index.d.ts +1 -0
- package/features/hooks/AdminBeforeBuild/index.js +3 -0
- package/features/hooks/AdminBeforeBuild/index.js.map +1 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.d.ts +7 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js +21 -0
- package/features/hooks/AdminBeforeDeploy/AdminBeforeDeploy.js.map +1 -0
- package/features/hooks/AdminBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/AdminBeforeDeploy/index.js +3 -0
- package/features/hooks/AdminBeforeDeploy/index.js.map +1 -0
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.d.ts +7 -0
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.js +21 -0
- package/features/hooks/AdminBeforeWatch/AdminBeforeWatch.js.map +1 -0
- package/features/hooks/AdminBeforeWatch/index.d.ts +1 -0
- package/features/hooks/AdminBeforeWatch/index.js +3 -0
- package/features/hooks/AdminBeforeWatch/index.js.map +1 -0
- package/features/hooks/AfterBuild/AfterBuild.d.ts +7 -0
- package/features/hooks/AfterBuild/AfterBuild.js +21 -0
- package/features/hooks/AfterBuild/AfterBuild.js.map +1 -0
- package/features/hooks/AfterBuild/index.d.ts +1 -0
- package/features/hooks/AfterBuild/index.js +3 -0
- package/features/hooks/AfterBuild/index.js.map +1 -0
- package/features/hooks/AfterDeploy/AfterDeploy.d.ts +7 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js +21 -0
- package/features/hooks/AfterDeploy/AfterDeploy.js.map +1 -0
- package/features/hooks/AfterDeploy/index.d.ts +1 -0
- package/features/hooks/AfterDeploy/index.js +3 -0
- package/features/hooks/AfterDeploy/index.js.map +1 -0
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.d.ts +7 -0
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.js +21 -0
- package/features/hooks/ApiAfterBuild/ApiBeforeBuild.js.map +1 -0
- package/features/hooks/ApiAfterBuild/index.d.ts +1 -0
- package/features/hooks/ApiAfterBuild/index.js +3 -0
- package/features/hooks/ApiAfterBuild/index.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.d.ts +7 -0
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js +21 -0
- package/features/hooks/ApiAfterDeploy/ApiBeforeBuild.js.map +1 -0
- package/features/hooks/ApiAfterDeploy/index.d.ts +1 -0
- package/features/hooks/ApiAfterDeploy/index.js +3 -0
- package/features/hooks/ApiAfterDeploy/index.js.map +1 -0
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.d.ts +7 -0
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.js +21 -0
- package/features/hooks/ApiBeforeBuild/ApiBeforeBuild.js.map +1 -0
- package/features/hooks/ApiBeforeBuild/index.d.ts +1 -0
- package/features/hooks/ApiBeforeBuild/index.js +3 -0
- package/features/hooks/ApiBeforeBuild/index.js.map +1 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.d.ts +7 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js +21 -0
- package/features/hooks/ApiBeforeDeploy/ApiBeforeDeploy.js.map +1 -0
- package/features/hooks/ApiBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/ApiBeforeDeploy/index.js +3 -0
- package/features/hooks/ApiBeforeDeploy/index.js.map +1 -0
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.d.ts +7 -0
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.js +21 -0
- package/features/hooks/ApiBeforeWatch/ApiBeforeWatch.js.map +1 -0
- package/features/hooks/ApiBeforeWatch/index.d.ts +1 -0
- package/features/hooks/ApiBeforeWatch/index.js +3 -0
- package/features/hooks/ApiBeforeWatch/index.js.map +1 -0
- package/features/hooks/BeforeBuild/BeforeBuild.d.ts +7 -0
- package/features/hooks/BeforeBuild/BeforeBuild.js +21 -0
- package/features/hooks/BeforeBuild/BeforeBuild.js.map +1 -0
- package/features/hooks/BeforeBuild/index.d.ts +1 -0
- package/features/hooks/BeforeBuild/index.js +3 -0
- package/features/hooks/BeforeBuild/index.js.map +1 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.d.ts +7 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js +21 -0
- package/features/hooks/BeforeDeploy/BeforeDeploy.js.map +1 -0
- package/features/hooks/BeforeDeploy/index.d.ts +1 -0
- package/features/hooks/BeforeDeploy/index.js +3 -0
- package/features/hooks/BeforeDeploy/index.js.map +1 -0
- package/features/hooks/BeforeWatch/BeforeWatch.d.ts +7 -0
- package/features/hooks/BeforeWatch/BeforeWatch.js +21 -0
- package/features/hooks/BeforeWatch/BeforeWatch.js.map +1 -0
- package/features/hooks/BeforeWatch/index.d.ts +1 -0
- package/features/hooks/BeforeWatch/index.js +3 -0
- package/features/hooks/BeforeWatch/index.js.map +1 -0
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.d.ts +7 -0
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.js +21 -0
- package/features/hooks/CoreAfterBuild/CoreBeforeBuild.js.map +1 -0
- package/features/hooks/CoreAfterBuild/index.d.ts +1 -0
- package/features/hooks/CoreAfterBuild/index.js +3 -0
- package/features/hooks/CoreAfterBuild/index.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.d.ts +7 -0
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js +21 -0
- package/features/hooks/CoreAfterDeploy/CoreBeforeBuild.js.map +1 -0
- package/features/hooks/CoreAfterDeploy/index.d.ts +1 -0
- package/features/hooks/CoreAfterDeploy/index.js +3 -0
- package/features/hooks/CoreAfterDeploy/index.js.map +1 -0
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.d.ts +7 -0
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.js +21 -0
- package/features/hooks/CoreBeforeBuild/CoreBeforeBuild.js.map +1 -0
- package/features/hooks/CoreBeforeBuild/index.d.ts +1 -0
- package/features/hooks/CoreBeforeBuild/index.js +3 -0
- package/features/hooks/CoreBeforeBuild/index.js.map +1 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.d.ts +7 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js +21 -0
- package/features/hooks/CoreBeforeDeploy/CoreBeforeDeploy.js.map +1 -0
- package/features/hooks/CoreBeforeDeploy/index.d.ts +1 -0
- package/features/hooks/CoreBeforeDeploy/index.js +3 -0
- package/features/hooks/CoreBeforeDeploy/index.js.map +1 -0
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.d.ts +7 -0
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.js +21 -0
- package/features/hooks/CoreBeforeWatch/CoreBeforeWatch.js.map +1 -0
- package/features/hooks/CoreBeforeWatch/index.d.ts +1 -0
- package/features/hooks/CoreBeforeWatch/index.js +3 -0
- package/features/hooks/CoreBeforeWatch/index.js.map +1 -0
- package/features/hooks/index.d.ts +20 -0
- package/features/hooks/index.js +22 -0
- package/features/hooks/index.js.map +1 -0
- package/features/index.d.ts +24 -0
- package/features/index.js +26 -0
- package/features/index.js.map +1 -0
- package/features/pulumi/AdminPulumi/AdminPulumi.d.ts +7 -0
- package/features/pulumi/AdminPulumi/AdminPulumi.js +21 -0
- package/features/pulumi/AdminPulumi/AdminPulumi.js.map +1 -0
- package/features/pulumi/AdminPulumi/index.d.ts +1 -0
- package/features/pulumi/AdminPulumi/index.js +3 -0
- package/features/pulumi/AdminPulumi/index.js.map +1 -0
- package/features/pulumi/ApiPulumi/ApiPulumi.d.ts +7 -0
- package/features/pulumi/ApiPulumi/ApiPulumi.js +21 -0
- package/features/pulumi/ApiPulumi/ApiPulumi.js.map +1 -0
- package/features/pulumi/ApiPulumi/index.d.ts +1 -0
- package/features/pulumi/ApiPulumi/index.js +3 -0
- package/features/pulumi/ApiPulumi/index.js.map +1 -0
- package/features/pulumi/CorePulumi/CorePulumi.d.ts +7 -0
- package/features/pulumi/CorePulumi/CorePulumi.js +21 -0
- package/features/pulumi/CorePulumi/CorePulumi.js.map +1 -0
- package/features/pulumi/CorePulumi/index.d.ts +1 -0
- package/features/pulumi/CorePulumi/index.js +3 -0
- package/features/pulumi/CorePulumi/index.js.map +1 -0
- package/features/pulumi/index.d.ts +3 -0
- package/features/pulumi/index.js +5 -0
- package/features/pulumi/index.js.map +1 -0
- package/index.d.ts +14 -0
- package/index.js +19 -0
- package/index.js.map +1 -0
- package/models/AppModel.d.ts +9 -0
- package/models/AppModel.js +25 -0
- package/models/AppModel.js.map +1 -0
- package/models/AppPackageModel.d.ts +10 -0
- package/models/AppPackageModel.js +12 -0
- package/models/AppPackageModel.js.map +1 -0
- package/models/PathModel.d.ts +10 -0
- package/models/PathModel.js +33 -0
- package/models/PathModel.js.map +1 -0
- package/models/ProjectConfigModel.d.ts +10 -0
- package/models/ProjectConfigModel.js +20 -0
- package/models/ProjectConfigModel.js.map +1 -0
- package/models/ProjectModel.d.ts +14 -0
- package/models/ProjectModel.js +40 -0
- package/models/ProjectModel.js.map +1 -0
- package/models/UrlModel.d.ts +9 -0
- package/models/UrlModel.js +28 -0
- package/models/UrlModel.js.map +1 -0
- package/models/WcpEnvironmentModel.d.ts +21 -0
- package/models/WcpEnvironmentModel.js +25 -0
- package/models/WcpEnvironmentModel.js.map +1 -0
- package/models/WcpUserModel.d.ts +21 -0
- package/models/WcpUserModel.js +15 -0
- package/models/WcpUserModel.js.map +1 -0
- package/models/WcpUserPatModel.d.ts +12 -0
- package/models/WcpUserPatModel.js +14 -0
- package/models/WcpUserPatModel.js.map +1 -0
- package/models/index.d.ts +9 -0
- package/models/index.js +11 -0
- package/models/index.js.map +1 -0
- package/package.json +79 -0
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.d.ts +9 -0
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js +82 -0
- package/services/BuildAppWorkspaceService/BuildAppWorkspaceService.js.map +1 -0
- package/services/BuildAppWorkspaceService/index.d.ts +1 -0
- package/services/BuildAppWorkspaceService/index.js +3 -0
- package/services/BuildAppWorkspaceService/index.js.map +1 -0
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.d.ts +8 -0
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js +26 -0
- package/services/BuildProjectWorkspaceService/BuildProjectWorkspaceService.js.map +1 -0
- package/services/BuildProjectWorkspaceService/index.d.ts +1 -0
- package/services/BuildProjectWorkspaceService/index.js +3 -0
- package/services/BuildProjectWorkspaceService/index.js.map +1 -0
- package/services/GetAppPackagesService/GetAppPackagesService.d.ts +6 -0
- package/services/GetAppPackagesService/GetAppPackagesService.js +32 -0
- package/services/GetAppPackagesService/GetAppPackagesService.js.map +1 -0
- package/services/GetAppPackagesService/index.d.ts +1 -0
- package/services/GetAppPackagesService/index.js +3 -0
- package/services/GetAppPackagesService/index.js.map +1 -0
- package/services/GetAppService/GetAppService.d.ts +7 -0
- package/services/GetAppService/GetAppService.js +37 -0
- package/services/GetAppService/GetAppService.js.map +1 -0
- package/services/GetAppService/index.d.ts +1 -0
- package/services/GetAppService/index.js +3 -0
- package/services/GetAppService/index.js.map +1 -0
- package/services/GetCwdService/GetCwdService.d.ts +7 -0
- package/services/GetCwdService/GetCwdService.js +18 -0
- package/services/GetCwdService/GetCwdService.js.map +1 -0
- package/services/GetCwdService/index.d.ts +1 -0
- package/services/GetCwdService/index.js +3 -0
- package/services/GetCwdService/index.js.map +1 -0
- package/services/GetProjectConfigService/EnvContext.d.ts +13 -0
- package/services/GetProjectConfigService/EnvContext.js +46 -0
- package/services/GetProjectConfigService/EnvContext.js.map +1 -0
- package/services/GetProjectConfigService/GetProjectConfigService.d.ts +12 -0
- package/services/GetProjectConfigService/GetProjectConfigService.js +127 -0
- package/services/GetProjectConfigService/GetProjectConfigService.js.map +1 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.d.ts +13 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js +41 -0
- package/services/GetProjectConfigService/WcpProjectLicenseContext.js.map +1 -0
- package/services/GetProjectConfigService/index.d.ts +1 -0
- package/services/GetProjectConfigService/index.js +3 -0
- package/services/GetProjectConfigService/index.js.map +1 -0
- package/services/GetProjectConfigService/renderConfig.d.ts +17 -0
- package/services/GetProjectConfigService/renderConfig.js +45 -0
- package/services/GetProjectConfigService/renderConfig.js.map +1 -0
- package/services/GetProjectConfigService/renderConfigWorker.d.ts +1 -0
- package/services/GetProjectConfigService/renderConfigWorker.js +58 -0
- package/services/GetProjectConfigService/renderConfigWorker.js.map +1 -0
- package/services/GetProjectIdService/GetProjectIdService.d.ts +9 -0
- package/services/GetProjectIdService/GetProjectIdService.js +32 -0
- package/services/GetProjectIdService/GetProjectIdService.js.map +1 -0
- package/services/GetProjectIdService/index.d.ts +1 -0
- package/services/GetProjectIdService/index.js +3 -0
- package/services/GetProjectIdService/index.js.map +1 -0
- package/services/GetProjectService/GetProjectService.d.ts +10 -0
- package/services/GetProjectService/GetProjectService.js +56 -0
- package/services/GetProjectService/GetProjectService.js.map +1 -0
- package/services/GetProjectService/index.d.ts +1 -0
- package/services/GetProjectService/index.js +3 -0
- package/services/GetProjectService/index.js.map +1 -0
- package/services/GetProjectVersionService/GetProjectVersionService.d.ts +7 -0
- package/services/GetProjectVersionService/GetProjectVersionService.js +34 -0
- package/services/GetProjectVersionService/GetProjectVersionService.js.map +1 -0
- package/services/GetProjectVersionService/index.d.ts +1 -0
- package/services/GetProjectVersionService/index.js +3 -0
- package/services/GetProjectVersionService/index.js.map +1 -0
- package/services/GetPulumiService/GetPulumiService.d.ts +9 -0
- package/services/GetPulumiService/GetPulumiService.js +49 -0
- package/services/GetPulumiService/GetPulumiService.js.map +1 -0
- package/services/GetPulumiService/index.d.ts +1 -0
- package/services/GetPulumiService/index.js +3 -0
- package/services/GetPulumiService/index.js.map +1 -0
- package/services/InitProjectSdkService/InitProjectSdkService.d.ts +9 -0
- package/services/InitProjectSdkService/InitProjectSdkService.js +63 -0
- package/services/InitProjectSdkService/InitProjectSdkService.js.map +1 -0
- package/services/InitProjectSdkService/applyEnvVars.d.ts +2 -0
- package/services/InitProjectSdkService/applyEnvVars.js +11 -0
- package/services/InitProjectSdkService/applyEnvVars.js.map +1 -0
- package/services/InitProjectSdkService/applyWcpEnvVars.d.ts +2 -0
- package/services/InitProjectSdkService/applyWcpEnvVars.js +144 -0
- package/services/InitProjectSdkService/applyWcpEnvVars.js.map +1 -0
- package/services/InitProjectSdkService/index.d.ts +1 -0
- package/services/InitProjectSdkService/index.js +3 -0
- package/services/InitProjectSdkService/index.js.map +1 -0
- package/services/InitProjectSdkService/registerDecorators.d.ts +4 -0
- package/services/InitProjectSdkService/registerDecorators.js +11 -0
- package/services/InitProjectSdkService/registerDecorators.js.map +1 -0
- package/services/InitProjectSdkService/registerHooks.d.ts +4 -0
- package/services/InitProjectSdkService/registerHooks.js +11 -0
- package/services/InitProjectSdkService/registerHooks.js.map +1 -0
- package/services/InitProjectSdkService/registerImplementations.d.ts +4 -0
- package/services/InitProjectSdkService/registerImplementations.js +16 -0
- package/services/InitProjectSdkService/registerImplementations.js.map +1 -0
- package/services/InitProjectSdkService/registerPulumiExtensions.d.ts +4 -0
- package/services/InitProjectSdkService/registerPulumiExtensions.js +11 -0
- package/services/InitProjectSdkService/registerPulumiExtensions.js.map +1 -0
- package/services/InstallExtensionService/InstallExtensionService.d.ts +9 -0
- package/services/InstallExtensionService/InstallExtensionService.js +129 -0
- package/services/InstallExtensionService/InstallExtensionService.js.map +1 -0
- package/services/InstallExtensionService/downloadFolderFromS3.d.ts +12 -0
- package/services/InstallExtensionService/downloadFolderFromS3.js +81 -0
- package/services/InstallExtensionService/downloadFolderFromS3.js.map +1 -0
- package/services/InstallExtensionService/index.d.ts +1 -0
- package/services/InstallExtensionService/index.js +3 -0
- package/services/InstallExtensionService/index.js.map +1 -0
- package/services/InstallExtensionService/mergePackageJson.d.ts +9 -0
- package/services/InstallExtensionService/mergePackageJson.js +31 -0
- package/services/InstallExtensionService/mergePackageJson.js.map +1 -0
- package/services/InstallExtensionService/types.d.ts +77 -0
- package/services/InstallExtensionService/types.js +3 -0
- package/services/InstallExtensionService/types.js.map +1 -0
- package/services/InstallExtensionService/updateWebinyConfig.d.ts +10 -0
- package/services/InstallExtensionService/updateWebinyConfig.js +75 -0
- package/services/InstallExtensionService/updateWebinyConfig.js.map +1 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.d.ts +13 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js +23 -0
- package/services/IsRemotePulumiBackendService/IsRemotePulumiBackendService.js.map +1 -0
- package/services/IsRemotePulumiBackendService/index.d.ts +1 -0
- package/services/IsRemotePulumiBackendService/index.js +3 -0
- package/services/IsRemotePulumiBackendService/index.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.d.ts +18 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js +84 -0
- package/services/ListAppLambdaFunctionsService/ListAppLambdaFunctionsService.js.map +1 -0
- package/services/ListAppLambdaFunctionsService/index.d.ts +1 -0
- package/services/ListAppLambdaFunctionsService/index.js +3 -0
- package/services/ListAppLambdaFunctionsService/index.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.d.ts +7 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js +32 -0
- package/services/ListDeployedEnvironmentsService/ListDeployedEnvironmentsService.js.map +1 -0
- package/services/ListDeployedEnvironmentsService/index.d.ts +1 -0
- package/services/ListDeployedEnvironmentsService/index.js +3 -0
- package/services/ListDeployedEnvironmentsService/index.js.map +1 -0
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.d.ts +15 -0
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.js +36 -0
- package/services/ListPackagesInAppWorkspaceService/ListPackagesInAppWorkspaceService.js.map +1 -0
- package/services/ListPackagesInAppWorkspaceService/index.d.ts +1 -0
- package/services/ListPackagesInAppWorkspaceService/index.js +3 -0
- package/services/ListPackagesInAppWorkspaceService/index.js.map +1 -0
- package/services/ListPackagesService/ListPackagesService.d.ts +8 -0
- package/services/ListPackagesService/ListPackagesService.js +129 -0
- package/services/ListPackagesService/ListPackagesService.js.map +1 -0
- package/services/ListPackagesService/index.d.ts +1 -0
- package/services/ListPackagesService/index.js +3 -0
- package/services/ListPackagesService/index.js.map +1 -0
- package/services/LoadEnvVarsService/LoadEnvVarsService.d.ts +8 -0
- package/services/LoadEnvVarsService/LoadEnvVarsService.js +37 -0
- package/services/LoadEnvVarsService/LoadEnvVarsService.js.map +1 -0
- package/services/LoadEnvVarsService/index.d.ts +1 -0
- package/services/LoadEnvVarsService/index.js +3 -0
- package/services/LoadEnvVarsService/index.js.map +1 -0
- package/services/LocalStorageService/LocalStorageService.d.ts +11 -0
- package/services/LocalStorageService/LocalStorageService.js +56 -0
- package/services/LocalStorageService/LocalStorageService.js.map +1 -0
- package/services/LocalStorageService/index.d.ts +1 -0
- package/services/LocalStorageService/index.js +3 -0
- package/services/LocalStorageService/index.js.map +1 -0
- package/services/LoggerService/LoggerService.d.ts +20 -0
- package/services/LoggerService/LoggerService.js +95 -0
- package/services/LoggerService/LoggerService.js.map +1 -0
- package/services/LoggerService/index.d.ts +1 -0
- package/services/LoggerService/index.js +3 -0
- package/services/LoggerService/index.js.map +1 -0
- package/services/ProjectInfoService/GetIsCiService.d.ts +5 -0
- package/services/ProjectInfoService/GetIsCiService.js +15 -0
- package/services/ProjectInfoService/GetIsCiService.js.map +1 -0
- package/services/ProjectInfoService/GetNpmVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetNpmVersionService.js +15 -0
- package/services/ProjectInfoService/GetNpmVersionService.js.map +1 -0
- package/services/ProjectInfoService/GetNpxVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetNpxVersionService.js +15 -0
- package/services/ProjectInfoService/GetNpxVersionService.js.map +1 -0
- package/services/ProjectInfoService/GetPulumiVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetPulumiVersionService.js +38 -0
- package/services/ProjectInfoService/GetPulumiVersionService.js.map +1 -0
- package/services/ProjectInfoService/GetYarnVersionService.d.ts +5 -0
- package/services/ProjectInfoService/GetYarnVersionService.js +15 -0
- package/services/ProjectInfoService/GetYarnVersionService.js.map +1 -0
- package/services/ProjectInfoService/ProjectInfoService.d.ts +13 -0
- package/services/ProjectInfoService/ProjectInfoService.js +56 -0
- package/services/ProjectInfoService/ProjectInfoService.js.map +1 -0
- package/services/ProjectInfoService/index.d.ts +6 -0
- package/services/ProjectInfoService/index.js +8 -0
- package/services/ProjectInfoService/index.js.map +1 -0
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.d.ts +8 -0
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.js +40 -0
- package/services/ProjectSdkParamsService/ProjectSdkParamsService.js.map +1 -0
- package/services/ProjectSdkParamsService/index.d.ts +1 -0
- package/services/ProjectSdkParamsService/index.js +3 -0
- package/services/ProjectSdkParamsService/index.js.map +1 -0
- package/services/PulumiExportService/PulumiExportService.d.ts +13 -0
- package/services/PulumiExportService/PulumiExportService.js +43 -0
- package/services/PulumiExportService/PulumiExportService.js.map +1 -0
- package/services/PulumiExportService/index.d.ts +1 -0
- package/services/PulumiExportService/index.js +3 -0
- package/services/PulumiExportService/index.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.d.ts +5 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js +14 -0
- package/services/PulumiGetConfigPassphraseService/PulumiGetConfigPassphraseService.js.map +1 -0
- package/services/PulumiGetConfigPassphraseService/index.d.ts +1 -0
- package/services/PulumiGetConfigPassphraseService/index.js +3 -0
- package/services/PulumiGetConfigPassphraseService/index.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.d.ts +5 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js +14 -0
- package/services/PulumiGetSecretsProviderService/PulumiGetSecretsProviderService.js.map +1 -0
- package/services/PulumiGetSecretsProviderService/index.d.ts +1 -0
- package/services/PulumiGetSecretsProviderService/index.js +3 -0
- package/services/PulumiGetSecretsProviderService/index.js.map +1 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.d.ts +20 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js +113 -0
- package/services/PulumiGetStackOutputService/PulumiGetStackOutputService.js.map +1 -0
- package/services/PulumiGetStackOutputService/index.d.ts +1 -0
- package/services/PulumiGetStackOutputService/index.js +3 -0
- package/services/PulumiGetStackOutputService/index.js.map +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.d.ts +1 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js +34 -0
- package/services/PulumiGetStackOutputService/mapStackOutput.js.map +1 -0
- package/services/PulumiImportService/PulumiImportService.d.ts +10 -0
- package/services/PulumiImportService/PulumiImportService.js +57 -0
- package/services/PulumiImportService/PulumiImportService.js.map +1 -0
- package/services/PulumiImportService/index.d.ts +1 -0
- package/services/PulumiImportService/index.js +3 -0
- package/services/PulumiImportService/index.js.map +1 -0
- package/services/PulumiLoginService/PulumiLoginService.d.ts +10 -0
- package/services/PulumiLoginService/PulumiLoginService.js +51 -0
- package/services/PulumiLoginService/PulumiLoginService.js.map +1 -0
- package/services/PulumiLoginService/index.d.ts +1 -0
- package/services/PulumiLoginService/index.js +3 -0
- package/services/PulumiLoginService/index.js.map +1 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.d.ts +15 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js +97 -0
- package/services/PulumiSelectStackService/PulumiSelectStackService.js.map +1 -0
- package/services/PulumiSelectStackService/index.d.ts +1 -0
- package/services/PulumiSelectStackService/index.js +3 -0
- package/services/PulumiSelectStackService/index.js.map +1 -0
- package/services/SetProjectIdService/SetProjectIdService.d.ts +8 -0
- package/services/SetProjectIdService/SetProjectIdService.js +56 -0
- package/services/SetProjectIdService/SetProjectIdService.js.map +1 -0
- package/services/SetProjectIdService/index.d.ts +1 -0
- package/services/SetProjectIdService/index.js +3 -0
- package/services/SetProjectIdService/index.js.map +1 -0
- package/services/StdioService/StdioService.d.ts +13 -0
- package/services/StdioService/StdioService.js +20 -0
- package/services/StdioService/StdioService.js.map +1 -0
- package/services/StdioService/index.d.ts +1 -0
- package/services/StdioService/index.js +3 -0
- package/services/StdioService/index.js.map +1 -0
- package/services/UiService/UiService.d.ts +17 -0
- package/services/UiService/UiService.js +70 -0
- package/services/UiService/UiService.js.map +1 -0
- package/services/UiService/index.d.ts +1 -0
- package/services/UiService/index.js +3 -0
- package/services/UiService/index.js.map +1 -0
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.d.ts +5 -0
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js +28 -0
- package/services/ValidateProjectConfigService/ValidateProjectConfigService.js.map +1 -0
- package/services/ValidateProjectConfigService/index.d.ts +1 -0
- package/services/ValidateProjectConfigService/index.js +3 -0
- package/services/ValidateProjectConfigService/index.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.d.ts +13 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js +55 -0
- package/services/WatchedLambdaFunctionsService/WatchedLambdaFunctionsService.js.map +1 -0
- package/services/WatchedLambdaFunctionsService/index.d.ts +1 -0
- package/services/WatchedLambdaFunctionsService/index.js +3 -0
- package/services/WatchedLambdaFunctionsService/index.js.map +1 -0
- package/services/WcpService/CreateUserPat.d.ts +16 -0
- package/services/WcpService/CreateUserPat.js +47 -0
- package/services/WcpService/CreateUserPat.js.map +1 -0
- package/services/WcpService/GenerateUserPat.d.ts +15 -0
- package/services/WcpService/GenerateUserPat.js +28 -0
- package/services/WcpService/GenerateUserPat.js.map +1 -0
- package/services/WcpService/GetPatFromLocalStorage.d.ts +9 -0
- package/services/WcpService/GetPatFromLocalStorage.js +13 -0
- package/services/WcpService/GetPatFromLocalStorage.js.map +1 -0
- package/services/WcpService/GetProjectEnvironment.d.ts +22 -0
- package/services/WcpService/GetProjectEnvironment.js +108 -0
- package/services/WcpService/GetProjectEnvironment.js.map +1 -0
- package/services/WcpService/GetProjectLicense.d.ts +11 -0
- package/services/WcpService/GetProjectLicense.js +43 -0
- package/services/WcpService/GetProjectLicense.js.map +1 -0
- package/services/WcpService/GetUser.d.ts +11 -0
- package/services/WcpService/GetUser.js +92 -0
- package/services/WcpService/GetUser.js.map +1 -0
- package/services/WcpService/GetUserPat.d.ts +10 -0
- package/services/WcpService/GetUserPat.js +41 -0
- package/services/WcpService/GetUserPat.js.map +1 -0
- package/services/WcpService/LogoutUser.d.ts +9 -0
- package/services/WcpService/LogoutUser.js +12 -0
- package/services/WcpService/LogoutUser.js.map +1 -0
- package/services/WcpService/StorePatToLocalStorage.d.ts +9 -0
- package/services/WcpService/StorePatToLocalStorage.js +13 -0
- package/services/WcpService/StorePatToLocalStorage.js.map +1 -0
- package/services/WcpService/UnsetPatFromLocalStorage.d.ts +9 -0
- package/services/WcpService/UnsetPatFromLocalStorage.js +13 -0
- package/services/WcpService/UnsetPatFromLocalStorage.js.map +1 -0
- package/services/WcpService/WcpGqlClient.d.ts +3 -0
- package/services/WcpService/WcpGqlClient.js +10 -0
- package/services/WcpService/WcpGqlClient.js.map +1 -0
- package/services/WcpService/WcpService.d.ts +22 -0
- package/services/WcpService/WcpService.js +91 -0
- package/services/WcpService/WcpService.js.map +1 -0
- package/services/WcpService/index.d.ts +1 -0
- package/services/WcpService/index.js +3 -0
- package/services/WcpService/index.js.map +1 -0
- package/services/index.d.ts +35 -0
- package/services/index.js +37 -0
- package/services/index.js.map +1 -0
- package/utils/ImplPathResolver.d.ts +10 -0
- package/utils/ImplPathResolver.js +27 -0
- package/utils/ImplPathResolver.js.map +1 -0
- package/utils/constants.d.ts +8 -0
- package/utils/constants.js +10 -0
- package/utils/constants.js.map +1 -0
- package/utils/createPathResolver.d.ts +1 -0
- package/utils/createPathResolver.js +8 -0
- package/utils/createPathResolver.js.map +1 -0
- package/utils/env/configuration.d.ts +12 -0
- package/utils/env/configuration.js +28 -0
- package/utils/env/configuration.js.map +1 -0
- package/utils/env/index.d.ts +7 -0
- package/utils/env/index.js +8 -0
- package/utils/env/index.js.map +1 -0
- package/utils/env/types.d.ts +9 -0
- package/utils/env/types.js +3 -0
- package/utils/env/types.js.map +1 -0
- package/utils/env/withEnv.d.ts +4 -0
- package/utils/env/withEnv.js +10 -0
- package/utils/env/withEnv.js.map +1 -0
- package/utils/env/withEnvVariant.d.ts +4 -0
- package/utils/env/withEnvVariant.js +14 -0
- package/utils/env/withEnvVariant.js.map +1 -0
- package/utils/env/withProjectName.d.ts +5 -0
- package/utils/env/withProjectName.js +12 -0
- package/utils/env/withProjectName.js.map +1 -0
- package/utils/env/withPulumiConfigPassphrase.d.ts +1 -0
- package/utils/env/withPulumiConfigPassphrase.js +11 -0
- package/utils/env/withPulumiConfigPassphrase.js.map +1 -0
- package/utils/env/withRegion.d.ts +4 -0
- package/utils/env/withRegion.js +21 -0
- package/utils/env/withRegion.js.map +1 -0
- package/utils/getRandomColorForString.d.ts +1 -0
- package/utils/getRandomColorForString.js +11 -0
- package/utils/getRandomColorForString.js.map +1 -0
- package/utils/getStackName.d.ts +14 -0
- package/utils/getStackName.js +22 -0
- package/utils/getStackName.js.map +1 -0
- package/utils/getTemplatesFolderPath.d.ts +1 -0
- package/utils/getTemplatesFolderPath.js +13 -0
- package/utils/getTemplatesFolderPath.js.map +1 -0
- package/utils/index.d.ts +12 -0
- package/utils/index.js +14 -0
- package/utils/index.js.map +1 -0
- package/utils/isValidRegionName.d.ts +2 -0
- package/utils/isValidRegionName.js +17 -0
- package/utils/isValidRegionName.js.map +1 -0
- package/utils/isValidVariantName.d.ts +2 -0
- package/utils/isValidVariantName.js +13 -0
- package/utils/isValidVariantName.js.map +1 -0
- package/utils/measureDuration.d.ts +1 -0
- package/utils/measureDuration.js +11 -0
- package/utils/measureDuration.js.map +1 -0
- package/utils/projectSdkContext.d.ts +19 -0
- package/utils/projectSdkContext.js +44 -0
- package/utils/projectSdkContext.js.map +1 -0
- package/utils/regions.d.ts +5 -0
- package/utils/regions.js +65 -0
- package/utils/regions.js.map +1 -0
- package/utils/registerExtension.d.ts +6 -0
- package/utils/registerExtension.js +19 -0
- package/utils/registerExtension.js.map +1 -0
- package/utils/requireConfig.d.ts +18 -0
- package/utils/requireConfig.js +12 -0
- package/utils/requireConfig.js.map +1 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { ListAppLambdaFunctionsService, PulumiExportService, LoggerService } from "../../abstractions/index.js";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import minimatch from "minimatch";
|
|
5
|
+
export class DefaultListAppLambdaFunctionsService {
|
|
6
|
+
constructor(pulumiExportService, loggerService) {
|
|
7
|
+
this.pulumiExportService = pulumiExportService;
|
|
8
|
+
this.loggerService = loggerService;
|
|
9
|
+
}
|
|
10
|
+
async execute(app, params) {
|
|
11
|
+
const stackExport = await this.pulumiExportService.execute(app);
|
|
12
|
+
if (!stackExport) {
|
|
13
|
+
// If no stack export is found, return an empty array. This is a valid scenario.
|
|
14
|
+
// For example, watching the Admin app locally, but not deploying it.
|
|
15
|
+
return {
|
|
16
|
+
list: [],
|
|
17
|
+
meta: {
|
|
18
|
+
count: 0,
|
|
19
|
+
totalCount: 0
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// If an app is not deployed, resources will not exist.
|
|
25
|
+
const resources = stackExport.deployment?.resources ?? [];
|
|
26
|
+
const allFunctionsList = resources.filter(r => r.type === "aws:lambda/function:Function")
|
|
27
|
+
// We don't need to watch the authorizer function.
|
|
28
|
+
.filter(resource => {
|
|
29
|
+
const isAuthorizerFunction = resource.inputs.name.includes("watch-command-iot-authorizer");
|
|
30
|
+
return !isAuthorizerFunction;
|
|
31
|
+
});
|
|
32
|
+
let filteredFunctionsList = allFunctionsList
|
|
33
|
+
// First, this filter ensures that Lambda@Edge functions are excluded. Second,
|
|
34
|
+
// it also ensures a function is filtered out if a `pulumi refresh` was called.
|
|
35
|
+
// This is because, when called, the paths in Pulumi state file disappear, and
|
|
36
|
+
// we can't determine the path to the handler. Probably needs revisiting. 🤦♂️
|
|
37
|
+
.filter(resource => {
|
|
38
|
+
return "." in resource.inputs.code.assets;
|
|
39
|
+
}).map(resource => {
|
|
40
|
+
const fnName = resource.inputs.name;
|
|
41
|
+
const handlerBuildFolderPath = resource.inputs.code.assets["."].path;
|
|
42
|
+
const handlerPath = path.join(handlerBuildFolderPath, "handler.mjs");
|
|
43
|
+
return {
|
|
44
|
+
name: fnName,
|
|
45
|
+
path: handlerPath
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
if (params?.whitelist?.length) {
|
|
49
|
+
const functionNamesToMatch = Array.isArray(params.whitelist) ? params.whitelist : [params.whitelist];
|
|
50
|
+
|
|
51
|
+
// `functionNamesToWatch` is an array of glob patterns, which denote which functions to watch.
|
|
52
|
+
filteredFunctionsList = filteredFunctionsList.filter(fn => {
|
|
53
|
+
return functionNamesToMatch.some(pattern => {
|
|
54
|
+
if (pattern.includes("*")) {
|
|
55
|
+
return minimatch(fn.name, pattern);
|
|
56
|
+
}
|
|
57
|
+
return fn.name.includes(pattern);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
} else {
|
|
61
|
+
// We've hardcoded this filtering here just because of lack of time.
|
|
62
|
+
// With v5, these "presets" were located within `webiny.application.ts` files.
|
|
63
|
+
if (app.name === "api") {
|
|
64
|
+
filteredFunctionsList = filteredFunctionsList.filter(fn => {
|
|
65
|
+
return fn.name.includes("graphql");
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
list: filteredFunctionsList,
|
|
71
|
+
meta: {
|
|
72
|
+
count: filteredFunctionsList.length,
|
|
73
|
+
totalCount: allFunctionsList.length
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export const listAppLambdaFunctionsService = createImplementation({
|
|
79
|
+
abstraction: ListAppLambdaFunctionsService,
|
|
80
|
+
implementation: DefaultListAppLambdaFunctionsService,
|
|
81
|
+
dependencies: [PulumiExportService, LoggerService]
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=ListAppLambdaFunctionsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createImplementation","ListAppLambdaFunctionsService","PulumiExportService","LoggerService","path","minimatch","DefaultListAppLambdaFunctionsService","constructor","pulumiExportService","loggerService","execute","app","params","stackExport","list","meta","count","totalCount","resources","deployment","allFunctionsList","filter","r","type","resource","isAuthorizerFunction","inputs","name","includes","filteredFunctionsList","code","assets","map","fnName","handlerBuildFolderPath","handlerPath","join","whitelist","length","functionNamesToMatch","Array","isArray","fn","some","pattern","listAppLambdaFunctionsService","abstraction","implementation","dependencies"],"sources":["ListAppLambdaFunctionsService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport {\n ListAppLambdaFunctionsService,\n PulumiExportService,\n LoggerService\n} from \"~/abstractions/index.js\";\nimport { type AppModel } from \"~/models/index.js\";\nimport path from \"path\";\nimport minimatch from \"minimatch\";\n\ninterface ExpectedStackExport {\n deployment: {\n resources: Array<{\n type: string;\n inputs: {\n name: string;\n code: {\n assets: Record<string, { path: string }>;\n };\n };\n }>;\n };\n}\n\nexport class DefaultListAppLambdaFunctionsService\n implements ListAppLambdaFunctionsService.Interface\n{\n constructor(\n private pulumiExportService: PulumiExportService.Interface,\n private loggerService: LoggerService.Interface\n ) {}\n\n async execute(app: AppModel, params?: ListAppLambdaFunctionsService.Params) {\n const stackExport = await this.pulumiExportService.execute<ExpectedStackExport>(app);\n\n if (!stackExport) {\n // If no stack export is found, return an empty array. This is a valid scenario.\n // For example, watching the Admin app locally, but not deploying it.\n return {\n list: [],\n meta: {\n count: 0,\n totalCount: 0\n }\n };\n }\n\n // If an app is not deployed, resources will not exist.\n const resources = stackExport.deployment?.resources ?? [];\n\n const allFunctionsList = resources\n .filter(r => r.type === \"aws:lambda/function:Function\")\n // We don't need to watch the authorizer function.\n .filter(resource => {\n const isAuthorizerFunction = resource.inputs.name.includes(\n \"watch-command-iot-authorizer\"\n );\n return !isAuthorizerFunction;\n });\n\n let filteredFunctionsList = allFunctionsList\n // First, this filter ensures that Lambda@Edge functions are excluded. Second,\n // it also ensures a function is filtered out if a `pulumi refresh` was called.\n // This is because, when called, the paths in Pulumi state file disappear, and\n // we can't determine the path to the handler. Probably needs revisiting. 🤦♂️\n .filter(resource => {\n return \".\" in resource.inputs.code.assets;\n })\n .map(resource => {\n const fnName = resource.inputs.name;\n const handlerBuildFolderPath = resource.inputs.code.assets[\".\"].path;\n\n const handlerPath = path.join(handlerBuildFolderPath, \"handler.mjs\");\n return {\n name: fnName,\n path: handlerPath\n };\n });\n\n if (params?.whitelist?.length) {\n const functionNamesToMatch = Array.isArray(params.whitelist)\n ? params.whitelist\n : [params.whitelist];\n\n // `functionNamesToWatch` is an array of glob patterns, which denote which functions to watch.\n filteredFunctionsList = filteredFunctionsList.filter(fn => {\n return functionNamesToMatch.some(pattern => {\n if (pattern.includes(\"*\")) {\n return minimatch(fn.name, pattern);\n }\n\n return fn.name.includes(pattern);\n });\n });\n } else {\n // We've hardcoded this filtering here just because of lack of time.\n // With v5, these \"presets\" were located within `webiny.application.ts` files.\n if (app.name === \"api\") {\n filteredFunctionsList = filteredFunctionsList.filter(fn => {\n return fn.name.includes(\"graphql\");\n });\n }\n }\n\n return {\n list: filteredFunctionsList,\n meta: { count: filteredFunctionsList.length, totalCount: allFunctionsList.length }\n };\n }\n}\n\nexport const listAppLambdaFunctionsService = createImplementation({\n abstraction: ListAppLambdaFunctionsService,\n implementation: DefaultListAppLambdaFunctionsService,\n dependencies: [PulumiExportService, LoggerService]\n});\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListAppLambdaFunctionsService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ListAppLambdaFunctionsService.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GetProjectService, ListDeployedEnvironmentsService } from "../../abstractions/index.js";
|
|
2
|
+
export declare class DefaultListDeployedEnvironmentsService implements ListDeployedEnvironmentsService.Interface {
|
|
3
|
+
private getProjectService;
|
|
4
|
+
constructor(getProjectService: GetProjectService.Interface);
|
|
5
|
+
execute(): Promise<import("~/utils/index.js").IStack[]>;
|
|
6
|
+
}
|
|
7
|
+
export declare const listDeployedEnvironmentsService: import("@webiny/di").Implementation<typeof DefaultListDeployedEnvironmentsService>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetProjectService, ListDeployedEnvironmentsService } from "../../abstractions/index.js";
|
|
3
|
+
import path from "path";
|
|
4
|
+
import glob from "fast-glob";
|
|
5
|
+
import { splitStackName } from "../../utils/index.js";
|
|
6
|
+
const STACK_JSONS_GLOB = ".pulumi/**/apps/core/.pulumi/stacks/**/*.json";
|
|
7
|
+
export class DefaultListDeployedEnvironmentsService {
|
|
8
|
+
constructor(getProjectService) {
|
|
9
|
+
this.getProjectService = getProjectService;
|
|
10
|
+
}
|
|
11
|
+
async execute() {
|
|
12
|
+
const project = this.getProjectService.execute();
|
|
13
|
+
|
|
14
|
+
// We just get stack files for deployed Core application. That's enough
|
|
15
|
+
// to determine into which environments the user has deployed their project.
|
|
16
|
+
const pulumiCoreStackFilesPaths = glob.sync(STACK_JSONS_GLOB, {
|
|
17
|
+
cwd: project.paths.rootFolder.toString(),
|
|
18
|
+
onlyFiles: true,
|
|
19
|
+
dot: true
|
|
20
|
+
});
|
|
21
|
+
return pulumiCoreStackFilesPaths.map(current => {
|
|
22
|
+
return splitStackName(path.basename(current, ".json"));
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export const listDeployedEnvironmentsService = createImplementation({
|
|
27
|
+
abstraction: ListDeployedEnvironmentsService,
|
|
28
|
+
implementation: DefaultListDeployedEnvironmentsService,
|
|
29
|
+
dependencies: [GetProjectService]
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=ListDeployedEnvironmentsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createImplementation","GetProjectService","ListDeployedEnvironmentsService","path","glob","splitStackName","STACK_JSONS_GLOB","DefaultListDeployedEnvironmentsService","constructor","getProjectService","execute","project","pulumiCoreStackFilesPaths","sync","cwd","paths","rootFolder","toString","onlyFiles","dot","map","current","basename","listDeployedEnvironmentsService","abstraction","implementation","dependencies"],"sources":["ListDeployedEnvironmentsService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService, ListDeployedEnvironmentsService } from \"~/abstractions/index.js\";\nimport path from \"path\";\nimport glob from \"fast-glob\";\nimport { splitStackName } from \"~/utils/index.js\";\n\nconst STACK_JSONS_GLOB = \".pulumi/**/apps/core/.pulumi/stacks/**/*.json\";\n\nexport class DefaultListDeployedEnvironmentsService\n implements ListDeployedEnvironmentsService.Interface\n{\n constructor(private getProjectService: GetProjectService.Interface) {}\n\n async execute() {\n const project = this.getProjectService.execute();\n\n // We just get stack files for deployed Core application. That's enough\n // to determine into which environments the user has deployed their project.\n const pulumiCoreStackFilesPaths = glob.sync(STACK_JSONS_GLOB, {\n cwd: project.paths.rootFolder.toString(),\n onlyFiles: true,\n dot: true\n });\n\n return pulumiCoreStackFilesPaths.map(current => {\n return splitStackName(path.basename(current, \".json\"));\n });\n }\n}\n\nexport const listDeployedEnvironmentsService = createImplementation({\n abstraction: ListDeployedEnvironmentsService,\n implementation: DefaultListDeployedEnvironmentsService,\n dependencies: [GetProjectService]\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,YAAY;AACjD,SAASC,iBAAiB,EAAEC,+BAA+B;AAC3D,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,IAAI,MAAM,WAAW;AAC5B,SAASC,cAAc;AAEvB,MAAMC,gBAAgB,GAAG,+CAA+C;AAExE,OAAO,MAAMC,sCAAsC,CAEnD;EACIC,WAAWA,CAASC,iBAA8C,EAAE;IAAA,KAAhDA,iBAA8C,GAA9CA,iBAA8C;EAAG;EAErE,MAAMC,OAAOA,CAAA,EAAG;IACZ,MAAMC,OAAO,GAAG,IAAI,CAACF,iBAAiB,CAACC,OAAO,CAAC,CAAC;;IAEhD;IACA;IACA,MAAME,yBAAyB,GAAGR,IAAI,CAACS,IAAI,CAACP,gBAAgB,EAAE;MAC1DQ,GAAG,EAAEH,OAAO,CAACI,KAAK,CAACC,UAAU,CAACC,QAAQ,CAAC,CAAC;MACxCC,SAAS,EAAE,IAAI;MACfC,GAAG,EAAE;IACT,CAAC,CAAC;IAEF,OAAOP,yBAAyB,CAACQ,GAAG,CAACC,OAAO,IAAI;MAC5C,OAAOhB,cAAc,CAACF,IAAI,CAACmB,QAAQ,CAACD,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;EACN;AACJ;AAEA,OAAO,MAAME,+BAA+B,GAAGvB,oBAAoB,CAAC;EAChEwB,WAAW,EAAEtB,+BAA+B;EAC5CuB,cAAc,EAAElB,sCAAsC;EACtDmB,YAAY,EAAE,CAACzB,iBAAiB;AACpC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListDeployedEnvironmentsService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ListDeployedEnvironmentsService.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GetApp, ListPackagesInAppWorkspaceService } from "../../abstractions/index.js";
|
|
2
|
+
import { type AppName } from "../../abstractions/types.js";
|
|
3
|
+
export declare class DefaultListPackagesInAppWorkspaceService implements ListPackagesInAppWorkspaceService.Interface {
|
|
4
|
+
private getApp;
|
|
5
|
+
constructor(getApp: GetApp.Interface);
|
|
6
|
+
execute(appName: AppName): Promise<{
|
|
7
|
+
name: string;
|
|
8
|
+
webinyConfig: {};
|
|
9
|
+
paths: {
|
|
10
|
+
packageFolder: string;
|
|
11
|
+
webinyConfigFile: string;
|
|
12
|
+
};
|
|
13
|
+
}[]>;
|
|
14
|
+
}
|
|
15
|
+
export declare const listPackagesInAppWorkspaceService: import("@webiny/di").Implementation<typeof DefaultListPackagesInAppWorkspaceService>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetApp, ListPackagesInAppWorkspaceService } from "../../abstractions/index.js";
|
|
3
|
+
import glob from "fast-glob";
|
|
4
|
+
import path from "path";
|
|
5
|
+
export class DefaultListPackagesInAppWorkspaceService {
|
|
6
|
+
constructor(getApp) {
|
|
7
|
+
this.getApp = getApp;
|
|
8
|
+
}
|
|
9
|
+
async execute(appName) {
|
|
10
|
+
const app = this.getApp.execute(appName);
|
|
11
|
+
const globResults = glob.sync("**/webiny.config.ts", {
|
|
12
|
+
cwd: app.paths.workspaceFolder.toString(),
|
|
13
|
+
absolute: true,
|
|
14
|
+
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
15
|
+
});
|
|
16
|
+
return globResults.map(webinyConfigFilePath => {
|
|
17
|
+
const packageFolderPath = path.dirname(webinyConfigFilePath);
|
|
18
|
+
return {
|
|
19
|
+
name: path.basename(packageFolderPath),
|
|
20
|
+
webinyConfig: {},
|
|
21
|
+
paths: {
|
|
22
|
+
packageFolder: packageFolderPath,
|
|
23
|
+
webinyConfigFile: webinyConfigFilePath
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export const listPackagesInAppWorkspaceService = createImplementation({
|
|
30
|
+
abstraction: ListPackagesInAppWorkspaceService,
|
|
31
|
+
implementation: DefaultListPackagesInAppWorkspaceService,
|
|
32
|
+
// TODO: move getApp into a service
|
|
33
|
+
dependencies: [GetApp]
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=ListPackagesInAppWorkspaceService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createImplementation","GetApp","ListPackagesInAppWorkspaceService","glob","path","DefaultListPackagesInAppWorkspaceService","constructor","getApp","execute","appName","app","globResults","sync","cwd","paths","workspaceFolder","toString","absolute","ignore","map","webinyConfigFilePath","packageFolderPath","dirname","name","basename","webinyConfig","packageFolder","webinyConfigFile","listPackagesInAppWorkspaceService","abstraction","implementation","dependencies"],"sources":["ListPackagesInAppWorkspaceService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetApp, ListPackagesInAppWorkspaceService } from \"~/abstractions/index.js\";\nimport glob from \"fast-glob\";\nimport { type AppName } from \"~/abstractions/types.js\";\nimport path from \"path\";\n\nexport class DefaultListPackagesInAppWorkspaceService\n implements ListPackagesInAppWorkspaceService.Interface\n{\n constructor(private getApp: GetApp.Interface) {}\n\n async execute(appName: AppName) {\n const app = this.getApp.execute(appName);\n\n const globResults = glob.sync(\"**/webiny.config.ts\", {\n cwd: app.paths.workspaceFolder.toString(),\n absolute: true,\n ignore: [\"**/node_modules/**\", \"**/dist/**\"]\n });\n\n return globResults.map(webinyConfigFilePath => {\n const packageFolderPath = path.dirname(webinyConfigFilePath);\n return {\n name: path.basename(packageFolderPath),\n webinyConfig: {},\n paths: {\n packageFolder: packageFolderPath,\n webinyConfigFile: webinyConfigFilePath\n }\n };\n });\n }\n}\n\nexport const listPackagesInAppWorkspaceService = createImplementation({\n abstraction: ListPackagesInAppWorkspaceService,\n implementation: DefaultListPackagesInAppWorkspaceService,\n // TODO: move getApp into a service\n dependencies: [GetApp]\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,YAAY;AACjD,SAASC,MAAM,EAAEC,iCAAiC;AAClD,OAAOC,IAAI,MAAM,WAAW;AAE5B,OAAOC,IAAI,MAAM,MAAM;AAEvB,OAAO,MAAMC,wCAAwC,CAErD;EACIC,WAAWA,CAASC,MAAwB,EAAE;IAAA,KAA1BA,MAAwB,GAAxBA,MAAwB;EAAG;EAE/C,MAAMC,OAAOA,CAACC,OAAgB,EAAE;IAC5B,MAAMC,GAAG,GAAG,IAAI,CAACH,MAAM,CAACC,OAAO,CAACC,OAAO,CAAC;IAExC,MAAME,WAAW,GAAGR,IAAI,CAACS,IAAI,CAAC,qBAAqB,EAAE;MACjDC,GAAG,EAAEH,GAAG,CAACI,KAAK,CAACC,eAAe,CAACC,QAAQ,CAAC,CAAC;MACzCC,QAAQ,EAAE,IAAI;MACdC,MAAM,EAAE,CAAC,oBAAoB,EAAE,YAAY;IAC/C,CAAC,CAAC;IAEF,OAAOP,WAAW,CAACQ,GAAG,CAACC,oBAAoB,IAAI;MAC3C,MAAMC,iBAAiB,GAAGjB,IAAI,CAACkB,OAAO,CAACF,oBAAoB,CAAC;MAC5D,OAAO;QACHG,IAAI,EAAEnB,IAAI,CAACoB,QAAQ,CAACH,iBAAiB,CAAC;QACtCI,YAAY,EAAE,CAAC,CAAC;QAChBX,KAAK,EAAE;UACHY,aAAa,EAAEL,iBAAiB;UAChCM,gBAAgB,EAAEP;QACtB;MACJ,CAAC;IACL,CAAC,CAAC;EACN;AACJ;AAEA,OAAO,MAAMQ,iCAAiC,GAAG5B,oBAAoB,CAAC;EAClE6B,WAAW,EAAE3B,iCAAiC;EAC9C4B,cAAc,EAAEzB,wCAAwC;EACxD;EACA0B,YAAY,EAAE,CAAC9B,MAAM;AACzB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListPackagesInAppWorkspaceService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ListPackagesInAppWorkspaceService.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GetAppService, GetProjectService, ListPackagesService } from "../../abstractions/index.js";
|
|
2
|
+
export declare class DefaultListPackagesService implements ListPackagesService.Interface {
|
|
3
|
+
private getProjectService;
|
|
4
|
+
private getAppService;
|
|
5
|
+
constructor(getProjectService: GetProjectService.Interface, getAppService: GetAppService.Interface);
|
|
6
|
+
execute(params: ListPackagesService.Params): Promise<import("../../abstractions/services/ListPackagesService").IListPackagesPackage[]>;
|
|
7
|
+
}
|
|
8
|
+
export declare const listPackagesService: import("@webiny/di").Implementation<typeof DefaultListPackagesService>;
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetAppService, GetProjectService, ListPackagesService } from "../../abstractions/index.js";
|
|
3
|
+
import fs from "fs";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import glob from "fast-glob";
|
|
6
|
+
const globToRegex = pattern => {
|
|
7
|
+
// Escape regex special chars except *
|
|
8
|
+
const escaped = pattern.replace(/[-\/\\^$+?.()|[\]{}]/g, "\\$&");
|
|
9
|
+
// Replace * with .* in regex pattern
|
|
10
|
+
const regexStr = "^" + escaped.replace(/\*/g, ".*") + "$";
|
|
11
|
+
return new RegExp(regexStr);
|
|
12
|
+
};
|
|
13
|
+
const matchesGlobPattern = (packageName, pattern) => {
|
|
14
|
+
// Try matching with the full package name
|
|
15
|
+
const regex = globToRegex(pattern);
|
|
16
|
+
if (regex.test(packageName)) {
|
|
17
|
+
return true;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Also try matching against the name without @webiny/ or @app/ prefix
|
|
21
|
+
const withoutPrefix = packageName.replace(/^@[^/]+\//, "");
|
|
22
|
+
if (regex.test(withoutPrefix)) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// If pattern doesn't start with @, also try adding @webiny/ prefix to pattern
|
|
27
|
+
if (!pattern.startsWith("@")) {
|
|
28
|
+
const regexWithPrefix = globToRegex(`@webiny/${pattern}`);
|
|
29
|
+
if (regexWithPrefix.test(packageName)) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return false;
|
|
34
|
+
};
|
|
35
|
+
export class DefaultListPackagesService {
|
|
36
|
+
constructor(getProjectService, getAppService) {
|
|
37
|
+
this.getProjectService = getProjectService;
|
|
38
|
+
this.getAppService = getAppService;
|
|
39
|
+
}
|
|
40
|
+
async execute(params) {
|
|
41
|
+
if (!params.appName && !params.packageWhitelist) {
|
|
42
|
+
throw new Error(`Either "packageWhitelist" or "appName" argument must be provided.`);
|
|
43
|
+
}
|
|
44
|
+
const {
|
|
45
|
+
packageWhitelist = [],
|
|
46
|
+
appName
|
|
47
|
+
} = params;
|
|
48
|
+
const project = this.getProjectService.execute();
|
|
49
|
+
const app = appName ? this.getAppService.execute(appName) : null;
|
|
50
|
+
|
|
51
|
+
// List all packages in `packages` folder.
|
|
52
|
+
let packagesFullList = [];
|
|
53
|
+
const packagesFolderPath = project.paths.rootFolder.join("packages").toString();
|
|
54
|
+
if (fs.existsSync(packagesFolderPath)) {
|
|
55
|
+
packagesFullList = fs.readdirSync(project.paths.rootFolder.join("packages").toString()).map(name => {
|
|
56
|
+
const pkgFolderPath = project.paths.rootFolder.join("/packages/", name).toString();
|
|
57
|
+
let webinyConfigPath = path.join(pkgFolderPath, "webiny.config.ts");
|
|
58
|
+
if (!fs.existsSync(webinyConfigPath)) {
|
|
59
|
+
webinyConfigPath = path.join(pkgFolderPath, "webiny.config.js");
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
name: `@webiny/${name}`,
|
|
63
|
+
paths: {
|
|
64
|
+
packageFolder: pkgFolderPath,
|
|
65
|
+
webinyConfigFile: webinyConfigPath
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
}).filter(Boolean);
|
|
69
|
+
}
|
|
70
|
+
if (app) {
|
|
71
|
+
const webinyConfigPaths = glob.sync("**/webiny.config.@(ts|js)", {
|
|
72
|
+
cwd: app.paths.workspaceFolder.toString(),
|
|
73
|
+
absolute: true,
|
|
74
|
+
ignore: ["**/node_modules/**", "**/dist/**"]
|
|
75
|
+
});
|
|
76
|
+
const appPackages = webinyConfigPaths.map(webinyConfigPath => {
|
|
77
|
+
const packageFolderPath = path.dirname(webinyConfigPath);
|
|
78
|
+
const packageName = path.basename(packageFolderPath);
|
|
79
|
+
return {
|
|
80
|
+
name: `@${app.name}/${packageName}`,
|
|
81
|
+
paths: {
|
|
82
|
+
packageFolder: packageFolderPath,
|
|
83
|
+
webinyConfigFile: webinyConfigPath
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
packagesFullList.push(...appPackages);
|
|
88
|
+
}
|
|
89
|
+
const packagesToWatch = [];
|
|
90
|
+
if (packageWhitelist.length) {
|
|
91
|
+
const whitelistedPackages = packageWhitelist.map(whitelistedPkgName => {
|
|
92
|
+
return whitelistedPkgName.split(",");
|
|
93
|
+
}).flat().map(whitelistedPkgName => whitelistedPkgName.trim()).map(whitelistedPkgName => {
|
|
94
|
+
return packagesFullList.filter(pkg => {
|
|
95
|
+
if (whitelistedPkgName.includes("*")) {
|
|
96
|
+
return matchesGlobPattern(pkg.name, whitelistedPkgName);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// We consider both `name` and `@webiny/name` as valid package names.
|
|
100
|
+
// The @webiny/ prefix is optional (makes it easier to type for us).
|
|
101
|
+
return pkg.name === whitelistedPkgName || pkg.name === `@webiny/${whitelistedPkgName}`;
|
|
102
|
+
});
|
|
103
|
+
}).flat().filter(Boolean);
|
|
104
|
+
packagesToWatch.push(...whitelistedPackages);
|
|
105
|
+
}
|
|
106
|
+
if (app) {
|
|
107
|
+
// We've hardcoded this filtering here just because of lack of time.
|
|
108
|
+
// With v5, these "presets" were located within `webiny.application.ts` files.
|
|
109
|
+
if (app.name === "api") {
|
|
110
|
+
packagesToWatch.push(...packagesFullList.filter(pkg => {
|
|
111
|
+
return pkg.name === "@api/graphql";
|
|
112
|
+
}));
|
|
113
|
+
return packagesToWatch;
|
|
114
|
+
}
|
|
115
|
+
packagesToWatch.push(...packagesFullList.filter(pkg => {
|
|
116
|
+
return pkg.name.startsWith(`@${app.name}`);
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
119
|
+
return packagesToWatch;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
export const listPackagesService = createImplementation({
|
|
123
|
+
abstraction: ListPackagesService,
|
|
124
|
+
implementation: DefaultListPackagesService,
|
|
125
|
+
// TODO: move getApp into a service
|
|
126
|
+
dependencies: [GetProjectService, GetAppService]
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
//# sourceMappingURL=ListPackagesService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createImplementation","GetAppService","GetProjectService","ListPackagesService","fs","path","glob","globToRegex","pattern","escaped","replace","regexStr","RegExp","matchesGlobPattern","packageName","regex","test","withoutPrefix","startsWith","regexWithPrefix","DefaultListPackagesService","constructor","getProjectService","getAppService","execute","params","appName","packageWhitelist","Error","project","app","packagesFullList","packagesFolderPath","paths","rootFolder","join","toString","existsSync","readdirSync","map","name","pkgFolderPath","webinyConfigPath","packageFolder","webinyConfigFile","filter","Boolean","webinyConfigPaths","sync","cwd","workspaceFolder","absolute","ignore","appPackages","packageFolderPath","dirname","basename","push","packagesToWatch","length","whitelistedPackages","whitelistedPkgName","split","flat","trim","pkg","includes","listPackagesService","abstraction","implementation","dependencies"],"sources":["ListPackagesService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetAppService, GetProjectService, ListPackagesService } from \"~/abstractions/index.js\";\nimport fs from \"fs\";\nimport path from \"path\";\nimport glob from \"fast-glob\";\n\nconst globToRegex = (pattern: string) => {\n // Escape regex special chars except *\n const escaped = pattern.replace(/[-\\/\\\\^$+?.()|[\\]{}]/g, \"\\\\$&\");\n // Replace * with .* in regex pattern\n const regexStr = \"^\" + escaped.replace(/\\*/g, \".*\") + \"$\";\n return new RegExp(regexStr);\n};\n\nconst matchesGlobPattern = (packageName: string, pattern: string): boolean => {\n // Try matching with the full package name\n const regex = globToRegex(pattern);\n if (regex.test(packageName)) {\n return true;\n }\n\n // Also try matching against the name without @webiny/ or @app/ prefix\n const withoutPrefix = packageName.replace(/^@[^/]+\\//, \"\");\n if (regex.test(withoutPrefix)) {\n return true;\n }\n\n // If pattern doesn't start with @, also try adding @webiny/ prefix to pattern\n if (!pattern.startsWith(\"@\")) {\n const regexWithPrefix = globToRegex(`@webiny/${pattern}`);\n if (regexWithPrefix.test(packageName)) {\n return true;\n }\n }\n\n return false;\n};\n\nexport class DefaultListPackagesService implements ListPackagesService.Interface {\n constructor(\n private getProjectService: GetProjectService.Interface,\n private getAppService: GetAppService.Interface\n ) {}\n\n async execute(params: ListPackagesService.Params) {\n if (!params.appName && !params.packageWhitelist) {\n throw new Error(`Either \"packageWhitelist\" or \"appName\" argument must be provided.`);\n }\n\n const { packageWhitelist = [], appName } = params;\n const project = this.getProjectService.execute();\n const app = appName ? this.getAppService.execute(appName) : null;\n\n // List all packages in `packages` folder.\n let packagesFullList: ListPackagesService.Result = [];\n\n const packagesFolderPath = project.paths.rootFolder.join(\"packages\").toString();\n if (fs.existsSync(packagesFolderPath)) {\n packagesFullList = fs\n .readdirSync(project.paths.rootFolder.join(\"packages\").toString())\n .map(name => {\n const pkgFolderPath = project.paths.rootFolder\n .join(\"/packages/\", name)\n .toString();\n\n let webinyConfigPath = path.join(pkgFolderPath, \"webiny.config.ts\");\n if (!fs.existsSync(webinyConfigPath)) {\n webinyConfigPath = path.join(pkgFolderPath, \"webiny.config.js\");\n }\n\n return {\n name: `@webiny/${name}`,\n paths: {\n packageFolder: pkgFolderPath,\n webinyConfigFile: webinyConfigPath\n }\n } as ListPackagesService.Package;\n })\n .filter(Boolean);\n }\n\n if (app) {\n const webinyConfigPaths = glob.sync(\"**/webiny.config.@(ts|js)\", {\n cwd: app.paths.workspaceFolder.toString(),\n absolute: true,\n ignore: [\"**/node_modules/**\", \"**/dist/**\"]\n });\n\n const appPackages = webinyConfigPaths.map(webinyConfigPath => {\n const packageFolderPath = path.dirname(webinyConfigPath);\n const packageName = path.basename(packageFolderPath);\n\n return {\n name: `@${app.name}/${packageName}`,\n paths: {\n packageFolder: packageFolderPath,\n webinyConfigFile: webinyConfigPath\n }\n } as ListPackagesService.Package;\n });\n\n packagesFullList.push(...appPackages);\n }\n\n const packagesToWatch = [];\n\n if (packageWhitelist.length) {\n const whitelistedPackages = packageWhitelist\n .map(whitelistedPkgName => {\n return whitelistedPkgName.split(\",\");\n })\n .flat()\n .map(whitelistedPkgName => whitelistedPkgName.trim())\n .map(whitelistedPkgName => {\n return packagesFullList.filter(pkg => {\n if (whitelistedPkgName.includes(\"*\")) {\n return matchesGlobPattern(pkg.name, whitelistedPkgName);\n }\n\n // We consider both `name` and `@webiny/name` as valid package names.\n // The @webiny/ prefix is optional (makes it easier to type for us).\n return (\n pkg.name === whitelistedPkgName ||\n pkg.name === `@webiny/${whitelistedPkgName}`\n );\n });\n })\n .flat()\n .filter(Boolean) as ListPackagesService.Result;\n\n packagesToWatch.push(...whitelistedPackages);\n }\n\n if (app) {\n // We've hardcoded this filtering here just because of lack of time.\n // With v5, these \"presets\" were located within `webiny.application.ts` files.\n if (app.name === \"api\") {\n packagesToWatch.push(\n ...packagesFullList.filter(pkg => {\n return pkg.name === \"@api/graphql\";\n })\n );\n\n return packagesToWatch;\n }\n\n packagesToWatch.push(\n ...packagesFullList.filter(pkg => {\n return pkg.name.startsWith(`@${app.name}`);\n })\n );\n }\n\n return packagesToWatch;\n }\n}\n\nexport const listPackagesService = createImplementation({\n abstraction: ListPackagesService,\n implementation: DefaultListPackagesService,\n // TODO: move getApp into a service\n dependencies: [GetProjectService, GetAppService]\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,YAAY;AACjD,SAASC,aAAa,EAAEC,iBAAiB,EAAEC,mBAAmB;AAC9D,OAAOC,EAAE,MAAM,IAAI;AACnB,OAAOC,IAAI,MAAM,MAAM;AACvB,OAAOC,IAAI,MAAM,WAAW;AAE5B,MAAMC,WAAW,GAAIC,OAAe,IAAK;EACrC;EACA,MAAMC,OAAO,GAAGD,OAAO,CAACE,OAAO,CAAC,uBAAuB,EAAE,MAAM,CAAC;EAChE;EACA,MAAMC,QAAQ,GAAG,GAAG,GAAGF,OAAO,CAACC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,GAAG;EACzD,OAAO,IAAIE,MAAM,CAACD,QAAQ,CAAC;AAC/B,CAAC;AAED,MAAME,kBAAkB,GAAGA,CAACC,WAAmB,EAAEN,OAAe,KAAc;EAC1E;EACA,MAAMO,KAAK,GAAGR,WAAW,CAACC,OAAO,CAAC;EAClC,IAAIO,KAAK,CAACC,IAAI,CAACF,WAAW,CAAC,EAAE;IACzB,OAAO,IAAI;EACf;;EAEA;EACA,MAAMG,aAAa,GAAGH,WAAW,CAACJ,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC;EAC1D,IAAIK,KAAK,CAACC,IAAI,CAACC,aAAa,CAAC,EAAE;IAC3B,OAAO,IAAI;EACf;;EAEA;EACA,IAAI,CAACT,OAAO,CAACU,UAAU,CAAC,GAAG,CAAC,EAAE;IAC1B,MAAMC,eAAe,GAAGZ,WAAW,CAAC,WAAWC,OAAO,EAAE,CAAC;IACzD,IAAIW,eAAe,CAACH,IAAI,CAACF,WAAW,CAAC,EAAE;MACnC,OAAO,IAAI;IACf;EACJ;EAEA,OAAO,KAAK;AAChB,CAAC;AAED,OAAO,MAAMM,0BAA0B,CAA0C;EAC7EC,WAAWA,CACCC,iBAA8C,EAC9CC,aAAsC,EAChD;IAAA,KAFUD,iBAA8C,GAA9CA,iBAA8C;IAAA,KAC9CC,aAAsC,GAAtCA,aAAsC;EAC/C;EAEH,MAAMC,OAAOA,CAACC,MAAkC,EAAE;IAC9C,IAAI,CAACA,MAAM,CAACC,OAAO,IAAI,CAACD,MAAM,CAACE,gBAAgB,EAAE;MAC7C,MAAM,IAAIC,KAAK,CAAC,mEAAmE,CAAC;IACxF;IAEA,MAAM;MAAED,gBAAgB,GAAG,EAAE;MAAED;IAAQ,CAAC,GAAGD,MAAM;IACjD,MAAMI,OAAO,GAAG,IAAI,CAACP,iBAAiB,CAACE,OAAO,CAAC,CAAC;IAChD,MAAMM,GAAG,GAAGJ,OAAO,GAAG,IAAI,CAACH,aAAa,CAACC,OAAO,CAACE,OAAO,CAAC,GAAG,IAAI;;IAEhE;IACA,IAAIK,gBAA4C,GAAG,EAAE;IAErD,MAAMC,kBAAkB,GAAGH,OAAO,CAACI,KAAK,CAACC,UAAU,CAACC,IAAI,CAAC,UAAU,CAAC,CAACC,QAAQ,CAAC,CAAC;IAC/E,IAAIhC,EAAE,CAACiC,UAAU,CAACL,kBAAkB,CAAC,EAAE;MACnCD,gBAAgB,GAAG3B,EAAE,CAChBkC,WAAW,CAACT,OAAO,CAACI,KAAK,CAACC,UAAU,CAACC,IAAI,CAAC,UAAU,CAAC,CAACC,QAAQ,CAAC,CAAC,CAAC,CACjEG,GAAG,CAACC,IAAI,IAAI;QACT,MAAMC,aAAa,GAAGZ,OAAO,CAACI,KAAK,CAACC,UAAU,CACzCC,IAAI,CAAC,YAAY,EAAEK,IAAI,CAAC,CACxBJ,QAAQ,CAAC,CAAC;QAEf,IAAIM,gBAAgB,GAAGrC,IAAI,CAAC8B,IAAI,CAACM,aAAa,EAAE,kBAAkB,CAAC;QACnE,IAAI,CAACrC,EAAE,CAACiC,UAAU,CAACK,gBAAgB,CAAC,EAAE;UAClCA,gBAAgB,GAAGrC,IAAI,CAAC8B,IAAI,CAACM,aAAa,EAAE,kBAAkB,CAAC;QACnE;QAEA,OAAO;UACHD,IAAI,EAAE,WAAWA,IAAI,EAAE;UACvBP,KAAK,EAAE;YACHU,aAAa,EAAEF,aAAa;YAC5BG,gBAAgB,EAAEF;UACtB;QACJ,CAAC;MACL,CAAC,CAAC,CACDG,MAAM,CAACC,OAAO,CAAC;IACxB;IAEA,IAAIhB,GAAG,EAAE;MACL,MAAMiB,iBAAiB,GAAGzC,IAAI,CAAC0C,IAAI,CAAC,2BAA2B,EAAE;QAC7DC,GAAG,EAAEnB,GAAG,CAACG,KAAK,CAACiB,eAAe,CAACd,QAAQ,CAAC,CAAC;QACzCe,QAAQ,EAAE,IAAI;QACdC,MAAM,EAAE,CAAC,oBAAoB,EAAE,YAAY;MAC/C,CAAC,CAAC;MAEF,MAAMC,WAAW,GAAGN,iBAAiB,CAACR,GAAG,CAACG,gBAAgB,IAAI;QAC1D,MAAMY,iBAAiB,GAAGjD,IAAI,CAACkD,OAAO,CAACb,gBAAgB,CAAC;QACxD,MAAM5B,WAAW,GAAGT,IAAI,CAACmD,QAAQ,CAACF,iBAAiB,CAAC;QAEpD,OAAO;UACHd,IAAI,EAAE,IAAIV,GAAG,CAACU,IAAI,IAAI1B,WAAW,EAAE;UACnCmB,KAAK,EAAE;YACHU,aAAa,EAAEW,iBAAiB;YAChCV,gBAAgB,EAAEF;UACtB;QACJ,CAAC;MACL,CAAC,CAAC;MAEFX,gBAAgB,CAAC0B,IAAI,CAAC,GAAGJ,WAAW,CAAC;IACzC;IAEA,MAAMK,eAAe,GAAG,EAAE;IAE1B,IAAI/B,gBAAgB,CAACgC,MAAM,EAAE;MACzB,MAAMC,mBAAmB,GAAGjC,gBAAgB,CACvCY,GAAG,CAACsB,kBAAkB,IAAI;QACvB,OAAOA,kBAAkB,CAACC,KAAK,CAAC,GAAG,CAAC;MACxC,CAAC,CAAC,CACDC,IAAI,CAAC,CAAC,CACNxB,GAAG,CAACsB,kBAAkB,IAAIA,kBAAkB,CAACG,IAAI,CAAC,CAAC,CAAC,CACpDzB,GAAG,CAACsB,kBAAkB,IAAI;QACvB,OAAO9B,gBAAgB,CAACc,MAAM,CAACoB,GAAG,IAAI;UAClC,IAAIJ,kBAAkB,CAACK,QAAQ,CAAC,GAAG,CAAC,EAAE;YAClC,OAAOrD,kBAAkB,CAACoD,GAAG,CAACzB,IAAI,EAAEqB,kBAAkB,CAAC;UAC3D;;UAEA;UACA;UACA,OACII,GAAG,CAACzB,IAAI,KAAKqB,kBAAkB,IAC/BI,GAAG,CAACzB,IAAI,KAAK,WAAWqB,kBAAkB,EAAE;QAEpD,CAAC,CAAC;MACN,CAAC,CAAC,CACDE,IAAI,CAAC,CAAC,CACNlB,MAAM,CAACC,OAAO,CAA+B;MAElDY,eAAe,CAACD,IAAI,CAAC,GAAGG,mBAAmB,CAAC;IAChD;IAEA,IAAI9B,GAAG,EAAE;MACL;MACA;MACA,IAAIA,GAAG,CAACU,IAAI,KAAK,KAAK,EAAE;QACpBkB,eAAe,CAACD,IAAI,CAChB,GAAG1B,gBAAgB,CAACc,MAAM,CAACoB,GAAG,IAAI;UAC9B,OAAOA,GAAG,CAACzB,IAAI,KAAK,cAAc;QACtC,CAAC,CACL,CAAC;QAED,OAAOkB,eAAe;MAC1B;MAEAA,eAAe,CAACD,IAAI,CAChB,GAAG1B,gBAAgB,CAACc,MAAM,CAACoB,GAAG,IAAI;QAC9B,OAAOA,GAAG,CAACzB,IAAI,CAACtB,UAAU,CAAC,IAAIY,GAAG,CAACU,IAAI,EAAE,CAAC;MAC9C,CAAC,CACL,CAAC;IACL;IAEA,OAAOkB,eAAe;EAC1B;AACJ;AAEA,OAAO,MAAMS,mBAAmB,GAAGnE,oBAAoB,CAAC;EACpDoE,WAAW,EAAEjE,mBAAmB;EAChCkE,cAAc,EAAEjD,0BAA0B;EAC1C;EACAkD,YAAY,EAAE,CAACpE,iBAAiB,EAAED,aAAa;AACnD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListPackagesService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./ListPackagesService.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GetProjectService, LoadEnvVarsService, LoggerService } from "../../abstractions/index.js";
|
|
2
|
+
export declare class DefaultLoadEnvVarsService implements LoadEnvVarsService.Interface {
|
|
3
|
+
private getProjectService;
|
|
4
|
+
private loggerService;
|
|
5
|
+
constructor(getProjectService: GetProjectService.Interface, loggerService: LoggerService.Interface);
|
|
6
|
+
execute(): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
export declare const loadEnvVarsService: import("@webiny/di").Implementation<typeof DefaultLoadEnvVarsService>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetProjectService, LoadEnvVarsService, LoggerService } from "../../abstractions/index.js";
|
|
3
|
+
import dotenv from "dotenv";
|
|
4
|
+
export class DefaultLoadEnvVarsService {
|
|
5
|
+
constructor(getProjectService, loggerService) {
|
|
6
|
+
this.getProjectService = getProjectService;
|
|
7
|
+
this.loggerService = loggerService;
|
|
8
|
+
}
|
|
9
|
+
async execute() {
|
|
10
|
+
const project = this.getProjectService.execute();
|
|
11
|
+
const logger = this.loggerService;
|
|
12
|
+
const dotEnvFilePath = project.paths.rootFolder.join(".env").toString();
|
|
13
|
+
const {
|
|
14
|
+
error
|
|
15
|
+
} = dotenv.config({
|
|
16
|
+
path: dotEnvFilePath,
|
|
17
|
+
quiet: true
|
|
18
|
+
});
|
|
19
|
+
if (error) {
|
|
20
|
+
logger.warn({
|
|
21
|
+
err: error,
|
|
22
|
+
dotEnvFilePath
|
|
23
|
+
}, `No environment variables file found.`);
|
|
24
|
+
} else {
|
|
25
|
+
logger.trace({
|
|
26
|
+
dotEnvFilePath
|
|
27
|
+
}, `Successfully loaded environment variables.`);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export const loadEnvVarsService = createImplementation({
|
|
32
|
+
abstraction: LoadEnvVarsService,
|
|
33
|
+
implementation: DefaultLoadEnvVarsService,
|
|
34
|
+
dependencies: [GetProjectService, LoggerService]
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=LoadEnvVarsService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createImplementation","GetProjectService","LoadEnvVarsService","LoggerService","dotenv","DefaultLoadEnvVarsService","constructor","getProjectService","loggerService","execute","project","logger","dotEnvFilePath","paths","rootFolder","join","toString","error","config","path","quiet","warn","err","trace","loadEnvVarsService","abstraction","implementation","dependencies"],"sources":["LoadEnvVarsService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService, LoadEnvVarsService, LoggerService } from \"~/abstractions/index.js\";\nimport dotenv from \"dotenv\";\n\nexport class DefaultLoadEnvVarsService implements LoadEnvVarsService.Interface {\n constructor(\n private getProjectService: GetProjectService.Interface,\n private loggerService: LoggerService.Interface\n ) {}\n\n async execute() {\n const project = this.getProjectService.execute();\n\n const logger = this.loggerService;\n\n const dotEnvFilePath = project.paths.rootFolder.join(\".env\").toString();\n const { error } = dotenv.config({ path: dotEnvFilePath, quiet: true });\n if (error) {\n logger.warn({ err: error, dotEnvFilePath }, `No environment variables file found.`);\n } else {\n logger.trace({ dotEnvFilePath }, `Successfully loaded environment variables.`);\n }\n }\n}\n\nexport const loadEnvVarsService = createImplementation({\n abstraction: LoadEnvVarsService,\n implementation: DefaultLoadEnvVarsService,\n dependencies: [GetProjectService, LoggerService]\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,YAAY;AACjD,SAASC,iBAAiB,EAAEC,kBAAkB,EAAEC,aAAa;AAC7D,OAAOC,MAAM,MAAM,QAAQ;AAE3B,OAAO,MAAMC,yBAAyB,CAAyC;EAC3EC,WAAWA,CACCC,iBAA8C,EAC9CC,aAAsC,EAChD;IAAA,KAFUD,iBAA8C,GAA9CA,iBAA8C;IAAA,KAC9CC,aAAsC,GAAtCA,aAAsC;EAC/C;EAEH,MAAMC,OAAOA,CAAA,EAAG;IACZ,MAAMC,OAAO,GAAG,IAAI,CAACH,iBAAiB,CAACE,OAAO,CAAC,CAAC;IAEhD,MAAME,MAAM,GAAG,IAAI,CAACH,aAAa;IAEjC,MAAMI,cAAc,GAAGF,OAAO,CAACG,KAAK,CAACC,UAAU,CAACC,IAAI,CAAC,MAAM,CAAC,CAACC,QAAQ,CAAC,CAAC;IACvE,MAAM;MAAEC;IAAM,CAAC,GAAGb,MAAM,CAACc,MAAM,CAAC;MAAEC,IAAI,EAAEP,cAAc;MAAEQ,KAAK,EAAE;IAAK,CAAC,CAAC;IACtE,IAAIH,KAAK,EAAE;MACPN,MAAM,CAACU,IAAI,CAAC;QAAEC,GAAG,EAAEL,KAAK;QAAEL;MAAe,CAAC,EAAE,sCAAsC,CAAC;IACvF,CAAC,MAAM;MACHD,MAAM,CAACY,KAAK,CAAC;QAAEX;MAAe,CAAC,EAAE,4CAA4C,CAAC;IAClF;EACJ;AACJ;AAEA,OAAO,MAAMY,kBAAkB,GAAGxB,oBAAoB,CAAC;EACnDyB,WAAW,EAAEvB,kBAAkB;EAC/BwB,cAAc,EAAErB,yBAAyB;EACzCsB,YAAY,EAAE,CAAC1B,iBAAiB,EAAEE,aAAa;AACnD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LoadEnvVarsService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./LoadEnvVarsService.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GetProjectService, LocalStorageService } from "../../abstractions/index.js";
|
|
2
|
+
export declare class DefaultLocalStorageService implements LocalStorageService.Interface {
|
|
3
|
+
private getProjectService;
|
|
4
|
+
constructor(getProjectService: GetProjectService.Interface);
|
|
5
|
+
get(key?: string): any;
|
|
6
|
+
set(key: string, value: LocalStorageService.Value): import("../../abstractions/services/LocalStorageService").LocalStorageData;
|
|
7
|
+
unset(key: string): import("../../abstractions/services/LocalStorageService").LocalStorageData;
|
|
8
|
+
private readLocalStorage;
|
|
9
|
+
private writeLocalStorage;
|
|
10
|
+
}
|
|
11
|
+
export declare const localStorageService: import("@webiny/di").Implementation<typeof DefaultLocalStorageService>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createImplementation } from "@webiny/di";
|
|
2
|
+
import { GetProjectService, LocalStorageService } from "../../abstractions/index.js";
|
|
3
|
+
import fs from "fs";
|
|
4
|
+
const LOCAL_STORAGE_FILENAME = "local.json";
|
|
5
|
+
export class DefaultLocalStorageService {
|
|
6
|
+
constructor(getProjectService) {
|
|
7
|
+
this.getProjectService = getProjectService;
|
|
8
|
+
}
|
|
9
|
+
get(key) {
|
|
10
|
+
const ls = this.readLocalStorage();
|
|
11
|
+
if (!key) {
|
|
12
|
+
return ls;
|
|
13
|
+
}
|
|
14
|
+
return ls[key];
|
|
15
|
+
}
|
|
16
|
+
set(key, value) {
|
|
17
|
+
const ls = this.readLocalStorage();
|
|
18
|
+
ls[key] = value;
|
|
19
|
+
this.writeLocalStorage(ls);
|
|
20
|
+
return ls;
|
|
21
|
+
}
|
|
22
|
+
unset(key) {
|
|
23
|
+
const ls = this.readLocalStorage();
|
|
24
|
+
delete ls[key];
|
|
25
|
+
this.writeLocalStorage(ls);
|
|
26
|
+
return ls;
|
|
27
|
+
}
|
|
28
|
+
readLocalStorage() {
|
|
29
|
+
const project = this.getProjectService.execute();
|
|
30
|
+
const dataFilePath = project.paths.dotWebinyFolder.join(LOCAL_STORAGE_FILENAME).toString();
|
|
31
|
+
if (!fs.existsSync(dataFilePath)) {
|
|
32
|
+
return {};
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
return JSON.parse(fs.readFileSync(dataFilePath).toString());
|
|
36
|
+
} catch {
|
|
37
|
+
throw new Error(`Could not parse Webiny CLI's locale storage data file located at ${dataFilePath}.`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
writeLocalStorage(data) {
|
|
41
|
+
const project = this.getProjectService.execute();
|
|
42
|
+
const DOT_WEBINY = project.paths.dotWebinyFolder.toString();
|
|
43
|
+
const dataFilePath = project.paths.dotWebinyFolder.join("local.json").toString();
|
|
44
|
+
if (!fs.existsSync(DOT_WEBINY)) {
|
|
45
|
+
fs.mkdirSync(DOT_WEBINY);
|
|
46
|
+
}
|
|
47
|
+
fs.writeFileSync(dataFilePath, JSON.stringify(data));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export const localStorageService = createImplementation({
|
|
51
|
+
abstraction: LocalStorageService,
|
|
52
|
+
implementation: DefaultLocalStorageService,
|
|
53
|
+
dependencies: [GetProjectService]
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=LocalStorageService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createImplementation","GetProjectService","LocalStorageService","fs","LOCAL_STORAGE_FILENAME","DefaultLocalStorageService","constructor","getProjectService","get","key","ls","readLocalStorage","set","value","writeLocalStorage","unset","project","execute","dataFilePath","paths","dotWebinyFolder","join","toString","existsSync","JSON","parse","readFileSync","Error","data","DOT_WEBINY","mkdirSync","writeFileSync","stringify","localStorageService","abstraction","implementation","dependencies"],"sources":["LocalStorageService.ts"],"sourcesContent":["import { createImplementation } from \"@webiny/di\";\nimport { GetProjectService, LocalStorageService } from \"~/abstractions/index.js\";\nimport fs from \"fs\";\n\nconst LOCAL_STORAGE_FILENAME = \"local.json\";\n\nexport class DefaultLocalStorageService implements LocalStorageService.Interface {\n constructor(private getProjectService: GetProjectService.Interface) {}\n\n get(key?: string) {\n const ls = this.readLocalStorage();\n if (!key) {\n return ls;\n }\n return ls[key];\n }\n\n set(key: string, value: LocalStorageService.Value) {\n const ls = this.readLocalStorage();\n ls[key] = value;\n\n this.writeLocalStorage(ls);\n\n return ls;\n }\n\n unset(key: string) {\n const ls = this.readLocalStorage();\n delete ls[key];\n\n this.writeLocalStorage(ls);\n\n return ls;\n }\n\n private readLocalStorage() {\n const project = this.getProjectService.execute();\n const dataFilePath = project.paths.dotWebinyFolder.join(LOCAL_STORAGE_FILENAME).toString();\n\n if (!fs.existsSync(dataFilePath)) {\n return {};\n }\n\n try {\n return JSON.parse(fs.readFileSync(dataFilePath).toString()) as LocalStorageService.Data;\n } catch {\n throw new Error(\n `Could not parse Webiny CLI's locale storage data file located at ${dataFilePath}.`\n );\n }\n }\n\n private writeLocalStorage(data: LocalStorageService.Data) {\n const project = this.getProjectService.execute();\n const DOT_WEBINY = project.paths.dotWebinyFolder.toString();\n const dataFilePath = project.paths.dotWebinyFolder.join(\"local.json\").toString();\n\n if (!fs.existsSync(DOT_WEBINY)) {\n fs.mkdirSync(DOT_WEBINY);\n }\n\n fs.writeFileSync(dataFilePath, JSON.stringify(data));\n }\n}\n\nexport const localStorageService = createImplementation({\n abstraction: LocalStorageService,\n implementation: DefaultLocalStorageService,\n dependencies: [GetProjectService]\n});\n"],"mappings":"AAAA,SAASA,oBAAoB,QAAQ,YAAY;AACjD,SAASC,iBAAiB,EAAEC,mBAAmB;AAC/C,OAAOC,EAAE,MAAM,IAAI;AAEnB,MAAMC,sBAAsB,GAAG,YAAY;AAE3C,OAAO,MAAMC,0BAA0B,CAA0C;EAC7EC,WAAWA,CAASC,iBAA8C,EAAE;IAAA,KAAhDA,iBAA8C,GAA9CA,iBAA8C;EAAG;EAErEC,GAAGA,CAACC,GAAY,EAAE;IACd,MAAMC,EAAE,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAClC,IAAI,CAACF,GAAG,EAAE;MACN,OAAOC,EAAE;IACb;IACA,OAAOA,EAAE,CAACD,GAAG,CAAC;EAClB;EAEAG,GAAGA,CAACH,GAAW,EAAEI,KAAgC,EAAE;IAC/C,MAAMH,EAAE,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAClCD,EAAE,CAACD,GAAG,CAAC,GAAGI,KAAK;IAEf,IAAI,CAACC,iBAAiB,CAACJ,EAAE,CAAC;IAE1B,OAAOA,EAAE;EACb;EAEAK,KAAKA,CAACN,GAAW,EAAE;IACf,MAAMC,EAAE,GAAG,IAAI,CAACC,gBAAgB,CAAC,CAAC;IAClC,OAAOD,EAAE,CAACD,GAAG,CAAC;IAEd,IAAI,CAACK,iBAAiB,CAACJ,EAAE,CAAC;IAE1B,OAAOA,EAAE;EACb;EAEQC,gBAAgBA,CAAA,EAAG;IACvB,MAAMK,OAAO,GAAG,IAAI,CAACT,iBAAiB,CAACU,OAAO,CAAC,CAAC;IAChD,MAAMC,YAAY,GAAGF,OAAO,CAACG,KAAK,CAACC,eAAe,CAACC,IAAI,CAACjB,sBAAsB,CAAC,CAACkB,QAAQ,CAAC,CAAC;IAE1F,IAAI,CAACnB,EAAE,CAACoB,UAAU,CAACL,YAAY,CAAC,EAAE;MAC9B,OAAO,CAAC,CAAC;IACb;IAEA,IAAI;MACA,OAAOM,IAAI,CAACC,KAAK,CAACtB,EAAE,CAACuB,YAAY,CAACR,YAAY,CAAC,CAACI,QAAQ,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,MAAM;MACJ,MAAM,IAAIK,KAAK,CACX,oEAAoET,YAAY,GACpF,CAAC;IACL;EACJ;EAEQJ,iBAAiBA,CAACc,IAA8B,EAAE;IACtD,MAAMZ,OAAO,GAAG,IAAI,CAACT,iBAAiB,CAACU,OAAO,CAAC,CAAC;IAChD,MAAMY,UAAU,GAAGb,OAAO,CAACG,KAAK,CAACC,eAAe,CAACE,QAAQ,CAAC,CAAC;IAC3D,MAAMJ,YAAY,GAAGF,OAAO,CAACG,KAAK,CAACC,eAAe,CAACC,IAAI,CAAC,YAAY,CAAC,CAACC,QAAQ,CAAC,CAAC;IAEhF,IAAI,CAACnB,EAAE,CAACoB,UAAU,CAACM,UAAU,CAAC,EAAE;MAC5B1B,EAAE,CAAC2B,SAAS,CAACD,UAAU,CAAC;IAC5B;IAEA1B,EAAE,CAAC4B,aAAa,CAACb,YAAY,EAAEM,IAAI,CAACQ,SAAS,CAACJ,IAAI,CAAC,CAAC;EACxD;AACJ;AAEA,OAAO,MAAMK,mBAAmB,GAAGjC,oBAAoB,CAAC;EACpDkC,WAAW,EAAEhC,mBAAmB;EAChCiC,cAAc,EAAE9B,0BAA0B;EAC1C+B,YAAY,EAAE,CAACnC,iBAAiB;AACpC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LocalStorageService.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export * from \"./LocalStorageService.js\";\n"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GetProjectService, LoggerService, ProjectSdkParamsService } from "../../abstractions/index.js";
|
|
2
|
+
import { type Logger } from "pino";
|
|
3
|
+
export declare class DefaultLoggerService implements LoggerService.Interface {
|
|
4
|
+
private getProjectService;
|
|
5
|
+
private projectSdkParamsService;
|
|
6
|
+
pinoLogger: Logger | null;
|
|
7
|
+
constructor(getProjectService: GetProjectService.Interface, projectSdkParamsService: ProjectSdkParamsService.Interface);
|
|
8
|
+
trace(message?: any, ...optionalParams: any[]): void;
|
|
9
|
+
fatal(message?: any, ...optionalParams: any[]): void;
|
|
10
|
+
debug(message?: any, ...optionalParams: any[]): void;
|
|
11
|
+
info(message?: any, ...optionalParams: any[]): void;
|
|
12
|
+
warn(message?: any, ...optionalParams: any[]): void;
|
|
13
|
+
error(message?: any, ...optionalParams: any[]): void;
|
|
14
|
+
log(message?: any, ...optionalParams: any[]): void;
|
|
15
|
+
private getLogger;
|
|
16
|
+
private getLogStream;
|
|
17
|
+
private getLogFileName;
|
|
18
|
+
private getLogLevel;
|
|
19
|
+
}
|
|
20
|
+
export declare const loggerService: import("@webiny/di").Implementation<typeof DefaultLoggerService>;
|