Skip to content

Commit

Permalink
fix(bootstrap): fix windows node_modules path
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Sep 9, 2016
1 parent 9ddba69 commit 4f2258e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bootstrap-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4f2258e

Please sign in to comment.