Skip to content

Commit

Permalink
fix(swingset): path -> paths typo in require.resolve options
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 30, 2021
1 parent 151a394 commit 58a0d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/initializeSwingset.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function loadBasedir(basedir) {
*/
function resolveSpecFromConfig(dirname, specPath) {
try {
return require.resolve(specPath, { path: [dirname] });
return require.resolve(specPath, { paths: [dirname] });
} catch (e) {
if (e.code !== 'MODULE_NOT_FOUND') {
throw e;
Expand Down

0 comments on commit 58a0d0a

Please sign in to comment.