node-dependency-injection 3.0.0-alpha.8 → 3.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/Autowire.js +3 -1
- package/package.json +2 -1
- package/tsconfig.json +2 -1
package/dist/lib/Autowire.js
CHANGED
|
@@ -19,6 +19,8 @@ var _path = _interopRequireDefault(require("path"));
|
|
|
19
19
|
|
|
20
20
|
var _fs = _interopRequireDefault(require("fs"));
|
|
21
21
|
|
|
22
|
+
var _json = _interopRequireDefault(require("json5"));
|
|
23
|
+
|
|
22
24
|
var _typescriptEstree = require("@typescript-eslint/typescript-estree");
|
|
23
25
|
|
|
24
26
|
var _Definition = _interopRequireDefault(require("./Definition"));
|
|
@@ -41,7 +43,7 @@ var Autowire = /*#__PURE__*/function () {
|
|
|
41
43
|
|
|
42
44
|
try {
|
|
43
45
|
this._tsConfigFullPath = tsConfigFullPath || _path["default"].join(process.cwd(), 'tsconfig.json');
|
|
44
|
-
this._tsConfigPaths =
|
|
46
|
+
this._tsConfigPaths = _json["default"].parse(_fs["default"].readFileSync(this._tsConfigFullPath, 'utf-8')).compilerOptions.paths;
|
|
45
47
|
} catch (e) {
|
|
46
48
|
this._tsConfigPaths = null;
|
|
47
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-dependency-injection",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.9",
|
|
4
4
|
"description": "The NodeDependencyInjection component allows you to standardize and centralize the way objects are constructed in your application.",
|
|
5
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"directories": {
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"commander": "^8.3.0",
|
|
58
58
|
"console.table": "^0.10.0",
|
|
59
59
|
"js-yaml": "^4.0.0",
|
|
60
|
+
"json5": "^2.2.1",
|
|
60
61
|
"validate-npm-package-name": "^3.0.0"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
package/tsconfig.json
CHANGED