1 | {
|
2 | "name": "awilix",
|
3 | "version": "5.0.1",
|
4 | "description": "Extremely powerful dependency injection container.",
|
5 | "main": "lib/awilix.js",
|
6 | "module": "lib/awilix.module.js",
|
7 | "jsnext:main": "lib/awilix.module.js",
|
8 | "browser": "lib/awilix.browser.js",
|
9 | "umd:main": "lib/awilix.umd.js",
|
10 | "react-native": "lib/awilix.browser.js",
|
11 | "typings": "lib/awilix.d.ts",
|
12 | "engines": {
|
13 | "node": ">=12.0.0"
|
14 | },
|
15 | "scripts": {
|
16 | "build": "rimraf lib && tsc -p tsconfig.build.json && rollup -c",
|
17 | "check": "tsc -p tsconfig.json --noEmit --pretty",
|
18 | "test": "npm run check && jest",
|
19 | "lint": "npm run check && tslint --project tsconfig.json --fix \"{src,examples}/**/*.ts\" && prettier --write \"{src,examples}/**/*.{ts,js}\"",
|
20 | "cover": "npm run test -- --coverage",
|
21 | "coveralls": "npm run cover && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
|
22 | "publish:pre": "npm run lint && npm run build && npm run cover",
|
23 | "publish:post": "npm publish && git push --follow-tags",
|
24 | "release:prerelease": "npm run publish:pre && npm version prerelease && npm run publish:post",
|
25 | "release:patch": "npm run publish:pre && npm version patch && npm run publish:post",
|
26 | "release:minor": "npm run publish:pre && npm version minor && npm run publish:post",
|
27 | "release:major": "npm run publish:pre && npm version major && npm run publish:post",
|
28 | "prepare": "husky install"
|
29 | },
|
30 | "files": [
|
31 | "lib",
|
32 | "LICENSE.md",
|
33 | "README.md"
|
34 | ],
|
35 | "repository": {
|
36 | "type": "git",
|
37 | "url": "git+https://github.com/jeffijoe/awilix.git"
|
38 | },
|
39 | "keywords": [
|
40 | "dependency-injection",
|
41 | "di",
|
42 | "container",
|
43 | "soc",
|
44 | "service-locator"
|
45 | ],
|
46 | "author": "Jeff Hansen <jeff@jeffijoe.com>",
|
47 | "license": "MIT",
|
48 | "bugs": {
|
49 | "url": "https://github.com/jeffijoe/awilix/issues"
|
50 | },
|
51 | "homepage": "https://github.com/jeffijoe/awilix#readme",
|
52 | "devDependencies": {
|
53 | "@babel/core": "^7.15.0",
|
54 | "@babel/plugin-transform-runtime": "^7.15.0",
|
55 | "@babel/preset-env": "^7.15.0",
|
56 | "@babel/runtime": "^7.15.3",
|
57 | "@types/glob": "^7.1.4",
|
58 | "@types/jest": "^27.0.1",
|
59 | "@types/node": "^16.6.1",
|
60 | "@types/prettier": "^2.3.2",
|
61 | "babel-jest": "^27.0.6",
|
62 | "coveralls": "^3.1.1",
|
63 | "husky": "^7.0.0",
|
64 | "istanbul": "^0.4.5",
|
65 | "jest": "^27.0.6",
|
66 | "lint-staged": "^11.1.2",
|
67 | "prettier": "^2.3.2",
|
68 | "rimraf": "^3.0.2",
|
69 | "rollup": "^2.56.2",
|
70 | "rollup-plugin-commonjs": "^10.1.0",
|
71 | "rollup-plugin-copy": "^3.4.0",
|
72 | "rollup-plugin-node-resolve": "^5.2.0",
|
73 | "rollup-plugin-replace": "^2.2.0",
|
74 | "rollup-plugin-typescript2": "^0.30.0",
|
75 | "smid": "^0.1.1",
|
76 | "ts-jest": "^27.0.4",
|
77 | "tslib": "^2.3.1",
|
78 | "tslint": "^6.1.3",
|
79 | "tslint-config-prettier": "^1.18.0",
|
80 | "tslint-config-standard": "^9.0.0",
|
81 | "typescript": "^4.3.5"
|
82 | },
|
83 | "dependencies": {
|
84 | "camel-case": "^4.1.2",
|
85 | "glob": "^7.1.7"
|
86 | },
|
87 | "lint-staged": {
|
88 | "*.ts": [
|
89 | "tslint --project tsconfig.json --fix",
|
90 | "prettier --write"
|
91 | ]
|
92 | },
|
93 | "prettier": {
|
94 | "semi": false,
|
95 | "singleQuote": true
|
96 | },
|
97 | "babel": {
|
98 | "presets": [
|
99 | [
|
100 | "@babel/preset-env",
|
101 | {
|
102 | "targets": {
|
103 | "browsers": "last 2 versions",
|
104 | "node": "8.0.0"
|
105 | }
|
106 | }
|
107 | ]
|
108 | ],
|
109 | "plugins": [
|
110 | "@babel/plugin-transform-runtime"
|
111 | ]
|
112 | },
|
113 | "jest": {
|
114 | "testRegex": "(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$",
|
115 | "testEnvironment": "node",
|
116 | "coveragePathIgnorePatterns": [
|
117 | "/node_modules/",
|
118 | "__tests__",
|
119 | "lib",
|
120 | "src/load-module-native.js"
|
121 | ],
|
122 | "moduleFileExtensions": [
|
123 | "ts",
|
124 | "tsx",
|
125 | "js"
|
126 | ],
|
127 | "transform": {
|
128 | "^.+\\.tsx?$": "ts-jest",
|
129 | "^.+\\.jsx?$": "babel-jest"
|
130 | }
|
131 | }
|
132 | }
|