mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-10-21 19:21:10 +00:00
Merge a229a2562a into 1aca775cb9
This commit is contained in:
commit
fa7a3a00a1
1 changed files with 4 additions and 3 deletions
|
|
@ -5,12 +5,13 @@ import "vitest/config";
|
|||
import { execFile } from "node:child_process";
|
||||
|
||||
const runLocaleScripts = () => {
|
||||
execFile("yarn", ["locale-compile"], (error, stdout, _stderr) => {
|
||||
const shell = process.platform === "win32";
|
||||
execFile("yarn", ["locale-compile"], { shell }, (error, stdout, _stderr) => {
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
console.log(stdout);
|
||||
execFile("yarn", ["locale-sort"], (error, stdout, _stderr) => {
|
||||
execFile("yarn", ["locale-sort"], { shell }, (error, stdout, _stderr) => {
|
||||
if (error) {
|
||||
throw error;
|
||||
}
|
||||
|
|
@ -23,7 +24,7 @@ const runLocaleScripts = () => {
|
|||
export default defineConfig({
|
||||
plugins: [
|
||||
{
|
||||
name: 'run-on-start',
|
||||
name: "run-on-start",
|
||||
configureServer(_server) {
|
||||
runLocaleScripts();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue