From fd1766db7b011a135120bbc0365e04ef80ae22cd Mon Sep 17 00:00:00 2001 From: Ainvoner Date: Mon, 18 Mar 2024 14:49:02 +0200 Subject: [PATCH 1/2] fix(cli): react vite template post install command command was failing on windows --- apps/wing/project-templates/wing/react-vite/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/wing/project-templates/wing/react-vite/package.json b/apps/wing/project-templates/wing/react-vite/package.json index 3ef81049e77..c3f0f57a50b 100644 --- a/apps/wing/project-templates/wing/react-vite/package.json +++ b/apps/wing/project-templates/wing/react-vite/package.json @@ -5,7 +5,9 @@ "author": "Your Name", "license": "MIT", "scripts": { - "postinstall": "(cd backend && npm install) && (cd frontend && npm install)" + "install:backend": "cd backend && npm install", + "install:frontend": "cd frontend && npm install", + "postinstall": "npm run install:backend && npm run install:frontend" }, "dependencies": { "@winglibs/websockets": "^0.3.2" From 3acf8f6ea5c51e14ce1871619f4136d113a3725d Mon Sep 17 00:00:00 2001 From: Ainvoner <2538825+ainvoner@users.noreply.github.com> Date: Mon, 18 Mar 2024 15:21:27 +0200 Subject: [PATCH 2/2] Update apps/wing/project-templates/wing/react-vite/package.json Co-authored-by: Mark McCulloh --- apps/wing/project-templates/wing/react-vite/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/wing/project-templates/wing/react-vite/package.json b/apps/wing/project-templates/wing/react-vite/package.json index c3f0f57a50b..8892b2dd0b4 100644 --- a/apps/wing/project-templates/wing/react-vite/package.json +++ b/apps/wing/project-templates/wing/react-vite/package.json @@ -5,8 +5,8 @@ "author": "Your Name", "license": "MIT", "scripts": { - "install:backend": "cd backend && npm install", - "install:frontend": "cd frontend && npm install", + "install:backend": "npm install --prefix backend", + "install:frontend": "npm install --prefix frontend", "postinstall": "npm run install:backend && npm run install:frontend" }, "dependencies": {