@microsoft/teamsfx-core 1.1.2 → 1.1.3-alpha.12edbb86.0
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/build/common/armInterface.d.ts +1 -1
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/constants.d.ts +3 -2
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts +8 -0
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -0
- package/build/common/deps-checker/checkerFactory.js +32 -0
- package/build/common/deps-checker/checkerFactory.js.map +1 -0
- package/build/common/deps-checker/constant/helpLink.d.ts +11 -0
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -0
- package/build/common/deps-checker/constant/helpLink.js +16 -0
- package/build/common/deps-checker/constant/helpLink.js.map +1 -0
- package/build/common/deps-checker/constant/index.d.ts +4 -0
- package/build/common/deps-checker/constant/index.d.ts.map +1 -0
- package/build/common/deps-checker/constant/index.js +9 -0
- package/build/common/deps-checker/constant/index.js.map +1 -0
- package/build/common/deps-checker/constant/message.d.ts +29 -0
- package/build/common/deps-checker/constant/message.d.ts.map +1 -0
- package/build/common/deps-checker/constant/message.js +57 -0
- package/build/common/deps-checker/constant/message.js.map +1 -0
- package/build/common/deps-checker/constant/telemetry.d.ts +43 -0
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -0
- package/build/common/deps-checker/constant/telemetry.js +51 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -0
- package/build/common/deps-checker/depsChecker.d.ts +25 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -0
- package/build/common/deps-checker/depsChecker.js +13 -0
- package/build/common/deps-checker/depsChecker.js.map +1 -0
- package/build/common/deps-checker/depsError.d.ts +17 -0
- package/build/common/deps-checker/depsError.d.ts.map +1 -0
- package/build/common/deps-checker/depsError.js +42 -0
- package/build/common/deps-checker/depsError.js.map +1 -0
- package/build/common/deps-checker/depsLogger.d.ts +11 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -0
- package/build/common/deps-checker/depsLogger.js +5 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -0
- package/build/common/deps-checker/depsManager.d.ts +36 -0
- package/build/common/deps-checker/depsManager.d.ts.map +1 -0
- package/build/common/deps-checker/depsManager.js +80 -0
- package/build/common/deps-checker/depsManager.js.map +1 -0
- package/build/common/deps-checker/depsTelemetry.d.ts +10 -0
- package/build/common/deps-checker/depsTelemetry.d.ts.map +1 -0
- package/build/common/deps-checker/depsTelemetry.js +5 -0
- package/build/common/deps-checker/depsTelemetry.js.map +1 -0
- package/build/common/deps-checker/index.d.ts +9 -0
- package/build/common/deps-checker/index.d.ts.map +1 -0
- package/build/common/deps-checker/index.js +14 -0
- package/build/common/deps-checker/index.js.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts +50 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.js +406 -0
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +40 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.js +280 -0
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +28 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/ngrokChecker.js +181 -0
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts +40 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.js +144 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -0
- package/build/common/deps-checker/util/cpUtils.d.ts +24 -0
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -0
- package/build/common/deps-checker/util/cpUtils.js +99 -0
- package/build/common/deps-checker/util/cpUtils.js.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
- package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
- package/build/common/deps-checker/util/extensionInstaller.js +47 -0
- package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
- package/build/common/deps-checker/util/index.d.ts +5 -0
- package/build/common/deps-checker/util/index.d.ts.map +1 -0
- package/build/common/deps-checker/util/index.js +10 -0
- package/build/common/deps-checker/util/index.js.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.d.ts +3 -0
- package/build/common/deps-checker/util/progressIndicator.d.ts.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.js +18 -0
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -0
- package/build/common/deps-checker/util/system.d.ts +5 -0
- package/build/common/deps-checker/util/system.d.ts.map +1 -0
- package/build/common/deps-checker/util/system.js +24 -0
- package/build/common/deps-checker/util/system.js.map +1 -0
- package/build/common/index.d.ts +4 -0
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +4 -0
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +115 -0
- package/build/common/local/constants.d.ts.map +1 -0
- package/build/common/local/constants.js +122 -0
- package/build/common/local/constants.js.map +1 -0
- package/build/common/local/depsAdapter.d.ts +27 -0
- package/build/common/local/depsAdapter.d.ts.map +1 -0
- package/build/common/local/depsAdapter.js +86 -0
- package/build/common/local/depsAdapter.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +24 -0
- package/build/common/local/localEnvManager.d.ts.map +1 -0
- package/build/common/local/localEnvManager.js +113 -0
- package/build/common/local/localEnvManager.js.map +1 -0
- package/build/{plugins/resource/localdebug/localEnvMulti.d.ts → common/local/localEnvProvider.d.ts} +5 -4
- package/build/common/local/localEnvProvider.d.ts.map +1 -0
- package/build/{plugins/resource/localdebug/localEnvMulti.js → common/local/localEnvProvider.js} +19 -15
- package/build/common/local/localEnvProvider.js.map +1 -0
- package/build/common/local/localSettingsHelper.d.ts +3 -0
- package/build/common/local/localSettingsHelper.d.ts.map +1 -0
- package/build/common/local/localSettingsHelper.js +133 -0
- package/build/common/local/localSettingsHelper.js.map +1 -0
- package/build/common/local/npmLogHelper.d.ts +11 -0
- package/build/common/local/npmLogHelper.d.ts.map +1 -0
- package/build/common/local/npmLogHelper.js +82 -0
- package/build/common/local/npmLogHelper.js.map +1 -0
- package/build/common/local/packageJsonHelper.d.ts +4 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -0
- package/build/common/local/packageJsonHelper.js +36 -0
- package/build/common/local/packageJsonHelper.js.map +1 -0
- package/build/common/local/portChecker.d.ts +3 -0
- package/build/common/local/portChecker.d.ts.map +1 -0
- package/build/common/local/portChecker.js +104 -0
- package/build/common/local/portChecker.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +11 -0
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -0
- package/build/common/local/projectSettingsHelper.js +37 -0
- package/build/common/local/projectSettingsHelper.js.map +1 -0
- package/build/common/local/taskDefinition.d.ts +37 -0
- package/build/common/local/taskDefinition.d.ts.map +1 -0
- package/build/common/local/taskDefinition.js +231 -0
- package/build/common/local/taskDefinition.js.map +1 -0
- package/build/common/localSettingsProvider.d.ts +3 -3
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +12 -10
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/samples-config.json +14 -0
- package/build/common/templatesActions.d.ts +2 -0
- package/build/common/templatesActions.d.ts.map +1 -1
- package/build/common/templatesActions.js +33 -1
- package/build/common/templatesActions.js.map +1 -1
- package/build/common/tools.d.ts +11 -5
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +35 -85
- package/build/common/tools.js.map +1 -1
- package/build/core/SolutionPluginContainer.d.ts +2 -1
- package/build/core/SolutionPluginContainer.d.ts.map +1 -1
- package/build/core/SolutionPluginContainer.js +9 -1
- package/build/core/SolutionPluginContainer.js.map +1 -1
- package/build/core/dependencyChecker.d.ts +1 -0
- package/build/core/dependencyChecker.d.ts.map +1 -0
- package/build/core/dependencyChecker.js +2 -0
- package/build/core/dependencyChecker.js.map +1 -0
- package/build/core/downloadSample.d.ts +9 -0
- package/build/core/downloadSample.d.ts.map +1 -0
- package/build/core/downloadSample.js +150 -0
- package/build/core/downloadSample.js.map +1 -0
- package/build/core/environment.d.ts +5 -5
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +40 -25
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +2 -1
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +7 -3
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +54 -15
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +693 -575
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +23 -12
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts +5 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +52 -46
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts +3 -0
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/envInfoLoaderV3.js +64 -0
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -0
- package/build/core/middleware/envInfoWriter.js +14 -31
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/envInfoWriterV3.d.ts +6 -0
- package/build/core/middleware/envInfoWriterV3.d.ts.map +1 -0
- package/build/core/middleware/envInfoWriterV3.js +63 -0
- package/build/core/middleware/envInfoWriterV3.js.map +1 -0
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +3 -5
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +1 -2
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/localSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/localSettingsWriter.js +7 -18
- package/build/core/middleware/localSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +25 -57
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +3 -6
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsLoaderV3.d.ts +4 -0
- package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/projectSettingsLoaderV3.js +49 -0
- package/build/core/middleware/projectSettingsLoaderV3.js.map +1 -0
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +5 -12
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectUpgrader.d.ts.map +1 -1
- package/build/core/middleware/projectUpgrader.js +7 -15
- package/build/core/middleware/projectUpgrader.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +14 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +319 -23
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts +3 -2
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +21 -23
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts +4 -0
- package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/solutionLoaderV3.js +19 -0
- package/build/core/middleware/solutionLoaderV3.js.map +1 -0
- package/build/core/question.d.ts +9 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +113 -3
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +2 -1
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +19 -10
- package/build/core/tools.js.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
- package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
- package/build/plugins/resource/aad/aadAppClient.js +3 -4
- package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
- package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +18 -17
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/aad/utils/common.d.ts +2 -0
- package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/common.js +10 -0
- package/build/plugins/resource/aad/utils/common.js.map +1 -1
- package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
- package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
- package/build/plugins/resource/aad/utils/configs.js +7 -0
- package/build/plugins/resource/aad/utils/configs.js.map +1 -1
- package/build/plugins/resource/apim/config.d.ts +2 -1
- package/build/plugins/resource/apim/config.d.ts.map +1 -1
- package/build/plugins/resource/apim/config.js +5 -0
- package/build/plugins/resource/apim/config.js.map +1 -1
- package/build/plugins/resource/apim/constants.d.ts +1 -0
- package/build/plugins/resource/apim/constants.d.ts.map +1 -1
- package/build/plugins/resource/apim/constants.js +1 -0
- package/build/plugins/resource/apim/constants.js.map +1 -1
- package/build/plugins/resource/apim/index.js +2 -2
- package/build/plugins/resource/apim/index.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts +2 -2
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +26 -20
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +106 -85
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +7 -6
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +8 -152
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +9 -5
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +10 -5
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts +37 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +58 -21
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts +32 -0
- package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/manifestTemplate.js +190 -0
- package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -0
- package/build/plugins/resource/appstudio/plugin.d.ts +2 -4
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +256 -465
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +12 -16
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +73 -0
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/index.js +87 -0
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +5 -1
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts +2 -2
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +40 -37
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
- package/build/plugins/resource/frontend/configs.js +3 -9
- package/build/plugins/resource/frontend/configs.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +2 -15
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +3 -19
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/constants.d.ts +7 -24
- package/build/plugins/resource/frontend/{blazor → dotnet}/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/constants.js +81 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/constants.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
- package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
- package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +2 -2
- package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts +26 -0
- package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js +69 -0
- package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
- package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
- package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
- package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
- package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
- package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
- package/build/plugins/resource/frontend/env.d.ts +22 -0
- package/build/plugins/resource/frontend/env.d.ts.map +1 -0
- package/build/plugins/resource/frontend/env.js +103 -0
- package/build/plugins/resource/frontend/env.js.map +1 -0
- package/build/plugins/resource/frontend/index.d.ts +2 -2
- package/build/plugins/resource/frontend/index.d.ts.map +1 -1
- package/build/plugins/resource/frontend/index.js +8 -20
- package/build/plugins/resource/frontend/index.js.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts +5 -4
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +35 -29
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +2 -3
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +50 -75
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.d.ts +3 -18
- package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/errors.js +7 -39
- package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
- package/build/plugins/resource/frontend/resources/messages.d.ts +2 -0
- package/build/plugins/resource/frontend/resources/messages.d.ts.map +1 -1
- package/build/plugins/resource/frontend/resources/messages.js +2 -0
- package/build/plugins/resource/frontend/resources/messages.js.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
- package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
- package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/telemetry-helper.js +8 -2
- package/build/plugins/resource/frontend/utils/telemetry-helper.js.map +1 -1
- package/build/plugins/resource/frontend/utils.d.ts +6 -1
- package/build/plugins/resource/frontend/utils.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils.js +17 -6
- package/build/plugins/resource/frontend/utils.js.map +1 -1
- package/build/plugins/resource/function/index.d.ts +1 -1
- package/build/plugins/resource/function/index.d.ts.map +1 -1
- package/build/plugins/resource/function/index.js +8 -12
- package/build/plugins/resource/function/index.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +26 -21
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +2 -2
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +2 -2
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +6 -6
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +3 -2
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +3 -2
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +1 -23
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +21 -17
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +17 -14
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/localdebug/index.d.ts +0 -7
- package/build/plugins/resource/localdebug/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/index.js +3 -501
- package/build/plugins/resource/localdebug/index.js.map +1 -1
- package/build/plugins/resource/localdebug/util/error.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/util/error.js +1 -1
- package/build/plugins/resource/localdebug/util/error.js.map +1 -1
- package/build/plugins/resource/localdebug/util/localService.d.ts +0 -1
- package/build/plugins/resource/localdebug/util/localService.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/util/localService.js +1 -40
- package/build/plugins/resource/localdebug/util/localService.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +41 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +26 -21
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.js +3 -1
- package/build/plugins/resource/simpleauth/utils/common.js.map +1 -1
- package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
- package/build/plugins/resource/spfx/plugin.js +14 -9
- package/build/plugins/resource/spfx/plugin.js.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
- package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/constants.js +5 -4
- package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
- package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +0 -1
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +0 -1
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +1 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +2 -1
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +3 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +3 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +3 -1
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +11 -20
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +3 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +51 -40
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/results.d.ts +2 -2
- package/build/plugins/resource/sql/results.d.ts.map +1 -1
- package/build/plugins/resource/sql/results.js +4 -4
- package/build/plugins/resource/sql/results.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +33 -46
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/checkInput.js +2 -2
- package/build/plugins/resource/sql/utils/checkInput.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -1
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -1
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +0 -4
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +26 -10
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +429 -146
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +13 -2
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +24 -26
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/constants.js +2 -0
- package/build/plugins/solution/fx-solution/constants.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +10 -0
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/constants.js +17 -0
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/error.d.ts +9 -0
- package/build/plugins/solution/fx-solution/debug/error.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/error.js +36 -0
- package/build/plugins/solution/fx-solution/debug/error.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts +4 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +237 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +5 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +165 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/certificate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/certificate.js +8 -9
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/codespace.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/codespace.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/codespace.js +0 -0
- package/build/plugins/solution/fx-solution/debug/util/codespace.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/launch.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/launch.js +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts +3 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.js +52 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/ngrok.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/ngrok.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/ngrok.js +2 -2
- package/build/plugins/solution/fx-solution/debug/util/ngrok.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/process.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/process.js +0 -0
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.js +22 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/tasks.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/tasks.js +11 -11
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/telemetry.d.ts +7 -6
- package/build/plugins/solution/fx-solution/debug/util/telemetry.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/telemetry.js +16 -19
- package/build/plugins/solution/fx-solution/debug/util/telemetry.js.map +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/index.js +1 -0
- package/build/plugins/solution/fx-solution/index.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +3 -3
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +4 -36
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +19 -10
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts +2 -2
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js +13 -14
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts +2 -2
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.js +4 -4
- package/build/plugins/solution/fx-solution/utils/progressHelper.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
- package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v2/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/constants.js +7 -0
- package/build/plugins/solution/fx-solution/v2/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/deploy.js +3 -0
- package/build/plugins/solution/fx-solution/v2/deploy.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +199 -124
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +3 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -14
- package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +142 -120
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +13 -3
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +12 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +11 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.js +2 -1
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +6 -0
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addModule.js +35 -0
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +37 -0
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addResource.js +264 -0
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +20 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.js +25 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +6 -0
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/deploy.js +78 -0
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/error.d.ts +8 -0
- package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/error.js +17 -0
- package/build/plugins/solution/fx-solution/v3/error.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/init.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/init.js +35 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.js +124 -0
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +13 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/publish.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/publish.js +15 -0
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +27 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.js +241 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solution.d.ts +32 -0
- package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solution.js +45 -0
- package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.js +15 -0
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/utils.d.ts +3 -0
- package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/utils.js +16 -0
- package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -0
- package/build/plugins/solution/index.d.ts +1 -0
- package/build/plugins/solution/index.d.ts.map +1 -1
- package/build/plugins/solution/index.js +1 -0
- package/build/plugins/solution/index.js.map +1 -1
- package/build/plugins/solution/spfx-solution/addModule.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/addModule.js +29 -0
- package/build/plugins/solution/spfx-solution/addModule.js.map +1 -0
- package/build/plugins/solution/spfx-solution/constants.d.ts +2 -0
- package/build/plugins/solution/spfx-solution/constants.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/constants.js +7 -0
- package/build/plugins/solution/spfx-solution/constants.js.map +1 -0
- package/build/plugins/solution/spfx-solution/error.d.ts +5 -0
- package/build/plugins/solution/spfx-solution/error.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/error.js +13 -0
- package/build/plugins/solution/spfx-solution/error.js.map +1 -0
- package/build/plugins/solution/spfx-solution/index.d.ts +2 -0
- package/build/plugins/solution/spfx-solution/index.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/index.js +7 -0
- package/build/plugins/solution/spfx-solution/index.js.map +1 -0
- package/build/plugins/solution/spfx-solution/init.d.ts +4 -0
- package/build/plugins/solution/spfx-solution/init.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/init.js +52 -0
- package/build/plugins/solution/spfx-solution/init.js.map +1 -0
- package/build/plugins/solution/spfx-solution/questions.d.ts +4 -0
- package/build/plugins/solution/spfx-solution/questions.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/questions.js +10 -0
- package/build/plugins/solution/spfx-solution/questions.js.map +1 -0
- package/build/plugins/solution/spfx-solution/scaffold.d.ts +13 -0
- package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/scaffold.js +105 -0
- package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts +22 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.js +31 -0
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -0
- package/build/plugins/solution/utils/error.d.ts +5 -0
- package/build/plugins/solution/utils/error.d.ts.map +1 -0
- package/build/plugins/solution/utils/error.js +13 -0
- package/build/plugins/solution/utils/error.js.map +1 -0
- package/build/plugins/solution/utils/questions.d.ts +16 -0
- package/build/plugins/solution/utils/questions.d.ts.map +1 -0
- package/build/plugins/solution/utils/questions.js +86 -0
- package/build/plugins/solution/utils/questions.js.map +1 -0
- package/package.json +21 -6
- package/resource/deps-checker/dotnet-install.ps1 +1095 -0
- package/resource/deps-checker/dotnet-install.sh +1222 -0
- package/resource/strings.json +18 -9
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +16 -16
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/apim/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +33 -38
- package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
- package/templates/plugins/resource/bot/bicep/config.template.bicep +3 -1
- package/templates/plugins/resource/bot/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +3 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/function/bicep/config.template.bicep +3 -1
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +44 -42
- package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
- package/templates/plugins/resource/function/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +10 -7
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +4 -2
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +3 -1
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +27 -31
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
- package/templates/plugins/resource/simpleauth/version.txt +2 -1
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +8 -5
- package/build/plugins/resource/frontend/blazor/constants.js +0 -98
- package/build/plugins/resource/frontend/blazor/enum.js +0 -39
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
- package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
- package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
- package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
- package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
- package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
- package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
- package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
- package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
- package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
- package/build/plugins/resource/frontend/utils/environment-utils.d.ts +0 -9
- package/build/plugins/resource/frontend/utils/environment-utils.d.ts.map +0 -1
- package/build/plugins/resource/frontend/utils/environment-utils.js +0 -36
- package/build/plugins/resource/frontend/utils/environment-utils.js.map +0 -1
- package/build/plugins/resource/localdebug/certificate.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/certificate.js.map +0 -1
- package/build/plugins/resource/localdebug/launch.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/launch.js.map +0 -1
- package/build/plugins/resource/localdebug/legacyPlugin.d.ts +0 -6
- package/build/plugins/resource/localdebug/legacyPlugin.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/legacyPlugin.js +0 -208
- package/build/plugins/resource/localdebug/legacyPlugin.js.map +0 -1
- package/build/plugins/resource/localdebug/localEnvMulti.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/localEnvMulti.js.map +0 -1
- package/build/plugins/resource/localdebug/settings.d.ts +0 -2
- package/build/plugins/resource/localdebug/settings.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/settings.js +0 -18
- package/build/plugins/resource/localdebug/settings.js.map +0 -1
- package/build/plugins/resource/localdebug/tasks.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/tasks.js.map +0 -1
- package/build/plugins/resource/localdebug/util/codespace.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/codespace.js.map +0 -1
- package/build/plugins/resource/localdebug/util/ngrok.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/ngrok.js.map +0 -1
- package/build/plugins/resource/localdebug/util/process.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/process.js.map +0 -1
- package/build/plugins/resource/localdebug/util/telemetry.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/telemetry.js.map +0 -1
- package/templates/azure/config.bicep +0 -25
- package/templates/azure/main.bicep +0 -20
- package/templates/azure/provision/azureSql.bicep +0 -39
- package/templates/azure/provision/frontendHosting.bicep +0 -23
- package/templates/azure/provision/function.bicep +0 -79
- package/templates/azure/provision/simpleAuth.bicep +0 -44
- package/templates/azure/provision.bicep +0 -58
- package/templates/azure/teamsFx/bot.bicep +0 -34
- package/templates/azure/teamsFx/function.bicep +0 -71
- package/templates/azure/teamsFx/simpleAuth.bicep +0 -40
- package/templates/plugins/resource/aad/bicep/param.template.bicep +0 -6
- package/templates/plugins/resource/aad/bicep/variables.template.bicep +0 -13
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.EnvInfoLoaderMW_V3 = void 0;
|
|
6
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
+
const __1 = require("..");
|
|
8
|
+
const crypto_1 = require("../crypto");
|
|
9
|
+
const environment_1 = require("../environment");
|
|
10
|
+
const error_1 = require("../error");
|
|
11
|
+
const envInfoLoader_1 = require("./envInfoLoader");
|
|
12
|
+
const projectSettingsLoader_1 = require("./projectSettingsLoader");
|
|
13
|
+
function EnvInfoLoaderMW_V3(skip) {
|
|
14
|
+
return async (ctx, next) => {
|
|
15
|
+
if (projectSettingsLoader_1.shouldIgnored(ctx)) {
|
|
16
|
+
await next();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
20
|
+
if (!ctx.projectSettings) {
|
|
21
|
+
ctx.result = teamsfx_api_1.err(error_1.ProjectSettingsUndefinedError());
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (!inputs.projectPath) {
|
|
25
|
+
ctx.result = teamsfx_api_1.err(error_1.NoProjectOpenedError());
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
// make sure inputs.env always has value so telemetry can use it.
|
|
29
|
+
const envRes = await envInfoLoader_1.getTargetEnvName(skip, inputs, ctx);
|
|
30
|
+
if (envRes.isErr()) {
|
|
31
|
+
ctx.result = teamsfx_api_1.err(envRes.error);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
inputs.env = envRes.value;
|
|
35
|
+
const result = await loadEnvInfoV3(inputs, ctx.projectSettings, inputs.env, skip || inputs.ignoreEnvInfo);
|
|
36
|
+
if (result.isErr()) {
|
|
37
|
+
ctx.result = teamsfx_api_1.err(result.error);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
ctx.envInfoV3 = result.value;
|
|
41
|
+
await next();
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.EnvInfoLoaderMW_V3 = EnvInfoLoaderMW_V3;
|
|
45
|
+
async function loadEnvInfoV3(inputs, projectSettings, targetEnvName, ignoreEnvInfo = false) {
|
|
46
|
+
const cryptoProvider = new crypto_1.LocalCrypto(projectSettings.projectId);
|
|
47
|
+
let envInfo;
|
|
48
|
+
// in pre-multi-env case, envInfo is always loaded.
|
|
49
|
+
if (ignoreEnvInfo) {
|
|
50
|
+
envInfo = __1.newEnvInfoV3();
|
|
51
|
+
}
|
|
52
|
+
else {
|
|
53
|
+
// ensure backwards compatibility:
|
|
54
|
+
// project id will be generated for previous TeamsFx project.
|
|
55
|
+
// Decrypting the secrets in *.userdata with generated project id works because secrets doesn't have prefix.
|
|
56
|
+
const envDataResult = await environment_1.environmentManager.loadEnvInfo(inputs.projectPath, cryptoProvider, targetEnvName, true);
|
|
57
|
+
if (envDataResult.isErr()) {
|
|
58
|
+
return teamsfx_api_1.err(envDataResult.error);
|
|
59
|
+
}
|
|
60
|
+
envInfo = envDataResult.value;
|
|
61
|
+
}
|
|
62
|
+
return teamsfx_api_1.ok(envInfo);
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=envInfoLoaderV3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envInfoLoaderV3.js","sourceRoot":"","sources":["../../../src/core/middleware/envInfoLoaderV3.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAGlC,wDAAmG;AACnG,0BAAkC;AAElC,sCAAwC;AACxC,gDAAoD;AACpD,oCAA+E;AAC/E,mDAAmD;AACnD,mEAAwD;AAExD,SAAgB,kBAAkB,CAAC,IAAa;IAC9C,OAAO,KAAK,EAAE,GAAoB,EAAE,IAAkB,EAAE,EAAE;QACxD,IAAI,qCAAa,CAAC,GAAG,CAAC,EAAE;YACtB,MAAM,IAAI,EAAE,CAAC;YACb,OAAO;SACR;QAED,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAW,CAAC;QACjE,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE;YACxB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,qCAA6B,EAAE,CAAC,CAAC;YAClD,OAAO;SACR;QAED,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;YACvB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,4BAAoB,EAAE,CAAC,CAAC;YACzC,OAAO;SACR;QAED,iEAAiE;QACjE,MAAM,MAAM,GAAG,MAAM,gCAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,CAAC,CAAC;QACzD,IAAI,MAAM,CAAC,KAAK,EAAE,EAAE;YAClB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO;SACR;QACD,MAAM,CAAC,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;QAE1B,MAAM,MAAM,GAAG,MAAM,aAAa,CAChC,MAAkC,EAClC,GAAG,CAAC,eAAe,EACnB,MAAM,CAAC,GAAG,EACV,IAAI,IAAI,MAAM,CAAC,aAAa,CAC7B,CAAC;QACF,IAAI,MAAM,CAAC,KAAK,EAAE,EAAE;YAClB,GAAG,CAAC,MAAM,GAAG,iBAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO;SACR;QAED,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC;QAE7B,MAAM,IAAI,EAAE,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAzCD,gDAyCC;AAED,KAAK,UAAU,aAAa,CAC1B,MAAgC,EAChC,eAAgC,EAChC,aAAsB,EACtB,aAAa,GAAG,KAAK;IAErB,MAAM,cAAc,GAAG,IAAI,oBAAW,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;IAElE,IAAI,OAAqB,CAAC;IAC1B,mDAAmD;IACnD,IAAI,aAAa,EAAE;QACjB,OAAO,GAAG,gBAAY,EAAE,CAAC;KAC1B;SAAM;QACL,kCAAkC;QAClC,6DAA6D;QAC7D,4GAA4G;QAC5G,MAAM,aAAa,GAAG,MAAM,gCAAkB,CAAC,WAAW,CACxD,MAAM,CAAC,WAAW,EAClB,cAAc,EACd,aAAa,EACb,IAAI,CACL,CAAC;QAEF,IAAI,aAAa,CAAC,KAAK,EAAE,EAAE;YACzB,OAAO,iBAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;SACjC;QACD,OAAO,GAAG,aAAa,CAAC,KAAqB,CAAC;KAC/C;IACD,OAAO,gBAAE,CAAC,OAAO,CAAC,CAAC;AACrB,CAAC"}
|
|
@@ -38,7 +38,7 @@ function EnvInfoWriterMW(skip = false) {
|
|
|
38
38
|
}
|
|
39
39
|
exports.EnvInfoWriterMW = EnvInfoWriterMW;
|
|
40
40
|
async function writeEnvInfo(ctx, skip) {
|
|
41
|
-
if (projectSettingsLoader_1.shouldIgnored(ctx) ||
|
|
41
|
+
if (projectSettingsLoader_1.shouldIgnored(ctx) || skip) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
const lastArg = ctx.arguments[ctx.arguments.length - 1];
|
|
@@ -48,37 +48,20 @@ async function writeEnvInfo(ctx, skip) {
|
|
|
48
48
|
inputs.ignoreEnvInfo === true ||
|
|
49
49
|
teamsfx_api_1.StaticPlatforms.includes(inputs.platform))
|
|
50
50
|
return;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
delete provisionOutputs[constants_1.PluginNames.LDEBUG];
|
|
61
|
-
}
|
|
62
|
-
const envState = __1.flattenConfigJson(provisionOutputs);
|
|
63
|
-
const envStatePath = await environment_1.environmentManager.writeEnvState(envState, inputs.projectPath, ctx.contextV2.cryptoProvider, envInfoV2.envName);
|
|
64
|
-
if (envStatePath.isOk()) {
|
|
65
|
-
const core = ctx.self;
|
|
66
|
-
core.tools.logProvider.debug(`[core] persist env state: ${envStatePath.value}`);
|
|
67
|
-
}
|
|
51
|
+
const envInfoV2 = ctx.envInfoV2;
|
|
52
|
+
if (!envInfoV2)
|
|
53
|
+
return;
|
|
54
|
+
const provisionOutputs = envInfoV2.state;
|
|
55
|
+
if (provisionOutputs === undefined)
|
|
56
|
+
return;
|
|
57
|
+
// DO NOT persist local debug plugin config.
|
|
58
|
+
if (provisionOutputs[constants_1.PluginNames.LDEBUG]) {
|
|
59
|
+
delete provisionOutputs[constants_1.PluginNames.LDEBUG];
|
|
68
60
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// DO NOT persist local debug plugin config.
|
|
74
|
-
if (common_1.isMultiEnvEnabled() && solutionContext.envInfo.state.has(constants_1.PluginNames.LDEBUG)) {
|
|
75
|
-
solutionContext.envInfo.state.delete(constants_1.PluginNames.LDEBUG);
|
|
76
|
-
}
|
|
77
|
-
const envStatePath = await environment_1.environmentManager.writeEnvState(solutionContext.envInfo.state, inputs.projectPath, solutionContext.cryptoProvider, solutionContext.envInfo.envName);
|
|
78
|
-
if (envStatePath.isOk()) {
|
|
79
|
-
const core = ctx.self;
|
|
80
|
-
core.tools.logProvider.debug(`[core] persist env state: ${envStatePath.value}`);
|
|
81
|
-
}
|
|
61
|
+
const envState = __1.flattenConfigJson(provisionOutputs);
|
|
62
|
+
const envStatePath = await environment_1.environmentManager.writeEnvState(envState, inputs.projectPath, ctx.contextV2.cryptoProvider, envInfoV2.envName);
|
|
63
|
+
if (envStatePath.isOk()) {
|
|
64
|
+
__1.TOOLS.logProvider.debug(`[core] persist env state: ${envStatePath.value}`);
|
|
82
65
|
}
|
|
83
66
|
}
|
|
84
67
|
//# sourceMappingURL=envInfoWriter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"envInfoWriter.js","sourceRoot":"","sources":["../../../src/core/middleware/envInfoWriter.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"envInfoWriter.js","sourceRoot":"","sources":["../../../src/core/middleware/envInfoWriter.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,0BAA+D;AAC/D,yCAA0C;AAC1C,4EAA2E;AAC3E,gDAAoD;AACpD,mEAAwD;AAExD;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAI,GAAG,KAAK;IAC1C,OAAO,KAAK,EAAE,GAAoB,EAAE,IAAkB,EAAE,EAAE;QACxD,IAAI,MAAM,GAAQ,SAAS,CAAC;QAC5B,IAAI;YACF,MAAM,IAAI,EAAE,CAAC;SACd;QAAC,OAAO,CAAC,EAAE;YACV,IAAK,CAAS,CAAC,MAAM,CAAC,KAAK,mBAAU,EAAE,CAAC,QAAQ,CAAC,eAAe;gBAAE,MAAM,CAAC,CAAC;YAC1E,MAAM,GAAG,CAAC,CAAC;SACZ;QACD,IAAI,MAAM,GAAQ,SAAS,CAAC;QAC5B,IAAI;YACF,MAAM,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;SAC/B;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,GAAG,CAAC,CAAC;SACZ;QACD,IAAI,MAAM;YAAE,MAAM,MAAM,CAAC;QACzB,IAAI,MAAM;YAAE,MAAM,MAAM,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC;AAlBD,0CAkBC;AAED,KAAK,UAAU,YAAY,CAAC,GAAoB,EAAE,IAAa;IAC7D,IAAI,qCAAa,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE;QAC9B,OAAO;KACR;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACxD,MAAM,MAAM,GAAW,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAC3F,IACE,CAAC,MAAM,CAAC,WAAW;QACnB,MAAM,CAAC,mBAAmB,KAAK,IAAI;QACnC,MAAM,CAAC,aAAa,KAAK,IAAI;QAC7B,6BAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEzC,OAAO;IAET,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IAChC,IAAI,CAAC,SAAS;QAAE,OAAO;IACvB,MAAM,gBAAgB,GAAG,SAAS,CAAC,KAAK,CAAC;IACzC,IAAI,gBAAgB,KAAK,SAAS;QAAE,OAAO;IAC3C,4CAA4C;IAC5C,IAAI,gBAAgB,CAAC,uBAAW,CAAC,MAAM,CAAC,EAAE;QACxC,OAAO,gBAAgB,CAAC,uBAAW,CAAC,MAAM,CAAC,CAAC;KAC7C;IACD,MAAM,QAAQ,GAAG,qBAAiB,CAAC,gBAAgB,CAAC,CAAC;IACrD,MAAM,YAAY,GAAG,MAAM,gCAAkB,CAAC,aAAa,CACzD,QAAQ,EACR,MAAM,CAAC,WAAW,EAClB,GAAG,CAAC,SAAU,CAAC,cAAc,EAC7B,SAAS,CAAC,OAAO,CAClB,CAAC;IAEF,IAAI,YAAY,CAAC,IAAI,EAAE,EAAE;QACvB,SAAK,CAAC,WAAW,CAAC,KAAK,CAAC,6BAA6B,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC;KAC5E;AACH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Middleware } from "@feathersjs/hooks";
|
|
2
|
+
/**
|
|
3
|
+
* This middleware will help to persist environment state even if lifecycle task throws Error.
|
|
4
|
+
*/
|
|
5
|
+
export declare function EnvInfoWriterMW_V3(skip?: boolean): Middleware;
|
|
6
|
+
//# sourceMappingURL=envInfoWriterV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envInfoWriterV3.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/envInfoWriterV3.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AAO7D;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,UAAQ,GAAG,UAAU,CAkB3D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.EnvInfoWriterMW_V3 = void 0;
|
|
6
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
|
+
const __1 = require("..");
|
|
8
|
+
const common_1 = require("../../common");
|
|
9
|
+
const environment_1 = require("../environment");
|
|
10
|
+
const projectSettingsLoader_1 = require("./projectSettingsLoader");
|
|
11
|
+
/**
|
|
12
|
+
* This middleware will help to persist environment state even if lifecycle task throws Error.
|
|
13
|
+
*/
|
|
14
|
+
function EnvInfoWriterMW_V3(skip = false) {
|
|
15
|
+
return async (ctx, next) => {
|
|
16
|
+
let error1 = undefined;
|
|
17
|
+
try {
|
|
18
|
+
await next();
|
|
19
|
+
}
|
|
20
|
+
catch (e) {
|
|
21
|
+
if (e["name"] === common_1.getStrings().solution.CancelProvision)
|
|
22
|
+
throw e;
|
|
23
|
+
error1 = e;
|
|
24
|
+
}
|
|
25
|
+
let error2 = undefined;
|
|
26
|
+
try {
|
|
27
|
+
await writeEnvInfo(ctx, skip);
|
|
28
|
+
}
|
|
29
|
+
catch (e) {
|
|
30
|
+
error2 = e;
|
|
31
|
+
}
|
|
32
|
+
if (error1)
|
|
33
|
+
throw error1;
|
|
34
|
+
if (error2)
|
|
35
|
+
throw error2;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.EnvInfoWriterMW_V3 = EnvInfoWriterMW_V3;
|
|
39
|
+
async function writeEnvInfo(ctx, skip) {
|
|
40
|
+
if (projectSettingsLoader_1.shouldIgnored(ctx) || skip) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const lastArg = ctx.arguments[ctx.arguments.length - 1];
|
|
44
|
+
const inputs = lastArg === ctx ? ctx.arguments[ctx.arguments.length - 2] : lastArg;
|
|
45
|
+
if (!inputs.projectPath ||
|
|
46
|
+
inputs.ignoreConfigPersist === true ||
|
|
47
|
+
inputs.ignoreEnvInfo === true ||
|
|
48
|
+
teamsfx_api_1.StaticPlatforms.includes(inputs.platform))
|
|
49
|
+
return;
|
|
50
|
+
if (ctx.contextV2 && ctx.envInfoV3) {
|
|
51
|
+
const envInfoV3 = ctx.envInfoV3;
|
|
52
|
+
if (!envInfoV3)
|
|
53
|
+
return;
|
|
54
|
+
const envState = envInfoV3.state;
|
|
55
|
+
if (envState === undefined)
|
|
56
|
+
return;
|
|
57
|
+
const envStatePath = await environment_1.environmentManager.writeEnvState(envState, inputs.projectPath, ctx.contextV2.cryptoProvider, envInfoV3.envName, true);
|
|
58
|
+
if (envStatePath.isOk()) {
|
|
59
|
+
__1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider.debug(`[core] persist env state: ${envStatePath.value}`);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=envInfoWriterV3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"envInfoWriterV3.js","sourceRoot":"","sources":["../../../src/core/middleware/envInfoWriterV3.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,0BAAoD;AACpD,yCAA0C;AAC1C,gDAAoD;AACpD,mEAAwD;AAExD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,IAAI,GAAG,KAAK;IAC7C,OAAO,KAAK,EAAE,GAAoB,EAAE,IAAkB,EAAE,EAAE;QACxD,IAAI,MAAM,GAAQ,SAAS,CAAC;QAC5B,IAAI;YACF,MAAM,IAAI,EAAE,CAAC;SACd;QAAC,OAAO,CAAC,EAAE;YACV,IAAK,CAAS,CAAC,MAAM,CAAC,KAAK,mBAAU,EAAE,CAAC,QAAQ,CAAC,eAAe;gBAAE,MAAM,CAAC,CAAC;YAC1E,MAAM,GAAG,CAAC,CAAC;SACZ;QACD,IAAI,MAAM,GAAQ,SAAS,CAAC;QAC5B,IAAI;YACF,MAAM,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;SAC/B;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,GAAG,CAAC,CAAC;SACZ;QACD,IAAI,MAAM;YAAE,MAAM,MAAM,CAAC;QACzB,IAAI,MAAM;YAAE,MAAM,MAAM,CAAC;IAC3B,CAAC,CAAC;AACJ,CAAC;AAlBD,gDAkBC;AAED,KAAK,UAAU,YAAY,CAAC,GAAoB,EAAE,IAAa;IAC7D,IAAI,qCAAa,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE;QAC9B,OAAO;KACR;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACxD,MAAM,MAAM,GAAW,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;IAC3F,IACE,CAAC,MAAM,CAAC,WAAW;QACnB,MAAM,CAAC,mBAAmB,KAAK,IAAI;QACnC,MAAM,CAAC,aAAa,KAAK,IAAI;QAC7B,6BAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;QAEzC,OAAO;IAET,IAAI,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,SAAS,EAAE;QAClC,MAAM,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS;YAAE,OAAO;QACvB,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC;QACjC,IAAI,QAAQ,KAAK,SAAS;YAAE,OAAO;QACnC,MAAM,YAAY,GAAG,MAAM,gCAAkB,CAAC,aAAa,CACzD,QAAQ,EACR,MAAM,CAAC,WAAW,EAClB,GAAG,CAAC,SAAS,CAAC,cAAc,EAC5B,SAAS,CAAC,OAAO,EACjB,IAAI,CACL,CAAC;QACF,IAAI,YAAY,CAAC,IAAI,EAAE,EAAE;YACvB,SAAK,aAAL,SAAK,uBAAL,SAAK,CAAE,WAAW,CAAC,KAAK,CAAC,6BAA6B,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC;SAC7E;KACF;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/errorHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI1E;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"errorHandler.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/errorHandler.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAI1E;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,UAoB5B,CAAC"}
|
|
@@ -10,17 +10,15 @@ const __1 = require("..");
|
|
|
10
10
|
* to catch exceptions and return specific error.
|
|
11
11
|
*/
|
|
12
12
|
const ErrorHandlerMW = async (ctx, next) => {
|
|
13
|
+
var _a, _b;
|
|
13
14
|
const core = ctx.self;
|
|
14
15
|
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
15
|
-
const logger = core !== undefined && core.tools !== undefined && core.tools.logProvider !== undefined
|
|
16
|
-
? core.tools.logProvider
|
|
17
|
-
: undefined;
|
|
18
16
|
const taskName = `${ctx.method} ${ctx.method === "executeUserTask" ? ctx.arguments[0].method : ""}`;
|
|
19
17
|
try {
|
|
20
|
-
|
|
18
|
+
(_a = __1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider) === null || _a === void 0 ? void 0 : _a.info(`[core] start task:${taskName}, API v3: ${__1.isV3()}`);
|
|
21
19
|
const time = new Date().getTime();
|
|
22
20
|
await next();
|
|
23
|
-
|
|
21
|
+
(_b = __1.TOOLS === null || __1.TOOLS === void 0 ? void 0 : __1.TOOLS.logProvider) === null || _b === void 0 ? void 0 : _b.info(`[core] finish task:${taskName}, time: ${new Date().getTime() - time} ms`);
|
|
24
22
|
}
|
|
25
23
|
catch (e) {
|
|
26
24
|
let fxError = teamsfx_api_1.assembleError(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorHandler.js","sourceRoot":"","sources":["../../../src/core/middleware/errorHandler.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAkG;AAClG,
|
|
1
|
+
{"version":3,"file":"errorHandler.js","sourceRoot":"","sources":["../../../src/core/middleware/errorHandler.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localSettingsLoader.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsLoader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"localSettingsLoader.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsLoader.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;AAUjE,eAAO,MAAM,qBAAqB,EAAE,UA4DnC,CAAC"}
|
|
@@ -7,7 +7,6 @@ const tslib_1 = require("tslib");
|
|
|
7
7
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
8
8
|
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
9
9
|
const __1 = require("..");
|
|
10
|
-
const common_1 = require("../../common");
|
|
11
10
|
const localSettingsProvider_1 = require("../../common/localSettingsProvider");
|
|
12
11
|
const constants_1 = require("../../plugins/solution/fx-solution/constants");
|
|
13
12
|
const ResourcePluginContainer_1 = require("../../plugins/solution/fx-solution/ResourcePluginContainer");
|
|
@@ -15,7 +14,7 @@ const error_1 = require("../error");
|
|
|
15
14
|
const projectSettingsLoader_1 = require("./projectSettingsLoader");
|
|
16
15
|
const LocalSettingsLoaderMW = async (ctx, next) => {
|
|
17
16
|
var _a;
|
|
18
|
-
if (!projectSettingsLoader_1.shouldIgnored(ctx)
|
|
17
|
+
if (!projectSettingsLoader_1.shouldIgnored(ctx)) {
|
|
19
18
|
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
20
19
|
if (!inputs.projectPath) {
|
|
21
20
|
ctx.result = teamsfx_api_1.err(__1.NoProjectOpenedError());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localSettingsLoader.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsLoader.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAGlC,wDAAoF;AACpF,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"localSettingsLoader.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsLoader.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localSettingsWriter.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"localSettingsWriter.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgB,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAM7D;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAyBnC,CAAC"}
|
|
@@ -5,16 +5,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.LocalSettingsWriterMW = void 0;
|
|
6
6
|
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
7
7
|
const __1 = require("..");
|
|
8
|
-
const common_1 = require("../../common");
|
|
9
8
|
const localSettingsProvider_1 = require("../../common/localSettingsProvider");
|
|
10
9
|
const projectSettingsLoader_1 = require("./projectSettingsLoader");
|
|
11
10
|
/**
|
|
12
11
|
* This middleware will help to persist local settings if necessary.
|
|
13
12
|
*/
|
|
14
13
|
const LocalSettingsWriterMW = async (ctx, next) => {
|
|
15
|
-
var _a
|
|
14
|
+
var _a;
|
|
16
15
|
await next();
|
|
17
|
-
if (!projectSettingsLoader_1.shouldIgnored(ctx)
|
|
16
|
+
if (!projectSettingsLoader_1.shouldIgnored(ctx)) {
|
|
18
17
|
const lastArg = ctx.arguments[ctx.arguments.length - 1];
|
|
19
18
|
const inputs = lastArg === ctx ? ctx.arguments[ctx.arguments.length - 2] : lastArg;
|
|
20
19
|
if (!inputs.projectPath ||
|
|
@@ -22,21 +21,11 @@ const LocalSettingsWriterMW = async (ctx, next) => {
|
|
|
22
21
|
teamsfx_api_1.StaticPlatforms.includes(inputs.platform))
|
|
23
22
|
return;
|
|
24
23
|
const localSettingsProvider = new localSettingsProvider_1.LocalSettingsProvider(inputs.projectPath);
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
const solutionContext = ctx.solutionContext;
|
|
33
|
-
if (solutionContext === undefined || solutionContext.localSettings === undefined)
|
|
34
|
-
return;
|
|
35
|
-
// persistent localSettings.json.
|
|
36
|
-
await localSettingsProvider.save(solutionContext.localSettings, (_b = ctx.solutionContext) === null || _b === void 0 ? void 0 : _b.cryptoProvider);
|
|
37
|
-
}
|
|
38
|
-
const core = ctx.self;
|
|
39
|
-
core.tools.logProvider.debug(`[core] persist local settings config file: ${localSettingsProvider.localSettingsFilePath}`);
|
|
24
|
+
if (ctx.localSettings === undefined)
|
|
25
|
+
return;
|
|
26
|
+
// persistent localSettings.json.
|
|
27
|
+
await localSettingsProvider.saveJson(ctx.localSettings, (_a = ctx.contextV2) === null || _a === void 0 ? void 0 : _a.cryptoProvider);
|
|
28
|
+
__1.TOOLS.logProvider.debug(`[core] persist local settings config file: ${localSettingsProvider.localSettingsFilePath}`);
|
|
40
29
|
}
|
|
41
30
|
};
|
|
42
31
|
exports.LocalSettingsWriterMW = LocalSettingsWriterMW;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localSettingsWriter.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,
|
|
1
|
+
{"version":3,"file":"localSettingsWriter.js","sourceRoot":"","sources":["../../../src/core/middleware/localSettingsWriter.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAGb,wDAAiE;AACjE,0BAA4C;AAC5C,8EAA2E;AAC3E,mEAAwD;AAExD;;GAEG;AACI,MAAM,qBAAqB,GAAe,KAAK,EACpD,GAAoB,EACpB,IAAkB,EAClB,EAAE;;IACF,MAAM,IAAI,EAAE,CAAC;IACb,IAAI,CAAC,qCAAa,CAAC,GAAG,CAAC,EAAE;QACvB,MAAM,OAAO,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACxD,MAAM,MAAM,GAAW,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;QAC3F,IACE,CAAC,MAAM,CAAC,WAAW;YACnB,MAAM,CAAC,mBAAmB,KAAK,IAAI;YACnC,6BAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC;YAEzC,OAAO;QAET,MAAM,qBAAqB,GAAG,IAAI,6CAAqB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAE5E,IAAI,GAAG,CAAC,aAAa,KAAK,SAAS;YAAE,OAAO;QAC5C,iCAAiC;QACjC,MAAM,qBAAqB,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAa,EAAE,MAAA,GAAG,CAAC,SAAS,0CAAE,cAAc,CAAC,CAAC;QAEvF,SAAK,CAAC,WAAW,CAAC,KAAK,CACrB,8CAA8C,qBAAqB,CAAC,qBAAqB,EAAE,CAC5F,CAAC;KACH;AACH,CAAC,CAAC;AAzBW,QAAA,qBAAqB,yBAyBhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projectMigrator.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/projectMigrator.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,eAAe,EAQhB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"projectMigrator.d.ts","sourceRoot":"","sources":["../../../src/core/middleware/projectMigrator.ts"],"names":[],"mappings":"AAsBA,OAAO,EACL,eAAe,EAQhB,MAAM,OAAO,CAAC;AAIf,OAAO,EAAE,UAAU,EAAgB,MAAM,uBAAuB,CAAC;AA8FjE,qBAAa,aAAa;IACxB,MAAM,CAAC,QAAQ,CAAC,aAAa,gCAAgC;IAC7D,MAAM,CAAC,QAAQ,CAAC,YAAY,8BAA8B;IAC1D,MAAM,CAAC,QAAQ,CAAC,SAAS,mBAAmB;IAC5C,MAAM,CAAC,QAAQ,CAAC,WAAW,qBAAqB;IAChD,MAAM,CAAC,QAAQ,CAAC,aAAa,mBAAmB;IAChD,MAAM,CAAC,QAAQ,CAAC,kBAAkB,6BAA6B;IAC/D,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yBAAyB;IAC5D,MAAM,CAAC,QAAQ,CAAC,eAAe,wBAAwB;IACvD,MAAM,CAAC,QAAQ,CAAC,YAAY,kBAAkB;IAC9C,MAAM,CAAC,QAAQ,CAAC,oBAAoB,0BAA0B;IAC9D,MAAM,CAAC,QAAQ,CAAC,oBAAoB,+BAA+B;IACnE,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,eAAe,qBAAqB;IACpD,MAAM,CAAC,QAAQ,CAAC,mBAAmB,yBAAyB;CAC7D;AAED,eAAO,MAAM,iBAAiB,EAAE,UAiD/B,CAAC;AAouBF,wBAAsB,UAAU,CAAC,GAAG,EAAE,eAAe,iBAGpD"}
|
|
@@ -30,8 +30,8 @@ const dotenv = tslib_1.__importStar(require("dotenv"));
|
|
|
30
30
|
const constants_5 = require("../../plugins/resource/spfx/utils/constants");
|
|
31
31
|
const utils_2 = require("../../plugins/resource/spfx/utils/utils");
|
|
32
32
|
const util_1 = tslib_1.__importDefault(require("util"));
|
|
33
|
-
const localEnvMulti_1 = require("../../plugins/resource/localdebug/localEnvMulti");
|
|
34
33
|
const adaptor_1 = require("../../plugins/solution/fx-solution/v2/adaptor");
|
|
34
|
+
const localEnvProvider_1 = require("../../common/local/localEnvProvider");
|
|
35
35
|
const programmingLanguage = "programmingLanguage";
|
|
36
36
|
const defaultFunctionName = "defaultFunctionName";
|
|
37
37
|
const learnMoreText = "Learn More";
|
|
@@ -47,7 +47,6 @@ const AadSecret = "{{ $env.AAD_APP_CLIENT_SECRET }}";
|
|
|
47
47
|
const ChangeLogsFlag = "openUpgradeChangelogs";
|
|
48
48
|
const AADClientSecretFlag = "NeedToSetAADClientSecretEnv";
|
|
49
49
|
const gitignoreFileName = ".gitignore";
|
|
50
|
-
let updateNotificationFlag = false;
|
|
51
50
|
let fromReloadFlag = false;
|
|
52
51
|
class EnvConfigName {
|
|
53
52
|
}
|
|
@@ -104,7 +103,7 @@ const ProjectMigratorMW = async (ctx, next) => {
|
|
|
104
103
|
}
|
|
105
104
|
const core = ctx.self;
|
|
106
105
|
telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorNotificationStart);
|
|
107
|
-
const res = await
|
|
106
|
+
const res = await (__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.showMessage("warn", tools_1.getStrings().solution.MigrationToArmAndMultiEnvMessage, true, upgradeButton));
|
|
108
107
|
const answer = (res === null || res === void 0 ? void 0 : res.isOk()) ? res.value : undefined;
|
|
109
108
|
if (!answer || answer != upgradeButton) {
|
|
110
109
|
telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorNotification, {
|
|
@@ -129,13 +128,6 @@ const ProjectMigratorMW = async (ctx, next) => {
|
|
|
129
128
|
throw error;
|
|
130
129
|
}
|
|
131
130
|
}
|
|
132
|
-
else if ((await needUpdateTeamsToolkitVersion(ctx)) && !updateNotificationFlag) {
|
|
133
|
-
// TODO: delete before Arm && Multi-env version released
|
|
134
|
-
// only for arm && multi-env project with unreleased teams toolkit version
|
|
135
|
-
updateNotificationFlag = true;
|
|
136
|
-
const core = ctx.self;
|
|
137
|
-
core.tools.ui.showMessage("info", tools_1.getStrings().solution.NeedToUpdateTeamsToolkitVersionMessage, false, "OK");
|
|
138
|
-
}
|
|
139
131
|
else {
|
|
140
132
|
// continue next step only when:
|
|
141
133
|
// 1. no need to upgrade the project;
|
|
@@ -146,15 +138,15 @@ const ProjectMigratorMW = async (ctx, next) => {
|
|
|
146
138
|
exports.ProjectMigratorMW = ProjectMigratorMW;
|
|
147
139
|
function outputCancelMessage(ctx) {
|
|
148
140
|
const core = ctx.self;
|
|
149
|
-
|
|
141
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Upgrade cancelled.`);
|
|
150
142
|
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
151
143
|
if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
|
|
152
|
-
|
|
153
|
-
|
|
144
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Notice upgrade to new configuration files is a must-have to continue to use current version Teams Toolkit. If you want to upgrade, please run command (Teams: Upgrade project) or click the “Upgrade project” button on tree view to trigger the upgrade.`);
|
|
145
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core]If you are not ready to upgrade and want to continue to use the old version Teams Toolkit, please find Teams Toolkit in Extension and install the version <= 2.10.0`);
|
|
154
146
|
}
|
|
155
147
|
else {
|
|
156
|
-
|
|
157
|
-
|
|
148
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Notice upgrade to new configuration files is a must-have to continue to use current version Teams Toolkit CLI. If you want to upgrade, please trigger this command again.`);
|
|
149
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core]If you are not ready to upgrade and want to continue to use the old version Teams Toolkit CLI, please install the version <= 2.10.0`);
|
|
158
150
|
}
|
|
159
151
|
}
|
|
160
152
|
function checkMethod(ctx) {
|
|
@@ -227,7 +219,7 @@ async function migrateToArmAndMultiEnv(ctx) {
|
|
|
227
219
|
await backup(projectPath, backupFolder);
|
|
228
220
|
await updateConfig(ctx);
|
|
229
221
|
telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorMigrateMultiEnvStart);
|
|
230
|
-
await migrateMultiEnv(projectPath,
|
|
222
|
+
await migrateMultiEnv(projectPath, __2.TOOLS.logProvider);
|
|
231
223
|
telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorMigrateMultiEnv);
|
|
232
224
|
const loadRes = await projectSettingsLoader_1.loadProjectSettings(inputs);
|
|
233
225
|
if (loadRes.isErr()) {
|
|
@@ -241,7 +233,7 @@ async function migrateToArmAndMultiEnv(ctx) {
|
|
|
241
233
|
}
|
|
242
234
|
}
|
|
243
235
|
catch (err) {
|
|
244
|
-
|
|
236
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.error(`[core] Failed to upgrade project, error: '${err}'`);
|
|
245
237
|
await handleError(projectPath, ctx, backupFolder);
|
|
246
238
|
throw err;
|
|
247
239
|
}
|
|
@@ -271,14 +263,12 @@ async function preReadJsonFile(path, core) {
|
|
|
271
263
|
await fs_extra_1.default.readJson(path);
|
|
272
264
|
}
|
|
273
265
|
catch (err) {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
.showMessage("info", util_1.default.format(tools_1.getStrings().solution.MigrationToArmAndMultiEnvPreCheckErrorMessage, path), false, learnMoreText)
|
|
278
|
-
.then((result) => {
|
|
266
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.error(`'${path}' doesn't exist or is not in json format. Please fix it and try again by running command (Teams: Upgrade project).`);
|
|
267
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`Read this wiki(${learnMoreLink}) for the FAQ.`);
|
|
268
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.showMessage("info", util_1.default.format(tools_1.getStrings().solution.MigrationToArmAndMultiEnvPreCheckErrorMessage, path), false, learnMoreText).then((result) => {
|
|
279
269
|
const userSelected = result.isOk() ? result.value : undefined;
|
|
280
270
|
if (userSelected === learnMoreText) {
|
|
281
|
-
|
|
271
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.openUrl(manualUpgradeLink);
|
|
282
272
|
}
|
|
283
273
|
});
|
|
284
274
|
throw __1.NotJsonError(err);
|
|
@@ -291,15 +281,12 @@ async function handleError(projectPath, ctx, backupFolder) {
|
|
|
291
281
|
catch (e) {
|
|
292
282
|
// try my best to cleanup
|
|
293
283
|
const core = ctx.self;
|
|
294
|
-
|
|
284
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.error(`[core] Failed to cleanup the backup, error: '${e}'`);
|
|
295
285
|
}
|
|
296
|
-
|
|
297
|
-
core.tools.ui
|
|
298
|
-
.showMessage("info", tools_1.getStrings().solution.MigrationToArmAndMultiEnvErrorMessage, false, learnMoreText)
|
|
299
|
-
.then((result) => {
|
|
286
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.showMessage("info", tools_1.getStrings().solution.MigrationToArmAndMultiEnvErrorMessage, false, learnMoreText).then((result) => {
|
|
300
287
|
const userSelected = result.isOk() ? result.value : undefined;
|
|
301
288
|
if (userSelected === learnMoreText) {
|
|
302
|
-
|
|
289
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.ui.openUrl(manualUpgradeLink);
|
|
303
290
|
}
|
|
304
291
|
});
|
|
305
292
|
}
|
|
@@ -322,18 +309,18 @@ async function postMigration(projectPath, ctx, inputs, backupFolder) {
|
|
|
322
309
|
telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorGuideStart);
|
|
323
310
|
await generateUpgradeReport(backupFolder);
|
|
324
311
|
const core = ctx.self;
|
|
325
|
-
await updateGitIgnore(projectPath,
|
|
326
|
-
|
|
327
|
-
|
|
312
|
+
await updateGitIgnore(projectPath, __2.TOOLS.logProvider, backupFolder);
|
|
313
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Upgrade success! All old files in .fx and appPackage folder have been backed up to the .backup folder and you can delete it. Read this wiki(${learnMoreLink}) if you want to restore your configuration files or learn more about this upgrade.`);
|
|
314
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.warning(`[core] Read upgrade-change-logs.md to learn about details for this upgrade.`);
|
|
328
315
|
if (inputs.platform === teamsfx_api_1.Platform.VSCode) {
|
|
329
316
|
await globalState_1.globalStateUpdate(ChangeLogsFlag, true);
|
|
330
317
|
telemetry_1.sendTelemetryEvent(telemetry_1.Component.core, telemetry_1.TelemetryEvent.ProjectMigratorGuide, {
|
|
331
318
|
[telemetry_1.TelemetryProperty.Status]: telemetry_1.ProjectMigratorGuideStatus.Reload,
|
|
332
319
|
});
|
|
333
|
-
await ((_b = (_a =
|
|
320
|
+
await ((_b = __2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : (_a = __2.TOOLS.ui).reload) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
334
321
|
}
|
|
335
322
|
else {
|
|
336
|
-
|
|
323
|
+
__2.TOOLS === null || __2.TOOLS === void 0 ? void 0 : __2.TOOLS.logProvider.info(tools_1.getStrings().solution.MigrationToArmAndMultiEnvSuccessMessage);
|
|
337
324
|
}
|
|
338
325
|
}
|
|
339
326
|
async function updateGitIgnore(projectPath, log, backupFolder) {
|
|
@@ -347,7 +334,7 @@ async function updateGitIgnore(projectPath, log, backupFolder) {
|
|
|
347
334
|
const buildFolder = path_1.default.join(projectPath, teamsfx_api_1.BuildFolderName);
|
|
348
335
|
await addPathToGitignore(projectPath, buildFolder, log);
|
|
349
336
|
// add **/.env.teamsfx.local to .gitignore
|
|
350
|
-
const envLocal = "**/" +
|
|
337
|
+
const envLocal = "**/" + localEnvProvider_1.LocalEnvProvider.LocalEnvFileName;
|
|
351
338
|
await addItemToGitignore(projectPath, envLocal, log);
|
|
352
339
|
// add .fx/states/*.userdata to .gitignore
|
|
353
340
|
const userdata = `.${teamsfx_api_1.ConfigFolderName}/${teamsfx_api_1.StatesFolderName}/*.userdata`;
|
|
@@ -712,25 +699,8 @@ async function needMigrateToArmAndMultiEnv(ctx) {
|
|
|
712
699
|
}
|
|
713
700
|
return false;
|
|
714
701
|
}
|
|
715
|
-
async function needUpdateTeamsToolkitVersion(ctx) {
|
|
716
|
-
if (preCheckEnvEnabled()) {
|
|
717
|
-
return false;
|
|
718
|
-
}
|
|
719
|
-
const inputs = ctx.arguments[ctx.arguments.length - 1];
|
|
720
|
-
if (!inputs.projectPath) {
|
|
721
|
-
return false;
|
|
722
|
-
}
|
|
723
|
-
const fx = path_1.default.join(inputs.projectPath, ".fx");
|
|
724
|
-
if (!(await fs_extra_1.default.pathExists(fx))) {
|
|
725
|
-
return false;
|
|
726
|
-
}
|
|
727
|
-
// only for arm && multi-env project
|
|
728
|
-
const armParameter = path_1.default.join(fx, "configs", parameterFileNameTemplate.replace("@envName", "dev"));
|
|
729
|
-
const defaultEnv = path_1.default.join(fx, "env.default.json");
|
|
730
|
-
return (await fs_extra_1.default.pathExists(armParameter)) && !(await fs_extra_1.default.pathExists(defaultEnv));
|
|
731
|
-
}
|
|
732
702
|
function preCheckEnvEnabled() {
|
|
733
|
-
if (tools_1.
|
|
703
|
+
if (tools_1.isArmSupportEnabled()) {
|
|
734
704
|
return true;
|
|
735
705
|
}
|
|
736
706
|
return false;
|
|
@@ -815,15 +785,13 @@ async function generateArmTemplatesFiles(ctx) {
|
|
|
815
785
|
const projectSettings = loadRes.value;
|
|
816
786
|
minorCtx.projectSettings = projectSettings;
|
|
817
787
|
const targetEnvName = "dev";
|
|
818
|
-
const result = await envInfoLoader_1.loadSolutionContext(
|
|
788
|
+
const result = await envInfoLoader_1.loadSolutionContext(inputs, minorCtx.projectSettings, targetEnvName, inputs.ignoreEnvInfo);
|
|
819
789
|
if (result.isErr()) {
|
|
820
790
|
throw __1.SolutionConfigError();
|
|
821
791
|
}
|
|
822
792
|
minorCtx.solutionContext = result.value;
|
|
823
793
|
const settings = (_a = minorCtx.projectSettings) === null || _a === void 0 ? void 0 : _a.solutionSettings;
|
|
824
|
-
const activePlugins =
|
|
825
|
-
? ResourcePluginContainer_1.getActivatedV2ResourcePlugins(settings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p))
|
|
826
|
-
: ResourcePluginContainer_1.getActivatedResourcePlugins(settings);
|
|
794
|
+
const activePlugins = ResourcePluginContainer_1.getActivatedV2ResourcePlugins(settings).map((p) => new adaptor_1.NamedArmResourcePluginAdaptor(p));
|
|
827
795
|
// generate bicep files.
|
|
828
796
|
try {
|
|
829
797
|
await arm_1.generateArmTemplate(minorCtx.solutionContext, activePlugins);
|