Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import "vitest/config";
import { execFile } from "node:child_process";

const runLocaleScripts = () => {
execFile("yarn", ["locale-compile"], (error, stdout, _stderr) => {
execFile("yarn", ["locale-compile"], { shell: true }, (error, stdout, _stderr) => {
Comment thread
toviszsolt marked this conversation as resolved.
Outdated
if (error) {
throw error;
}
console.log(stdout);
execFile("yarn", ["locale-sort"], (error, stdout, _stderr) => {
execFile("yarn", ["locale-sort"], { shell: true }, (error, stdout, _stderr) => {
Comment thread
toviszsolt marked this conversation as resolved.
Outdated
if (error) {
throw error;
}
Expand All @@ -23,7 +23,7 @@ const runLocaleScripts = () => {
export default defineConfig({
plugins: [
{
name: 'run-on-start',
name: "run-on-start",
configureServer(_server) {
runLocaleScripts();
},
Expand Down