UNPKG

typed-inject

Version:

Type safe dependency injection framework for TypeScript

77 lines (76 loc) 2.77 kB
{ "name": "typed-inject", "version": "5.0.0", "description": "Type safe dependency injection framework for TypeScript", "main": "dist/src/index.js", "type": "module", "scripts": { "all": "npm run clean && npm run build && npm run lint && npm run test && npm run stryker", "start": "tsc -b -w", "clean": "rimraf dist", "lint": "eslint", "build": "tsc -b", "test": "c8 --exclude-after-remap=false \"--exclude=dist/test/**/*.js\" --check-coverage --reporter=html --report-dir=reports/coverage --lines 100 --functions 100 --branches 100 npm run test:all", "test:all": "npm run test:unit && npm run test:integration", "test:unit": "mocha -r source-map-support/register \"dist/test/helpers/**/*.js\" \"dist/test/unit/**/*.js\"", "test:integration": "mocha -r source-map-support/register --timeout 20000 \"dist/test/helpers/**/*.js\" \"dist/test/integration/**/*.js\"", "stryker": "stryker run", "preversion": "npm run all", "version": "npm run generate-changelog", "postversion": "npm publish && git push && git push --tags", "generate-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", "release:patch": "npm version patch -m \"chore(release): %s\"", "release:minor": "npm version minor -m \"chore(release): %s\"", "release:major": "npm version major -m \"chore(release): %s\"" }, "repository": { "type": "git", "url": "git+https://github.com/nicojs/typed-inject.git" }, "engines": { "node": ">=18" }, "keywords": [ "typescript", "dependency-injection", "IoC", "di", "inject", "type-safe" ], "publishConfig": { "access": "public" }, "author": "Nico Jansen <jansennico@gmail.com>", "license": "Apache-2.0", "bugs": { "url": "https://github.com/nicojs/typed-inject/issues" }, "homepage": "https://github.com/nicojs/typed-inject/#readme", "devDependencies": { "@eslint/js": "^9.16.0", "@stryker-mutator/core": "^8.7.1", "@stryker-mutator/mocha-runner": "^8.7.1", "@stryker-mutator/typescript-checker": "^8.7.1", "@types/chai": "^5.0.1", "@types/mocha": "^10.0.10", "@types/node": "^22.10.2", "@types/sinon": "^17.0.3", "@types/sinon-chai": "^4.0.0", "@typescript-eslint/eslint-plugin": "^8.18.0", "@typescript-eslint/parser": "^8.18.0", "c8": "^10.1.3", "chai": "^5.1.2", "conventional-changelog-cli": "^5.0.0", "eslint-plugin-chai-friendly": "^1.0.1", "eslint-plugin-prettier": "^5.2.1", "mocha": "^11.0.1", "prettier": "^3.4.2", "rimraf": "^6.0.1", "sinon": "^19.0.2", "sinon-chai": "^4.0.0", "source-map-support": "^0.5.21", "typescript": "~5.7.2", "typescript-eslint": "^8.18.0" } }