From a0e7a44aebe9cb07317699fbe17f19d1e227fc04 Mon Sep 17 00:00:00 2001 From: ijlee2 Date: Wed, 18 Oct 2023 11:29:56 +0200 Subject: [PATCH] bugfix: Used the join() method to join folder paths, independently of the operating system --- packages/ember-cli-mirage/config/environment.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ember-cli-mirage/config/environment.js b/packages/ember-cli-mirage/config/environment.js index af0b262f6..f1e0614f2 100644 --- a/packages/ember-cli-mirage/config/environment.js +++ b/packages/ember-cli-mirage/config/environment.js @@ -1,6 +1,7 @@ 'use strict'; const fs = require('fs'); +const path = require('path'); function usingProxy() { const usingProxyArg = !!process.argv.filter(function (arg) { @@ -12,7 +13,7 @@ function usingProxy() { }).length; let hasGeneratedProxies = false; - const proxiesDir = `${process.env.PWD}/server/proxies`; + const proxiesDir = path.join(process.env.PWD, 'server', 'proxies'); try { fs.lstatSync(proxiesDir);