Change order of loading folders for node port.
@@ -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 */
