@microsoft/teamsfx-core 1.1.2 → 1.1.3-alpha.17023c57.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 +24 -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 +83 -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 +8 -0
- package/build/common/deps-checker/index.d.ts.map +1 -0
- package/build/common/deps-checker/index.js +13 -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 +279 -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 +183 -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/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 +2 -0
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +2 -0
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +109 -0
- package/build/common/local/constants.d.ts.map +1 -0
- package/build/common/local/constants.js +115 -0
- package/build/common/local/constants.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +16 -0
- package/build/common/local/localEnvManager.d.ts.map +1 -0
- package/build/common/local/localEnvManager.js +72 -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 +129 -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 +100 -0
- package/build/common/local/portChecker.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +10 -0
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -0
- package/build/common/local/projectSettingsHelper.js +34 -0
- package/build/common/local/projectSettingsHelper.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 +10 -5
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +29 -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 +53 -15
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +689 -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/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +3 -12
- package/build/plugins/resource/aad/plugin.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 +6 -1
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +6 -1
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +2 -1
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +15 -12
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +2 -3
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +233 -443
- 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 +49 -0
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/index.js +51 -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 +30 -24
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +1 -7
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +2 -9
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/env.d.ts +21 -0
- package/build/plugins/resource/frontend/env.d.ts.map +1 -0
- package/build/plugins/resource/frontend/env.js +82 -0
- package/build/plugins/resource/frontend/env.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +2 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +2 -2
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +2 -0
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +38 -21
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/utils/environment-utils.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/environment-utils.js +4 -2
- package/build/plugins/resource/frontend/utils/environment-utils.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/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/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 +18 -11
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +390 -131
- 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/debug/constants.d.ts +14 -0
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/constants.js +22 -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 +233 -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 +164 -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 +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +2 -32
- 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 +14 -5
- 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/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.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +7 -4
- package/build/plugins/solution/fx-solution/v2/executeUserTask.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 +67 -25
- 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 +9 -1
- 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 +5 -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 +261 -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 +20 -5
- package/resource/deps-checker/dotnet-install.ps1 +1095 -0
- package/resource/deps-checker/dotnet-install.sh +1222 -0
- package/resource/strings.json +1 -2
- 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 +24 -29
- package/templates/plugins/resource/bot/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/bot/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/function/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +33 -31
- package/templates/plugins/resource/function/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +1 -0
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +4 -2
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +20 -24
- package/templates/plugins/resource/simpleauth/version.txt +2 -1
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +1 -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,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DepsManager = void 0;
|
|
6
|
+
const depsChecker_1 = require("./depsChecker");
|
|
7
|
+
const checkerFactory_1 = require("./checkerFactory");
|
|
8
|
+
class DepsManager {
|
|
9
|
+
constructor(logger, telemetry) {
|
|
10
|
+
if (!logger) {
|
|
11
|
+
throw Error("Logger is undefined.");
|
|
12
|
+
}
|
|
13
|
+
if (!telemetry) {
|
|
14
|
+
throw Error("Logger is undefined.");
|
|
15
|
+
}
|
|
16
|
+
this._logger = logger;
|
|
17
|
+
this._telemetry = telemetry;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Ensure dependencies installed.
|
|
21
|
+
* Installation Orders:
|
|
22
|
+
* Node, Dotnet, FuncCoreTools, Ngrok
|
|
23
|
+
* @param dependencies Dependency types. If it is empty, do nothing.
|
|
24
|
+
* @param options If fastFail is false, it will continue even if one of the dependencies fails to install. Default value is true.
|
|
25
|
+
*/
|
|
26
|
+
async ensureDependencies(dependencies, { fastFail = true }) {
|
|
27
|
+
if (!dependencies || dependencies.length == 0) {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
const orderedDeps = this.sortBySequence(dependencies, DepsManager._depsOrders);
|
|
31
|
+
const result = [];
|
|
32
|
+
let shouldInstall = true;
|
|
33
|
+
for (const type of orderedDeps) {
|
|
34
|
+
const status = await this.resolve(type, shouldInstall);
|
|
35
|
+
result.push(status);
|
|
36
|
+
if (fastFail && !status.isInstalled) {
|
|
37
|
+
shouldInstall = false;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return result;
|
|
41
|
+
}
|
|
42
|
+
async resolve(type, shouldInstall) {
|
|
43
|
+
const checker = checkerFactory_1.CheckerFactory.createChecker(type, this._logger, this._telemetry);
|
|
44
|
+
let isInstalled = false;
|
|
45
|
+
let error = undefined;
|
|
46
|
+
if (shouldInstall) {
|
|
47
|
+
const result = await checker.resolve();
|
|
48
|
+
isInstalled = result.isOk() && result.value;
|
|
49
|
+
error = result.isErr() ? result.error : undefined;
|
|
50
|
+
}
|
|
51
|
+
const depsInfo = await checker.getDepsInfo();
|
|
52
|
+
const binFolder = depsInfo.details.has("binFolder")
|
|
53
|
+
? depsInfo.details.get("binFolder")
|
|
54
|
+
: undefined;
|
|
55
|
+
return {
|
|
56
|
+
name: depsInfo.name,
|
|
57
|
+
type: type,
|
|
58
|
+
isInstalled: isInstalled,
|
|
59
|
+
command: await checker.command(),
|
|
60
|
+
details: {
|
|
61
|
+
isLinuxSupported: depsInfo.isLinuxSupported,
|
|
62
|
+
supportedVersions: depsInfo.supportedVersions,
|
|
63
|
+
binFolder: binFolder,
|
|
64
|
+
},
|
|
65
|
+
error: error,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
sortBySequence(dependencies, sequence) {
|
|
69
|
+
return dependencies
|
|
70
|
+
.filter((value) => value != null)
|
|
71
|
+
.sort((a, b) => sequence.indexOf(a) - sequence.indexOf(b));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
exports.DepsManager = DepsManager;
|
|
75
|
+
DepsManager._depsOrders = [
|
|
76
|
+
depsChecker_1.DepsType.AzureNode,
|
|
77
|
+
depsChecker_1.DepsType.FunctionNode,
|
|
78
|
+
depsChecker_1.DepsType.SpfxNode,
|
|
79
|
+
depsChecker_1.DepsType.Dotnet,
|
|
80
|
+
depsChecker_1.DepsType.FuncCoreTools,
|
|
81
|
+
depsChecker_1.DepsType.Ngrok,
|
|
82
|
+
];
|
|
83
|
+
//# sourceMappingURL=depsManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depsManager.js","sourceRoot":"","sources":["../../../src/common/deps-checker/depsManager.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,+CAAgE;AAChE,qDAAkD;AAoBlD,MAAa,WAAW;IAatB,YAAY,MAAkB,EAAE,SAAwB;QACtD,IAAI,CAAC,MAAM,EAAE;YACX,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;SACrC;QACD,IAAI,CAAC,SAAS,EAAE;YACd,MAAM,KAAK,CAAC,sBAAsB,CAAC,CAAC;SACrC;QAED,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CA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EAAE,CAAC;QACvD,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;YACjD,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC;YACnC,CAAC,CAAC,SAAS,CAAC;QACd,OAAO;YACL,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,WAAW;YACxB,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE;YAChC,OAAO,EAAE;gBACP,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;gBAC3C,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;gBAC7C,SAAS,EAAE,SAAS;aACrB;YACD,KAAK,EAAE,KAAK;SACb,CAAC;IACJ,CAAC;IAEO,cAAc,CAAC,YAAwB,EAAE,QAAoB;QACnE,OAAO,YAAY;aAChB,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC;aAChC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/D,CAAC;;AAxFH,kCAyFC;AAxFyB,uBAAW,GAAG;IACpC,sBAAQ,CAAC,SAAS;IAClB,sBAAQ,CAAC,YAAY;IACrB,sBAAQ,CAAC,QAAQ;IACjB,sBAAQ,CAAC,MAAM;IACf,sBAAQ,CAAC,aAAa;IACtB,sBAAQ,CAAC,KAAK;CACf,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DepsCheckerEvent } from "./constant/telemetry";
|
|
2
|
+
export interface DepsTelemetry {
|
|
3
|
+
sendEvent(eventName: DepsCheckerEvent, properties?: {
|
|
4
|
+
[p: string]: string;
|
|
5
|
+
}, timecost?: number): void;
|
|
6
|
+
sendEventWithDuration(eventName: DepsCheckerEvent, action: () => Promise<void>): Promise<void>;
|
|
7
|
+
sendUserErrorEvent(eventName: DepsCheckerEvent, errorMessage: string): void;
|
|
8
|
+
sendSystemErrorEvent(eventName: DepsCheckerEvent, errorMessage: string, errorStack: string): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=depsTelemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depsTelemetry.d.ts","sourceRoot":"","sources":["../../../src/common/deps-checker/depsTelemetry.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,WAAW,aAAa;IAC5B,SAAS,CACP,SAAS,EAAE,gBAAgB,EAC3B,UAAU,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,EACpC,QAAQ,CAAC,EAAE,MAAM,GAChB,IAAI,CAAC;IAER,qBAAqB,CAAC,SAAS,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/F,kBAAkB,CAAC,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5E,oBAAoB,CAAC,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CACnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"depsTelemetry.js","sourceRoot":"","sources":["../../../src/common/deps-checker/depsTelemetry.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/deps-checker/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
6
|
+
tslib_1.__exportStar(require("./checkerFactory"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./depsChecker"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./depsError"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./depsLogger"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./depsManager"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./depsTelemetry"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./constant"), exports);
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/deps-checker/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,2DAAiC;AACjC,wDAA8B;AAC9B,sDAA4B;AAC5B,uDAA6B;AAC7B,wDAA8B;AAC9B,0DAAgC;AAChC,qDAA2B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Result } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { DepsCheckerError } from "../depsError";
|
|
3
|
+
import { DepsLogger } from "../depsLogger";
|
|
4
|
+
import { DepsTelemetry } from "../depsTelemetry";
|
|
5
|
+
import { DepsInfo, DepsChecker } from "../depsChecker";
|
|
6
|
+
export declare enum DotnetVersion {
|
|
7
|
+
v21 = "2.1",
|
|
8
|
+
v31 = "3.1",
|
|
9
|
+
v50 = "5.0",
|
|
10
|
+
v60 = "6.0"
|
|
11
|
+
}
|
|
12
|
+
export declare class DotnetChecker implements DepsChecker {
|
|
13
|
+
private static encoding;
|
|
14
|
+
private static timeout;
|
|
15
|
+
private static maxBuffer;
|
|
16
|
+
private readonly _logger;
|
|
17
|
+
private readonly _telemetry;
|
|
18
|
+
constructor(logger: DepsLogger, telemetry: DepsTelemetry);
|
|
19
|
+
getDepsInfo(): Promise<DepsInfo>;
|
|
20
|
+
isInstalled(): Promise<boolean>;
|
|
21
|
+
resolve(): Promise<Result<boolean, DepsCheckerError>>;
|
|
22
|
+
install(): Promise<void>;
|
|
23
|
+
command(): Promise<string>;
|
|
24
|
+
static escapeFilePath(path: string): string;
|
|
25
|
+
private static getDotnetConfigPath;
|
|
26
|
+
private getDotnetExecPathFromConfig;
|
|
27
|
+
private handleInstall;
|
|
28
|
+
private static persistDotnetExecPath;
|
|
29
|
+
private handleLinuxDependency;
|
|
30
|
+
private static cleanup;
|
|
31
|
+
private runDotnetInstallScript;
|
|
32
|
+
private isDotnetInstalledCorrectly;
|
|
33
|
+
private isDotnetVersionsInstalled;
|
|
34
|
+
private static arrayIntersection;
|
|
35
|
+
private static isPrivateInstall;
|
|
36
|
+
private getGlobalDotnetSdks;
|
|
37
|
+
private searchDotnetSdks;
|
|
38
|
+
private static isFullSdkVersion;
|
|
39
|
+
private static getDotnetExecPathFromDotnetInstallationDir;
|
|
40
|
+
private getDotnetInstallScriptPath;
|
|
41
|
+
getResourceDir(): string;
|
|
42
|
+
private getDotnetInstallScriptName;
|
|
43
|
+
private static getDefaultInstallPath;
|
|
44
|
+
private getInstallCommand;
|
|
45
|
+
private validate;
|
|
46
|
+
private validateWithHelloWorld;
|
|
47
|
+
private tryAcquireGlobalDotnetSdk;
|
|
48
|
+
private static parseDotnetVersion;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=dotnetChecker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotnetChecker.d.ts","sourceRoot":"","sources":["../../../../src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CAAC,MAAM,CAAC,gBAAgB;YAOjB,mBAAmB;YAKnB,gBAAgB;IA6C9B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B,OAAO,CAAC,MAAM,CAAC,0CAA0C;IAIzD,OAAO,CAAC,0BAA0B;IAI3B,cAAc,IAAI,MAAM;IAI/B,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,MAAM,CAAC,qBAAqB;YAItB,iBAAiB;YAkCjB,QAAQ;YAUR,sBAAsB;YAgDtB,yBAAyB;IAoBvC,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAQlC"}
|
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.DotnetChecker = exports.DotnetVersion = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const os = tslib_1.__importStar(require("os"));
|
|
8
|
+
const fs = tslib_1.__importStar(require("fs-extra"));
|
|
9
|
+
const path = tslib_1.__importStar(require("path"));
|
|
10
|
+
const child_process = tslib_1.__importStar(require("child_process"));
|
|
11
|
+
const util = tslib_1.__importStar(require("util"));
|
|
12
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
13
|
+
const perf_hooks_1 = require("perf_hooks");
|
|
14
|
+
const helpLink_1 = require("../constant/helpLink");
|
|
15
|
+
const depsError_1 = require("../depsError");
|
|
16
|
+
const progressIndicator_1 = require("../util/progressIndicator");
|
|
17
|
+
const cpUtils_1 = require("../util/cpUtils");
|
|
18
|
+
const system_1 = require("../util/system");
|
|
19
|
+
const telemetry_1 = require("../constant/telemetry");
|
|
20
|
+
const message_1 = require("../constant/message");
|
|
21
|
+
const execFile = util.promisify(child_process.execFile);
|
|
22
|
+
var DotnetVersion;
|
|
23
|
+
(function (DotnetVersion) {
|
|
24
|
+
DotnetVersion["v21"] = "2.1";
|
|
25
|
+
DotnetVersion["v31"] = "3.1";
|
|
26
|
+
DotnetVersion["v50"] = "5.0";
|
|
27
|
+
DotnetVersion["v60"] = "6.0";
|
|
28
|
+
})(DotnetVersion = exports.DotnetVersion || (exports.DotnetVersion = {}));
|
|
29
|
+
const DotnetCoreSDKName = ".NET Core SDK";
|
|
30
|
+
const installVersion = system_1.isMacOS() && system_1.isArm64() ? DotnetVersion.v60 : DotnetVersion.v31;
|
|
31
|
+
const supportedVersions = [DotnetVersion.v31, DotnetVersion.v50, DotnetVersion.v60];
|
|
32
|
+
const installedNameWithVersion = `${DotnetCoreSDKName} (v${DotnetVersion.v31})`;
|
|
33
|
+
class DotnetChecker {
|
|
34
|
+
constructor(logger, telemetry) {
|
|
35
|
+
this._logger = logger;
|
|
36
|
+
this._telemetry = telemetry;
|
|
37
|
+
}
|
|
38
|
+
async getDepsInfo() {
|
|
39
|
+
const map = new Map();
|
|
40
|
+
const execPath = await this.getDotnetExecPathFromConfig();
|
|
41
|
+
if (execPath) {
|
|
42
|
+
map.set("execPath", execPath);
|
|
43
|
+
}
|
|
44
|
+
map.set("configPath", DotnetChecker.getDotnetConfigPath());
|
|
45
|
+
return {
|
|
46
|
+
name: DotnetCoreSDKName,
|
|
47
|
+
isLinuxSupported: false,
|
|
48
|
+
installVersion: `${installVersion}`,
|
|
49
|
+
supportedVersions: supportedVersions,
|
|
50
|
+
details: map,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
async isInstalled() {
|
|
54
|
+
const configPath = DotnetChecker.getDotnetConfigPath();
|
|
55
|
+
await this._logger.debug(`[start] read dotnet path from '${configPath}'`);
|
|
56
|
+
const dotnetPath = await this.getDotnetExecPathFromConfig();
|
|
57
|
+
await this._logger.debug(`[end] read dotnet path from '${configPath}', dotnetPath = '${dotnetPath}'`);
|
|
58
|
+
await this._logger.debug(`[start] check dotnet version`);
|
|
59
|
+
if (dotnetPath !== null && (await this.isDotnetInstalledCorrectly())) {
|
|
60
|
+
// filter out global sdk
|
|
61
|
+
if (dotnetPath.includes(`.${teamsfx_api_1.ConfigFolderName}`)) {
|
|
62
|
+
this._telemetry.sendEvent(telemetry_1.DepsCheckerEvent.dotnetInstallCompleted);
|
|
63
|
+
}
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
await this._logger.debug(`[end] check dotnet version`);
|
|
67
|
+
if ((await this.tryAcquireGlobalDotnetSdk()) && (await this.validate())) {
|
|
68
|
+
this._telemetry.sendEvent(telemetry_1.DepsCheckerEvent.dotnetAlreadyInstalled);
|
|
69
|
+
await this._logger.info(`${message_1.Messages.useGlobalDotnet} '${await this.getDotnetExecPathFromConfig()}'`);
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
async resolve() {
|
|
75
|
+
try {
|
|
76
|
+
if (!(await this.isInstalled())) {
|
|
77
|
+
await this.install();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (error) {
|
|
81
|
+
await this._logger.printDetailLog();
|
|
82
|
+
await this._logger.error(`${error.message}, error = '${error}'`);
|
|
83
|
+
if (error instanceof depsError_1.DepsCheckerError) {
|
|
84
|
+
return teamsfx_api_1.err(error);
|
|
85
|
+
}
|
|
86
|
+
return teamsfx_api_1.err(new depsError_1.DepsCheckerError(error.message, helpLink_1.dotnetFailToInstallHelpLink));
|
|
87
|
+
}
|
|
88
|
+
finally {
|
|
89
|
+
this._logger.cleanup();
|
|
90
|
+
}
|
|
91
|
+
return teamsfx_api_1.ok(true);
|
|
92
|
+
}
|
|
93
|
+
async install() {
|
|
94
|
+
if (system_1.isLinux()) {
|
|
95
|
+
throw new depsError_1.LinuxNotSupportedError(helpLink_1.dotnetExplanationHelpLink);
|
|
96
|
+
}
|
|
97
|
+
await this._logger.debug(`[start] cleanup bin/dotnet and config`);
|
|
98
|
+
await DotnetChecker.cleanup();
|
|
99
|
+
await this._logger.debug(`[end] cleanup bin/dotnet and config`);
|
|
100
|
+
const installDir = DotnetChecker.getDefaultInstallPath();
|
|
101
|
+
await this._logger.debug(`[start] install dotnet ${installVersion}`);
|
|
102
|
+
await this._logger.debug(message_1.Messages.dotnetNotFound
|
|
103
|
+
.replace("@NameVersion", installedNameWithVersion)
|
|
104
|
+
.replace("@HelpLink", helpLink_1.dotnetExplanationHelpLink));
|
|
105
|
+
await this._logger.info(message_1.Messages.downloadDotnet
|
|
106
|
+
.replace("@NameVersion", installedNameWithVersion)
|
|
107
|
+
.replace("@InstallDir", installDir));
|
|
108
|
+
// TODO add progress log
|
|
109
|
+
await progressIndicator_1.runWithProgressIndicator(async () => {
|
|
110
|
+
await this.handleInstall(installVersion, installDir);
|
|
111
|
+
}, this._logger);
|
|
112
|
+
await this._logger.info(message_1.Messages.finishInstallDotnet.replace("@NameVersion", installedNameWithVersion));
|
|
113
|
+
await this._logger.debug(`[end] install dotnet ${installVersion}`);
|
|
114
|
+
await this._logger.debug(`[start] validate dotnet version`);
|
|
115
|
+
if (!(await this.validate())) {
|
|
116
|
+
this._telemetry.sendEvent(telemetry_1.DepsCheckerEvent.dotnetInstallError);
|
|
117
|
+
throw new depsError_1.DepsCheckerError(message_1.Messages.failToInstallDotnet.split("@NameVersion").join(installedNameWithVersion), helpLink_1.dotnetFailToInstallHelpLink);
|
|
118
|
+
}
|
|
119
|
+
this._telemetry.sendEvent(telemetry_1.DepsCheckerEvent.dotnetInstallCompleted);
|
|
120
|
+
}
|
|
121
|
+
async command() {
|
|
122
|
+
const execPath = await this.getDotnetExecPathFromConfig();
|
|
123
|
+
return execPath || "dotnet";
|
|
124
|
+
}
|
|
125
|
+
static escapeFilePath(path) {
|
|
126
|
+
if (system_1.isWindows()) {
|
|
127
|
+
// Need to escape apostrophes with two apostrophes
|
|
128
|
+
const dotnetInstallDirEscaped = path.replace(/'/g, `''`);
|
|
129
|
+
// Surround with single quotes instead of double quotes (see https://github.com/dotnet/cli/issues/11521)
|
|
130
|
+
return `'${dotnetInstallDirEscaped}'`;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return `"${path}"`;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
static getDotnetConfigPath() {
|
|
137
|
+
return path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "dotnet.json");
|
|
138
|
+
}
|
|
139
|
+
async getDotnetExecPathFromConfig() {
|
|
140
|
+
try {
|
|
141
|
+
const config = await fs.readJson(DotnetChecker.getDotnetConfigPath(), {
|
|
142
|
+
encoding: DotnetChecker.encoding,
|
|
143
|
+
});
|
|
144
|
+
if (typeof config.dotnetExecutablePath === "string") {
|
|
145
|
+
return config.dotnetExecutablePath;
|
|
146
|
+
}
|
|
147
|
+
await this._logger.debug(`invalid dotnet config file format, config: '${JSON.stringify(config)}' `);
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
await this._logger.debug(`get dotnet path failed, error: '${error}'`);
|
|
151
|
+
}
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
// Do not print info level log in this method because it runs concurrently with the progress bar
|
|
155
|
+
async handleInstall(version, installDir) {
|
|
156
|
+
try {
|
|
157
|
+
if (system_1.isLinux()) {
|
|
158
|
+
await this.handleLinuxDependency();
|
|
159
|
+
}
|
|
160
|
+
// NOTE: we don't need to handle directory creation since dotnet-install script will handle it.
|
|
161
|
+
await this.runDotnetInstallScript(version, installDir);
|
|
162
|
+
await this._logger.debug(`[start] write dotnet path to config`);
|
|
163
|
+
const dotnetExecPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(installDir);
|
|
164
|
+
await DotnetChecker.persistDotnetExecPath(dotnetExecPath);
|
|
165
|
+
await this._logger.debug(`[end] write dotnet path to config`);
|
|
166
|
+
}
|
|
167
|
+
catch (error) {
|
|
168
|
+
await this._logger.error(`${message_1.Messages.failToInstallDotnet
|
|
169
|
+
.split("@NameVersion")
|
|
170
|
+
.join(installedNameWithVersion)}, error = '${error}'`);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
static async persistDotnetExecPath(dotnetExecPath) {
|
|
174
|
+
const configPath = DotnetChecker.getDotnetConfigPath();
|
|
175
|
+
await fs.ensureFile(configPath);
|
|
176
|
+
await fs.writeJson(configPath, { dotnetExecutablePath: dotnetExecPath }, {
|
|
177
|
+
encoding: DotnetChecker.encoding,
|
|
178
|
+
spaces: 4,
|
|
179
|
+
EOL: os.EOL,
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
async handleLinuxDependency() {
|
|
183
|
+
// do nothing
|
|
184
|
+
}
|
|
185
|
+
static async cleanup() {
|
|
186
|
+
await fs.remove(DotnetChecker.getDotnetConfigPath());
|
|
187
|
+
await fs.emptyDir(DotnetChecker.getDefaultInstallPath());
|
|
188
|
+
}
|
|
189
|
+
// from: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/vscode-dotnet-runtime-library/src/Acquisition/AcquisitionInvoker.ts
|
|
190
|
+
async runDotnetInstallScript(version, installDir) {
|
|
191
|
+
const command = await this.getInstallCommand(version, installDir);
|
|
192
|
+
const cwd = this.getResourceDir();
|
|
193
|
+
const options = {
|
|
194
|
+
cwd: cwd,
|
|
195
|
+
maxBuffer: DotnetChecker.maxBuffer,
|
|
196
|
+
timeout: DotnetChecker.timeout,
|
|
197
|
+
killSignal: "SIGKILL",
|
|
198
|
+
shell: false,
|
|
199
|
+
};
|
|
200
|
+
const start = perf_hooks_1.performance.now();
|
|
201
|
+
try {
|
|
202
|
+
fs.chmodSync(this.getDotnetInstallScriptPath(), "755");
|
|
203
|
+
const { stdout, stderr } = await execFile(command[0], command.slice(1), options);
|
|
204
|
+
await this._logger.debug(`Finished running dotnet-install script, command = '${command.join(" ")}', options = '${JSON.stringify(options)}', stdout = '${stdout}', stderr = '${stderr}'`);
|
|
205
|
+
const timecost = Number(((perf_hooks_1.performance.now() - start) / 1000).toFixed(2));
|
|
206
|
+
if (stderr && stderr.length > 0) {
|
|
207
|
+
const errorMessage = `${message_1.Messages.failToInstallDotnet
|
|
208
|
+
.split("@NameVersion")
|
|
209
|
+
.join(installedNameWithVersion)} ${message_1.Messages.dotnetInstallStderr} stdout = '${stdout}', stderr = '${stderr}', timecost = '${timecost}s'`;
|
|
210
|
+
this._telemetry.sendSystemErrorEvent(telemetry_1.DepsCheckerEvent.dotnetInstallScriptError, telemetry_1.TelemtryMessages.failedToExecDotnetScript, errorMessage);
|
|
211
|
+
await this._logger.error(errorMessage);
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
this._telemetry.sendEvent(telemetry_1.DepsCheckerEvent.dotnetInstallScriptCompleted, {}, timecost);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
catch (error) {
|
|
218
|
+
const timecost = Number(((perf_hooks_1.performance.now() - start) / 1000).toFixed(2));
|
|
219
|
+
const errorMessage = `${message_1.Messages.failToInstallDotnet.split("@NameVersion").join(installedNameWithVersion)} ${message_1.Messages.dotnetInstallErrorCode}, ` +
|
|
220
|
+
`command = '${command.join(" ")}', options = '${JSON.stringify(options)}', error = '${error}', stdout = '${error.stdout}', stderr = '${error.stderr}', timecost = '${timecost}s'`;
|
|
221
|
+
this._telemetry.sendSystemErrorEvent(telemetry_1.DepsCheckerEvent.dotnetInstallScriptError, telemetry_1.TelemtryMessages.failedToExecDotnetScript, errorMessage);
|
|
222
|
+
// swallow the exception since later validate will find out the errors anyway
|
|
223
|
+
await this._logger.error(errorMessage);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
async isDotnetInstalledCorrectly() {
|
|
227
|
+
try {
|
|
228
|
+
const dotnetExecPath = await this.getDotnetExecPathFromConfig();
|
|
229
|
+
const dotnetSdks = await this.searchDotnetSdks(dotnetExecPath);
|
|
230
|
+
const installedVersions = dotnetSdks
|
|
231
|
+
.map((sdk) => DotnetChecker.parseDotnetVersion(sdk.version))
|
|
232
|
+
.filter((version) => version !== null);
|
|
233
|
+
return this.isDotnetVersionsInstalled(installedVersions);
|
|
234
|
+
}
|
|
235
|
+
catch (error) {
|
|
236
|
+
const errorMessage = `validate private install failed, error = '${error}'`;
|
|
237
|
+
this._telemetry.sendSystemErrorEvent(telemetry_1.DepsCheckerEvent.dotnetValidationError, telemetry_1.TelemtryMessages.failedToValidateDotnet, errorMessage);
|
|
238
|
+
await this._logger.debug(errorMessage);
|
|
239
|
+
return false;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
async isDotnetVersionsInstalled(installedVersions) {
|
|
243
|
+
try {
|
|
244
|
+
const validVersions = DotnetChecker.arrayIntersection(installedVersions, supportedVersions);
|
|
245
|
+
return validVersions.length > 0;
|
|
246
|
+
}
|
|
247
|
+
catch (error) {
|
|
248
|
+
await this._logger.error(`failed to check .NET, installedVersions = '${installedVersions}', supportedVersions = '${supportedVersions}', error = '${error}'`);
|
|
249
|
+
return false;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
static arrayIntersection(lhs, rhs) {
|
|
253
|
+
return lhs.filter((value) => rhs.includes(value));
|
|
254
|
+
}
|
|
255
|
+
static isPrivateInstall(sdk) {
|
|
256
|
+
const privateInstallPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(DotnetChecker.getDefaultInstallPath());
|
|
257
|
+
return path.dirname(privateInstallPath) == path.dirname(sdk.path) && sdk.version !== null;
|
|
258
|
+
}
|
|
259
|
+
async getGlobalDotnetSdks() {
|
|
260
|
+
const globalSdks = await this.searchDotnetSdks("dotnet");
|
|
261
|
+
return globalSdks.filter((sdk) => !DotnetChecker.isPrivateInstall(sdk));
|
|
262
|
+
}
|
|
263
|
+
async searchDotnetSdks(dotnetExecPath) {
|
|
264
|
+
if (!dotnetExecPath) {
|
|
265
|
+
return [];
|
|
266
|
+
}
|
|
267
|
+
const sdks = [];
|
|
268
|
+
try {
|
|
269
|
+
// shell = false to prevent shell escape issues in dotnetExecPath
|
|
270
|
+
const dotnetListSdksOutput = await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetExecPath, "--list-sdks");
|
|
271
|
+
// dotnet --list-sdks sample output:
|
|
272
|
+
// > 5.0.200 [C:\Program Files\dotnet\sdk]
|
|
273
|
+
// > 3.1.200 [C:\Program Files\dotnet\sdk]
|
|
274
|
+
const regex = /(?<version>\d+\.\d+\.\d+)\s+\[(?<installPath>[^\]]+)\]/;
|
|
275
|
+
// NOTE(aochengwang):
|
|
276
|
+
// for default installation, we expect our dotnet should be installVersion.
|
|
277
|
+
// for user specified dotnet path, check that installVersion exists in any dotnet installation from dotnet --list-sdks.
|
|
278
|
+
dotnetListSdksOutput.split(/\r?\n/).forEach((line) => {
|
|
279
|
+
const match = regex.exec(line.trim());
|
|
280
|
+
if (match && match.groups) {
|
|
281
|
+
const path = match.groups.installPath;
|
|
282
|
+
const version = match.groups.version;
|
|
283
|
+
if (DotnetChecker.isFullSdkVersion(version) && path) {
|
|
284
|
+
sdks.push({ version: version, path: path });
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
catch (error) {
|
|
290
|
+
const errorMessage = `Failed to search dotnet sdk by dotnetPath = '${dotnetExecPath}', error = '${error}'`;
|
|
291
|
+
await this._logger.debug(errorMessage);
|
|
292
|
+
this._telemetry.sendSystemErrorEvent(telemetry_1.DepsCheckerEvent.dotnetSearchDotnetSdks, telemetry_1.TelemtryMessages.failedToSearchDotnetSdks, errorMessage);
|
|
293
|
+
}
|
|
294
|
+
return sdks;
|
|
295
|
+
}
|
|
296
|
+
static isFullSdkVersion(version) {
|
|
297
|
+
const regex = /(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
|
|
298
|
+
const match = regex.exec(version);
|
|
299
|
+
return match !== null && match.length > 0;
|
|
300
|
+
}
|
|
301
|
+
static getDotnetExecPathFromDotnetInstallationDir(installDir) {
|
|
302
|
+
return path.join(installDir, system_1.isWindows() ? "dotnet.exe" : "dotnet");
|
|
303
|
+
}
|
|
304
|
+
getDotnetInstallScriptPath() {
|
|
305
|
+
return path.join(this.getResourceDir(), this.getDotnetInstallScriptName());
|
|
306
|
+
}
|
|
307
|
+
getResourceDir() {
|
|
308
|
+
return path.resolve(__dirname, "..", "..", "..", "..", "resource", "deps-checker");
|
|
309
|
+
}
|
|
310
|
+
getDotnetInstallScriptName() {
|
|
311
|
+
return system_1.isWindows() ? "dotnet-install.ps1" : "dotnet-install.sh";
|
|
312
|
+
}
|
|
313
|
+
static getDefaultInstallPath() {
|
|
314
|
+
return path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "bin", "dotnet");
|
|
315
|
+
}
|
|
316
|
+
async getInstallCommand(version, dotnetInstallDir) {
|
|
317
|
+
if (system_1.isWindows()) {
|
|
318
|
+
const command = [
|
|
319
|
+
DotnetChecker.escapeFilePath(this.getDotnetInstallScriptPath()),
|
|
320
|
+
"-InstallDir",
|
|
321
|
+
DotnetChecker.escapeFilePath(dotnetInstallDir),
|
|
322
|
+
"-Channel",
|
|
323
|
+
version,
|
|
324
|
+
];
|
|
325
|
+
return [
|
|
326
|
+
"powershell.exe",
|
|
327
|
+
"-NoProfile",
|
|
328
|
+
"-ExecutionPolicy",
|
|
329
|
+
"unrestricted",
|
|
330
|
+
"-Command",
|
|
331
|
+
`& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & ${command.join(" ")} }`,
|
|
332
|
+
];
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
return [
|
|
336
|
+
"bash",
|
|
337
|
+
this.getDotnetInstallScriptPath(),
|
|
338
|
+
"-InstallDir",
|
|
339
|
+
dotnetInstallDir,
|
|
340
|
+
"-Channel",
|
|
341
|
+
version,
|
|
342
|
+
];
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
async validate() {
|
|
346
|
+
const isInstallationValid = (await this.isDotnetInstalledCorrectly()) && (await this.validateWithHelloWorld());
|
|
347
|
+
if (!isInstallationValid) {
|
|
348
|
+
this._telemetry.sendEvent(telemetry_1.DepsCheckerEvent.dotnetValidationError);
|
|
349
|
+
await DotnetChecker.cleanup();
|
|
350
|
+
}
|
|
351
|
+
return isInstallationValid;
|
|
352
|
+
}
|
|
353
|
+
async validateWithHelloWorld() {
|
|
354
|
+
const dotnetPath = await this.getDotnetExecPathFromConfig();
|
|
355
|
+
if (!dotnetPath) {
|
|
356
|
+
return false;
|
|
357
|
+
}
|
|
358
|
+
const samplePath = path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "dotnetSample");
|
|
359
|
+
try {
|
|
360
|
+
await fs.remove(samplePath);
|
|
361
|
+
await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetPath, "new", "console", "--output", `${samplePath}`, "--force");
|
|
362
|
+
await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetPath, "run", "--project", `${samplePath}`, "--force");
|
|
363
|
+
return true;
|
|
364
|
+
}
|
|
365
|
+
catch (error) {
|
|
366
|
+
this._telemetry.sendSystemErrorEvent(telemetry_1.DepsCheckerEvent.dotnetValidationError, telemetry_1.TelemtryMessages.failedToValidateDotnet, error);
|
|
367
|
+
await this._logger.debug(`Failed to run hello world, dotnetPath = ${dotnetPath}, error = ${error}`);
|
|
368
|
+
}
|
|
369
|
+
finally {
|
|
370
|
+
await fs.remove(samplePath);
|
|
371
|
+
}
|
|
372
|
+
return false;
|
|
373
|
+
}
|
|
374
|
+
async tryAcquireGlobalDotnetSdk() {
|
|
375
|
+
try {
|
|
376
|
+
const sdks = await this.getGlobalDotnetSdks();
|
|
377
|
+
if (!sdks || sdks.length == 0) {
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
// todo: by far, use first valid dotnet sdk
|
|
381
|
+
// todo: write dotnetExecPath into user settings instead of into .fx/dotnet.json
|
|
382
|
+
const selectedSdk = sdks[0];
|
|
383
|
+
const dotnetExecPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(path.resolve(selectedSdk.path, ".."));
|
|
384
|
+
await DotnetChecker.persistDotnetExecPath(dotnetExecPath);
|
|
385
|
+
return true;
|
|
386
|
+
}
|
|
387
|
+
catch (error) {
|
|
388
|
+
await this._logger.debug(`Failed to acquire global dotnet sdk, error = '${error}'`);
|
|
389
|
+
return false;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
static parseDotnetVersion(output) {
|
|
393
|
+
var _a, _b;
|
|
394
|
+
const regex = /(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
|
|
395
|
+
const match = regex.exec(output);
|
|
396
|
+
if (!match) {
|
|
397
|
+
return null;
|
|
398
|
+
}
|
|
399
|
+
return ((_a = match.groups) === null || _a === void 0 ? void 0 : _a.major_version) + "." + ((_b = match.groups) === null || _b === void 0 ? void 0 : _b.minor_version);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
exports.DotnetChecker = DotnetChecker;
|
|
403
|
+
DotnetChecker.encoding = "utf-8";
|
|
404
|
+
DotnetChecker.timeout = 5 * 60 * 1000; // same as vscode-dotnet-runtime
|
|
405
|
+
DotnetChecker.maxBuffer = 500 * 1024;
|
|
406
|
+
//# sourceMappingURL=dotnetChecker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dotnetChecker.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/internal/dotnetChecker.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAAyB;AACzB,qDAA+B;AAC/B,mDAA6B;AAC7B,qEAA+C;AAC/C,mDAA6B;AAC7B,wDAA2E;AAC3E,2CAAyC;AACzC,mDAA8F;AAC9F,4CAAwE;AACxE,iEAAqE;AACrE,6CAA0C;AAC1C,2CAAsE;AACtE,qDAA2E;AAI3E,iDAA+C;AAE/C,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAExD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,4BA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