Increased coverage thresholds to 90% across all metrics. Added exclusions for `.spec.ts` and `.test.ts` files to the coverage configuration. Introduced new test files for `Decorators` and `Functions`, incorporating detailed unit tests for decorators and DI functionalities. Removed outdated and redundant test files, consolidating their functionality into the updated tests. Also added new npm script for jest watch mode. Marked helper and main index files to be ignored by the coverage.
61 lines
2.1 KiB
JSON
61 lines
2.1 KiB
JSON
{
|
|
"name": "ts-injex",
|
|
"version": "0.0.11",
|
|
"description": "Simple boilerplate code free dependency injection system for TypeScript.",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "npm run build:tsc",
|
|
"build:tsc": "tsc",
|
|
"lint": "eslint --ext .ts .",
|
|
"lint:fix": "eslint --fix --ext .ts .",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch --onlyChanged",
|
|
"test:file": "jest --watch --onlyChanged --coverage=true --verbose",
|
|
"test:verbose": "jest --verbose",
|
|
"test:coverage": "jest --config jest.config.coverage.cjs --coverage",
|
|
"docs": "typedoc",
|
|
"docs:generate": "npm run docs && npm run docs:generate:coverage && npm run docs:fix:coverage && npm run docs:generate:badge && npm run docs:fix:escape",
|
|
"docs:generate:coverage": "npm run test:coverage || exit 0",
|
|
"docs:fix:coverage": "node scripts/fix-coverage-paths.cjs",
|
|
"docs:generate:badge": "node scripts/generate-badge.cjs",
|
|
"docs:fix:escape": "node scripts/replace-doc-escaping.cjs",
|
|
"version:show": "node -e \"console.log(require('./package.json').version)\""
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/PxaMMaxP/TSinjex.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "Max P. (@Github: PxaMMaxP)",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"typescript": "^5.5.4",
|
|
"@types/jest": "^29.5.12",
|
|
"@types/node": "^20.14.11",
|
|
"@stylistic/eslint-plugin": "^2.6.2",
|
|
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
|
"@typescript-eslint/parser": "^8.1.0",
|
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
"eslint-plugin-import": "^2.29.1",
|
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
"eslint-plugin-override": "https://github.com/PxaMMaxP/eslint-plugin-override",
|
|
"jest": "^29.7.0",
|
|
"ts-jest": "^29.2.3",
|
|
"typedoc": "^0.26.5",
|
|
"istanbul-badges-readme": "^1.9.0",
|
|
"axios": "^1.7.2"
|
|
},
|
|
"dependencies": {
|
|
"eslint-plugin-prettier": "^5.2.1",
|
|
"jest-environment-jsdom": "^29.7.0"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"src/**/*",
|
|
"README.md",
|
|
"LICENSE",
|
|
"package.json"
|
|
]
|
|
} |