Skip to content

Commit

Permalink
Change order of loading folders for node port.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Nov 27, 2019
1 parent dab3a1a commit b5add4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/ports/node_port/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ const addon = (() => {
const LIBRARY_PATH = process.env.LOADER_LIBRARY_PATH || '';

const paths = [
LIBRARY_PATH,
__dirname,
Path.join(__dirname, 'build'),
__dirname,
process.cwd(),
LIBRARY_PATH,
Path.join(LIBRARY_PATH, 'build'),
Path.join(LIBRARY_PATH, 'node_modules', 'metacall'),
Path.join(LIBRARY_PATH, 'node_modules', 'metacall', 'build'),
];

const names = [
'node_port',
'node_portd',
'node_port',
];

/* Set NODE_PATH for finding metacall lib */
Expand Down

0 comments on commit b5add4f

Please sign in to comment.