@mnci/cli 4.2.0 → 4.2.2
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/dist/cli.js +8 -4
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -499,7 +499,7 @@ var ESLINT_PEER_OVERRIDES = {
|
|
|
499
499
|
// both — and forcing those to v5 breaks them. So the blast radius is one
|
|
500
500
|
// dependency edge per named parent, and a test asserts there is no top-level
|
|
501
501
|
// entry.
|
|
502
|
-
"nx": { "brace-expansion": "^5.0.9" },
|
|
502
|
+
"nx": { "brace-expansion": "^5.0.9", "smol-toml": "^1.7.1" },
|
|
503
503
|
"@nx/js": { "brace-expansion": "^5.0.9" },
|
|
504
504
|
"@nx/eslint": { "brace-expansion": "^5.0.9" },
|
|
505
505
|
"@nx/eslint-plugin": { "brace-expansion": "^5.0.9" },
|
|
@@ -792,8 +792,8 @@ function nugetConfigContent(registry, scope) {
|
|
|
792
792
|
nuget.org-issued API key, a credential mnci collects nowhere (the same
|
|
793
793
|
gap Python's PyPI publish has for this same registry choice). A
|
|
794
794
|
csharp-lib is still versioned and tagged; run "dotnet nuget push"
|
|
795
|
-
yourself with your own key, or regenerate
|
|
796
|
-
|
|
795
|
+
yourself with your own key, or regenerate choosing the azure-artifacts
|
|
796
|
+
registry instead. -->
|
|
797
797
|
<configuration>
|
|
798
798
|
<packageSources>
|
|
799
799
|
<clear />
|
|
@@ -2004,7 +2004,7 @@ class CsharpVersionActions extends VersionActions {
|
|
|
2004
2004
|
if (!VERSION_TAG.test(contents)) {
|
|
2005
2005
|
throw new Error(\`Could not find a <Version> element in \${manifestPath}\`)
|
|
2006
2006
|
}
|
|
2007
|
-
tree.write(manifestPath, contents.replace(VERSION_TAG, \`<Version>\${newVersion}</Version>\`))
|
|
2007
|
+
tree.write(manifestPath, contents.replace(VERSION_TAG, () => \`<Version>\${newVersion}</Version>\`))
|
|
2008
2008
|
|
|
2009
2009
|
return [\`Updated \${manifestPath} to version \${newVersion}\`]
|
|
2010
2010
|
}
|
|
@@ -2089,6 +2089,7 @@ function csharpFunctionAppCsproj() {
|
|
|
2089
2089
|
</PropertyGroup>
|
|
2090
2090
|
|
|
2091
2091
|
<ItemGroup>
|
|
2092
|
+
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
|
2092
2093
|
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.52.0" />
|
|
2093
2094
|
<PackageReference Include="Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore" Version="2.1.0" />
|
|
2094
2095
|
</ItemGroup>
|
|
@@ -2140,6 +2141,9 @@ function addCsharpFunctionApp(workspaceRoot, name) {
|
|
|
2140
2141
|
writeFileEnsured((0, import_node_path4.join)(absoluteRoot, "Program.cs"), CSHARP_FUNCTION_APP_PROGRAM);
|
|
2141
2142
|
writeFileEnsured((0, import_node_path4.join)(absoluteRoot, "Hello.cs"), csharpFunctionAppHello(identity));
|
|
2142
2143
|
writeFileEnsured((0, import_node_path4.join)(absoluteRoot, "host.json"), CSHARP_FUNCTION_APP_HOST_JSON);
|
|
2144
|
+
if (runShell("dotnet", ["restore", projectRoot], workspaceRoot) !== 0) {
|
|
2145
|
+
throw new Error(`dotnet restore failed for ${projectRoot}`);
|
|
2146
|
+
}
|
|
2143
2147
|
addProjectJsonTargets((0, import_node_path4.join)(absoluteRoot, "project.json"), {
|
|
2144
2148
|
package: csharpAppPackageTarget("csharp-function-app", projectRoot, name),
|
|
2145
2149
|
start: csharpFunctionAppStartTarget(projectRoot)
|