Windows compatibility 2
Following from #3164, this is an update to the build script which now uses PowerShell.
There's also some minor refactoring done for some of the runCommand calls to remove the erroneous {stdio: []} objects.
Line 51 had to be broken up into two because Powershell kept reading the curly braces as a script block.
The changes to package.json make the switching between dev and prod platform agnostic by using NodeJS instead.
My builds also weren't working until I updated the vite config (windows read /src/components/ as C:\src\components\), hence the change there.
Thanks for the heads up on using PowerShell! My world has low-key been opened up!
@TheBrenny is attempting to deploy a commit to the Pouya Team on Vercel.
A member of the Team first needs to authorize it.
Thanks for the PR.
The build steps and project structure is changed in v5. This workaround won't be needed anymore ๐