Skip to content

Commit a0e7a44

Browse files
committed
bugfix: Used the join() method to join folder paths, independently of the operating system
1 parent 2a024fc commit a0e7a44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/ember-cli-mirage/config/environment.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const fs = require('fs');
4+
const path = require('path');
45

56
function usingProxy() {
67
const usingProxyArg = !!process.argv.filter(function (arg) {
@@ -12,7 +13,7 @@ function usingProxy() {
1213
}).length;
1314

1415
let hasGeneratedProxies = false;
15-
const proxiesDir = `${process.env.PWD}/server/proxies`;
16+
const proxiesDir = path.join(process.env.PWD, 'server', 'proxies');
1617

1718
try {
1819
fs.lstatSync(proxiesDir);

0 commit comments

Comments
 (0)