From 5ee277aaf02852017fe0b79f793bd38fe5c06646 Mon Sep 17 00:00:00 2001 From: Aylong <69762909+AyIong@users.noreply.github.com> Date: Tue, 30 Jul 2024 16:44:10 +0300 Subject: [PATCH] Fix TGUI Dev Server (#26334) --- tgui/packages/tgui-dev-server/util.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tgui/packages/tgui-dev-server/util.js b/tgui/packages/tgui-dev-server/util.js index 79190fe189a..211174bbdc7 100644 --- a/tgui/packages/tgui-dev-server/util.js +++ b/tgui/packages/tgui-dev-server/util.js @@ -6,10 +6,7 @@ import fs from 'fs'; import path from 'path'; - -import { require } from './require.js'; - -const globPkg = require('glob'); +import { globSync } from 'glob'; export const resolvePath = path.resolve; @@ -17,10 +14,7 @@ export const resolvePath = path.resolve; * Combines path.resolve with glob patterns. */ export const resolveGlob = (...sections) => { - const unsafePaths = globPkg.sync(path.resolve(...sections), { - strict: false, - silent: true, - }); + const unsafePaths = globSync(path.resolve(...sections), { nodir: false, windowsPathsNoEscape: true }); const safePaths = []; for (let path of unsafePaths) { try {