Skip to content

Commit fd59a6d

Browse files
authored
chore: patch azure cli to allow running on unsupported Node (#2779)
<!-- ☝️ PR title should follow conventional commits (https://conventionalcommits.org). In particular, the title should start with one of the following types: - docs: 📖 Documentation (updates to the documentation or readme) - fix: 🐞 Bug fix (a non-breaking change that fixes an issue) - feat: ✨ New feature/enhancement (a non-breaking change that adds functionality or improves existing one) - feat!/fix!: ⚠️ Breaking change (fix or feature that would cause existing functionality to change) - chore: 🧹 Chore (updates to the build process or auxiliary tools and libraries) --> ### 🔗 Linked issue <!-- If it resolves an open issue, please link the issue here. For example "Resolves #123" --> ### 📚 Description <!-- Describe your changes in detail --> <!-- Why is this change required? What problem does it solve? -->
1 parent 6bbeabb commit fd59a6d

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@
161161
"patchedDependencies": {
162162
"mount-vue-component": "patches/[email protected]",
163163
"@vue/apollo-util": "patches/@[email protected]",
164-
"nitropack": "patches/[email protected]"
164+
"nitropack": "patches/[email protected]",
165+
"@azure/static-web-apps-cli": "patches/@azure__static-web-apps-cli.patch"
165166
},
166167
"onlyBuiltDependencies": [
167168
"@prisma/client",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/dist/cli/commands/start/start.js b/dist/cli/commands/start/start.js
2+
index 76971b3f2a4fd8a917564dfb313098efd5490755..d34a42f789f66b18c4e15392f7c639b89fcedcf4 100644
3+
--- a/dist/cli/commands/start/start.js
4+
+++ b/dist/cli/commands/start/start.js
5+
@@ -148,7 +148,6 @@ export async function start(options) {
6+
if (isCoreToolsVersionCompatible(targetVersion, nodeMajorVersion) === false) {
7+
logger.error(`Found Azure Functions Core Tools v${targetVersion} which is incompatible with your current Node.js v${process.versions.node}.`);
8+
logger.error("See https://aka.ms/functions-node-versions for more information.");
9+
- process.exit(1);
10+
}
11+
// serve the api if and only if the user provides a folder via the --api-location flag
12+
if (isApiLocationExistsOnDisk) {

pnpm-lock.yaml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)