require-it
Version:
This module extends the default Node.js require with capabilities to require nested modules, independent on where they are nested.
90 lines (89 loc) • 2.31 kB
JSON
{
"name": "require-it",
"version": "2.1.1",
"description": "This module extends the default Node.js require with capabilities to require nested modules, independent on where they are nested.",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"tsc:watch": "tsc -w",
"build": "npm run clean && npm run compile && npm run copyToDist && npm test -- --coverage && npm run typedoc",
"buildUpdate": "npm run compile && npm run copyToDist",
"copyToDist": "copyfiles -f *.txt *.md package.json dist",
"typedoc": "typedoc --exclude **/bin/**/*.ts --exclude **/cli.ts --out ./dist/docs/api ./src",
"clean": "rimraf ./dist",
"test": "cross-env JEST_JUNIT_OUTPUT=./dist/reports/junit.xml jest",
"tslint": "tslint -c tslint.json ./src/**/*.ts ./tests/**/*.ts",
"compile": "tsc && npm run tslint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/szikszail/require-it.git"
},
"keywords": [
"require",
"nested",
"module",
"node_modules"
],
"author": "Laszlo Szikszai <sziklaszlo@gmail.com>",
"license": "MIT",
"files": [
"*.js",
"*.d.ts",
"*.js.map"
],
"engines": {
"node": ">=12.0.0"
},
"bugs": {
"url": "https://github.com/szikszail/require-it/issues"
},
"homepage": "https://github.com/szikszail/require-it#readme",
"devDependencies": {
"@types/jest": "^26.0.20",
"@types/node": "^14.14.22",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"jest": "^26.6.3",
"jest-junit": "^13.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"tslint": "^6.1.3",
"typedoc": "^0.22.11",
"typescript": "4.4.4"
},
"jest": {
"transform": {
"^.+\\.ts?$": "ts-jest"
},
"testEnvironment": "node",
"testMatch": [
"**/tests/**/*.test.ts"
],
"testPathIgnorePatterns": [
"/node_modules/",
"dist"
],
"reporters": [
"default",
"jest-junit"
],
"coverageDirectory": "./dist/reports/coverage",
"moduleFileExtensions": [
"ts",
"js"
],
"collectCoverageFrom": [
"src/index.ts",
"src/utils.ts"
],
"coverageThreshold": {
"global": {
"branches": 85,
"functions": 85,
"lines": 85,
"statements": 85
}
}
}
}