From 4f2258e7897cea0fd4bc1dca0bf1bc52a833f160 Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Fri, 9 Sep 2016 23:11:45 +0100 Subject: [PATCH] fix(bootstrap): fix windows node_modules path --- lib/bootstrap-local.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap-local.js b/lib/bootstrap-local.js index f336b5183636..e658d3b02291 100644 --- a/lib/bootstrap-local.js +++ b/lib/bootstrap-local.js @@ -42,7 +42,7 @@ require.extensions['.ts'] = function(m, filename) { // }); // If we're running locally, meaning npm linked. This is basically "developer mode". -if (!__dirname.match(/\/node_modules\//)) { +if (!__dirname.match(new RegExp(`\\${path.sep}node_modules\\${path.sep}`))) { const packages = require('./packages'); // We mock the module loader so that we can fake our packages when running locally.