Lines Matching refs:resolve

240     process.send({ 'watch:require': ArrayPrototypeMap(extensions, (ext) => path.resolve(`${basePath}${ext}`)) });
424 * @param {string[]} exts File extensions to try appending in order to resolve the file
432 return tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
435 const filename = path.resolve(requestPath, pkg);
438 tryExtensions(path.resolve(filename, 'index'), exts, isMain);
440 actual = tryExtensions(path.resolve(requestPath, 'index'), exts, isMain);
448 err.path = path.resolve(requestPath, 'package.json');
453 const jsonPath = path.resolve(requestPath, 'package.json');
467 * intact, otherwise resolve to the absolute realpath.
475 return path.resolve(requestPath);
534 * Attempt to resolve a module request using the parent module package metadata.
536 * @param {string} request The module request to resolve
556 const { packageExportsResolve } = require('internal/modules/esm/resolve');
585 const pkgPath = path.resolve(nmPath, name);
589 const { packageExportsResolve } = require('internal/modules/esm/resolve');
670 const basePath = path.resolve(curPath, request);
678 filename = path.resolve(basePath);
688 // files to resolve; that said, in some use cases following symlinks
691 filename = path.resolve(basePath);
739 from = path.resolve(from);
746 // path.resolve will make sure from.length >=3 in Windows.
791 from = path.resolve(from);
1047 * @param {string} request The specifier to resolve
1101 const { packageImportsResolve } = require('internal/modules/esm/resolve');
1155 const { encodedSepRegEx } = require('internal/modules/esm/resolve');
1166 path.resolve(pkgPath, 'package.json'));
1393 const packageJsonPath = path.resolve(pkg.path, 'package.json');
1524 path.resolve(process.execPath, '..') :
1525 path.resolve(process.execPath, '..', '..');
1527 const paths = [path.resolve(prefixDir, 'lib', 'node')];
1530 ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
1531 ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_modules'));