You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's one easy way to accomplish this, with the only downside being that the npm command will run if the yarn command fails (e.g. the build fails).
"beforeDevCommand": "yarn dev || npm run dev",
"beforeBuildCommand": "yarn build || npm run build",
Alternatively, we could substitute the yarn command by node $npm_execpath run <script> (on Unix systems) or node \"%npm_execpath%\" run <script> (on Windows). The only downside to this approach is that you would need dev.unix and dev.win: essentially, repeat every script twice.
Or just support yarn. What are your thoughts?
The text was updated successfully, but these errors were encountered:
carlos-menezes
changed the title
Package agnostic Tauri build scripts
Package manager agnostic Tauri build scripts
Nov 15, 2023
Currently, Tauri's build scripts are not package-manager agnostic
There's one easy way to accomplish this, with the only downside being that the
npm
command will run if theyarn
command fails (e.g. the build fails).Alternatively, we could substitute the
yarn
command bynode $npm_execpath run <script>
(on Unix systems) ornode \"%npm_execpath%\" run <script>
(on Windows). The only downside to this approach is that you would needdev.unix
anddev.win
: essentially, repeat every script twice.Or just support yarn. What are your thoughts?
The text was updated successfully, but these errors were encountered: