From 499ecee8c7399364bb6e2a89ef96d24b6cfb9c5b Mon Sep 17 00:00:00 2001 From: redanthrax Date: Mon, 24 Jul 2023 12:39:34 -0700 Subject: [PATCH] fix launch settings for https node 18 enforcement --- .vscode/launch.json | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index e8f4c409c8fb..ba5cb9a0aceb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,7 @@ "cwd": "${file}" }, { - "command": "npm run start-api", + "command": "npm run start-swa", "name": "Run emulator", "request": "launch", "type": "node-terminal" diff --git a/package.json b/package.json index 7d4a99103c8f..967975c415d8 100644 --- a/package.json +++ b/package.json @@ -17,11 +17,11 @@ "changelog": "auto-changelog --starting-version 3.0.0 --commit-limit false --hide-credit", "eject": "react-scripts eject", "lint": "eslint \"src/**/*.js\"", - "start": "react-scripts start", + "start": "set HTTPS=true&&set SSL_CRT_FILE=./.vscode/cert.crt&&set SSL_KEY_FILE=./.vscode/key.key&&react-scripts start", "test": "react-scripts test", "test:cov": "npm test -- --coverage --watchAll=false", "test:debug": "react-scripts --inspect-brk test --runInBand", - "start-api": "swa start --ssl --ssl-cert ./.vscode/cert.crt --ssl-key ./.vscode/key.key --swa-config-location .vscode http://localhost:3000 --api-location http://localhost:7071", + "start-swa": "swa start --ssl --ssl-cert ./.vscode/cert.crt --ssl-key ./.vscode/key.key --swa-config-location .vscode https://localhost:3000 --api-location http://localhost:7071", "prepare": "husky install" }, "config": { @@ -98,7 +98,7 @@ "stylelint-order": "^5.0.0" }, "engines": { - "node": "16", + "node": "18", "npm": ">=7" } }