diff --git a/docs/change-log.md b/docs/change-log.md index 85858b96..3d5d786e 100644 --- a/docs/change-log.md +++ b/docs/change-log.md @@ -17,6 +17,8 @@ ### Upcoming... +- Fix `ospec require` with relative paths + --> ### v2.0.3 diff --git a/ospec/bin/ospec b/ospec/bin/ospec index a4a6f2d0..80a21bf1 100755 --- a/ospec/bin/ospec +++ b/ospec/bin/ospec @@ -30,7 +30,7 @@ var cwd = process.cwd() if (args.require) { args.require.forEach(function(module) { // eslint-disable-next-line global-require - if (module) require(require.resolve(module, {basedir: cwd})) + if (module) require(require.resolve(module, {paths: [cwd]})) }) }