UNPKG

enhanced-resolve

Version:

Offers a async require.resolve function. It's highly configurable.

86 lines (85 loc) 3.41 kB
{ "name": "enhanced-resolve", "version": "5.24.2", "description": "Offers a async require.resolve function. It's highly configurable.", "homepage": "https://github.com/webpack/enhanced-resolve#readme", "repository": { "type": "git", "url": "git+https://github.com/webpack/enhanced-resolve.git" }, "license": "MIT", "author": "Tobias Koppers @sokra", "main": "lib/index.js", "browser": { "process": "./lib/util/process-browser.js", "module": "./lib/util/module-browser.js", "path": "./lib/util/path-browser.js", "url": "./lib/util/url-browser.js", "graceful-fs": "./lib/util/graceful-fs-browser.js" }, "types": "types.d.ts", "files": [ "lib", "types.d.ts", "LICENSE" ], "scripts": { "prepare": "husky", "lint": "npm run lint:code && npm run lint:types && npm run lint:types-test && npm run lint:special && npm run fmt:check && npm run lint:spellcheck", "lint:code": "eslint --cache .", "lint:special": "node node_modules/tooling/inherit-types && node node_modules/tooling/generate-types", "lint:types": "tsc", "lint:types-test": "tsc -p tsconfig.types.test.json", "lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"", "fmt": "npm run fmt:base -- --log-level warn --write", "fmt:check": "npm run fmt:base -- --check", "fmt:base": "node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .", "fix": "npm run fix:code && npm run fix:special", "fix:code": "npm run lint:code -- --fix", "fix:special": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/generate-types --write", "type-report": "rimraf coverage && npm run cover:types && npm run cover:report && open-cli coverage/lcov-report/index.html", "pretest": "npm run lint", "test": "npm run test:only", "test:only": "node scripts/test.js", "test:watch": "node scripts/test.js --watch", "test:coverage": "node scripts/test.js --experimental-test-coverage --test-coverage-include=\"lib/**\" --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=coverage/lcov.info", "test:browser": "node --experimental-vm-modules test/smoke/browser-run.cjs", "version": "changeset version", "release": "changeset publish", "benchmark": "node --max-old-space-size=4096 --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./benchmark/run.mjs" }, "lint-staged": { "*.{js,cjs,mjs}": [ "eslint --cache --fix" ], "*": [ "prettier --cache --write --ignore-unknown", "cspell --cache --no-must-find-files" ] }, "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" }, "devDependencies": { "@changesets/cli": "^2.30.0", "@changesets/get-github-info": "^0.8.0", "@codspeed/core": "^5.2.0", "@types/graceful-fs": "^4.1.6", "@types/node": "^24.10.4", "cspell": "^10.0.0", "eslint": "^9.39.2", "eslint-config-webpack": "^4.9.5", "husky": "^9.1.7", "lint-staged": "^17.0.4", "memfs": "^4.56.11", "prettier": "^3.7.4", "tinybench": "^6.0.0", "tooling": "webpack/tooling#v1.26.4", "typescript": "^6.0.2", "webpack": "^5.107.2" }, "engines": { "node": ">=10.13.0" } }