-
Notifications
You must be signed in to change notification settings - Fork 135
/
package.json
166 lines (166 loc) · 4.27 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "awilix",
"version": "12.0.3",
"description": "Extremely powerful dependency injection container.",
"main": "lib/awilix.js",
"module": "lib/awilix.module.mjs",
"jsnext:main": "lib/awilix.module.mjs",
"browser": "lib/awilix.browser.mjs",
"umd:main": "lib/awilix.umd.js",
"react-native": "lib/awilix.browser.mjs",
"typings": "lib/awilix.d.ts",
"engines": {
"node": ">=16.3.0"
},
"exports": {
".": {
"import": "./lib/awilix.module.mjs",
"types": "./lib/awilix.d.ts",
"workerd": "./lib/awilix.browser.mjs",
"browser": {
"import": "./lib/awilix.browser.mjs",
"default": "./lib/awilix.umd.js"
},
"default": "./lib/awilix.js"
},
"./browser": {
"import": "./lib/awilix.browser.mjs",
"types": "./lib/awilix.d.ts",
"workerd": "./lib/awilix.browser.mjs",
"browser": "./lib/awilix.browser.mjs",
"default": "./lib/awilix.umd.js"
},
"./lib/*.js": {
"types": "./lib/*.d.ts",
"default": "./lib/*.js"
},
"./lib/*": {
"default": "./lib/*.js"
}
},
"scripts": {
"build": "rimraf lib && tsc -p tsconfig.build.json && rollup -c",
"check": "tsc -p tsconfig.json --noEmit --pretty",
"test": "npm run check && jest",
"lint": "npm run check && eslint --fix \"{src,examples}/**/*.ts\" && prettier --write \"{src,examples}/**/*.{ts,js}\"",
"cover": "npm run test -- --coverage",
"publish:pre": "npm run lint && npm run build && npm run cover",
"publish:post": "npm publish && git push --follow-tags",
"release:prerelease": "npm run publish:pre && npm version prerelease --preid alpha && npm run publish:post",
"release:patch": "npm run publish:pre && npm version patch && npm run publish:post",
"release:minor": "npm run publish:pre && npm version minor && npm run publish:post",
"release:major": "npm run publish:pre && npm version major && npm run publish:post"
},
"files": [
"lib",
"LICENSE.md",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/jeffijoe/awilix.git"
},
"keywords": [
"dependency-injection",
"di",
"container",
"soc",
"service-locator"
],
"author": "Jeff Hansen <jeff@jeffijoe.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/jeffijoe/awilix/issues"
},
"homepage": "https://github.com/jeffijoe/awilix#readme",
"devDependencies": {
"@babel/core": "^7.25.9",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.25.9",
"@babel/runtime": "^7.25.9",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@types/jest": "^29.5.14",
"@types/node": "^22.7.9",
"babel-jest": "^29.7.0",
"eslint": "^9.13.0",
"husky": "^9.1.6",
"jest": "^29.7.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.24.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-typescript2": "^0.36.0",
"smid": "^0.1.1",
"ts-jest": "^29.2.5",
"tslib": "^2.8.0",
"typescript": "^5.6.3",
"typescript-eslint": "^8.11.0"
},
"dependencies": {
"camel-case": "^4.1.2",
"fast-glob": "^3.3.2"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"prettier": {
"semi": false,
"singleQuote": true
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "14.0.0"
}
}
]
],
"plugins": [
"@babel/plugin-transform-runtime"
]
},
"typesync": {
"ignorePackages": [
"@babel/preset-env",
"@babel/core",
"@babel/plugin-transform-runtime",
"prettier",
"rimraf",
"istanbul"
]
},
"jest": {
"testRegex": "(/__tests__/.*\\.(test|spec))\\.(ts|tsx|js)$",
"testEnvironment": "node",
"coveragePathIgnorePatterns": [
"/node_modules/",
"__tests__",
"lib",
"src/load-module-native.js",
"src/awilix.ts"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"transform": {
"^.+\\.tsx?$": [
"ts-jest",
{
"useESM": true
}
],
"^.+\\.m?jsx?$": "babel-jest"
}
}
}