UNPKG

resolve

Version:

resolve like require.resolve() on behalf of files asynchronously and synchronously

79 lines (78 loc) 2.12 kB
{ "name": "resolve", "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", "version": "1.22.12", "repository": { "type": "git", "url": "ssh://github.com/browserify/resolve.git" }, "bin": { "resolve": "./bin/resolve" }, "main": "index.js", "keywords": [ "resolve", "require", "node", "module" ], "scripts": { "prepack": "npmignore --auto --commentLines=autogenerated && cp node_modules/is-core-module/core.json ./lib/ ||:", "prepublishOnly": "safe-publish-latest", "prepublish": "not-in-publish || npm run prepublishOnly", "prelint": "eclint check $(git ls-files | grep -Ev test\\/list-exports$ | xargs find 2> /dev/null | grep -vE 'node_modules|\\.git')", "lint": "eslint .", "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async", "tests-only": "tape test/*.js", "pretest": "npm run lint", "test": "npm run --silent tests-only", "posttest": "npm run test:multirepo && npx npm@'>= 10.2' audit --production", "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" }, "devDependencies": { "@ljharb/eslint-config": "^22.2.2", "array.prototype.map": "^1.0.8", "copy-dir": "^1.3.0", "eclint": "^2.8.1", "eslint": "^9.39.1", "in-publish": "^2.0.1", "jiti": "^0.0.0", "mkdirp": "^0.5.6", "mv": "^2.1.1", "npmignore": "^0.3.5", "object-keys": "^1.1.1", "rimraf": "^2.7.1", "safe-publish-latest": "^2.0.0", "semver": "^6.3.1", "tap": "^0.4.13", "tape": "^5.9.0", "tmp": "^0.0.31" }, "license": "MIT", "author": { "name": "James Halliday", "email": "mail@substack.net", "url": "http://substack.net" }, "funding": { "url": "https://github.com/sponsors/ljharb" }, "dependencies": { "es-errors": "^1.3.0", "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "publishConfig": { "ignore": [ ".github/workflows", "appveyor.yml", "CONTRIBUTING.md", "test/resolver/malformed_package_json", "test/list-exports" ] }, "engines": { "node": ">= 0.4" } }