@nexus-ioc/core 0.4.0 → 0.4.2
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/README.md +8 -8
- package/dist/core/graph/analyze-module.d.ts +1 -1
- package/dist/core/graph/providers/provider-factory.d.ts +1 -1
- package/dist/core/modules/module-container-factory.js.map +1 -1
- package/dist/core/modules/module-token-factory.d.ts +1 -1
- package/dist/core/modules/module-token-factory.js +10 -11
- package/dist/core/modules/module-token-factory.js.map +1 -1
- package/dist/interfaces/utils/hash-utils.interface.d.ts +1 -1
- package/dist/utils/hash-utils.browser.d.ts +2 -1
- package/dist/utils/hash-utils.browser.js +5 -3
- package/dist/utils/hash-utils.browser.js.map +1 -1
- package/dist/utils/hash-utils.server.d.ts +2 -1
- package/dist/utils/hash-utils.server.js +5 -3
- package/dist/utils/hash-utils.server.js.map +1 -1
- package/dist/utils/helpers.d.ts +0 -1
- package/dist/utils/helpers.js +0 -6
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-

|
|
2
|
+

|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
Nexus IoC is a powerful and flexible Inversion of Control (IoC) container for TypeScript applications. Inspired by Angular and NestJS, it leverages decorators to provide a simple and efficient way to manage dependencies and modules.
|
|
@@ -26,7 +26,7 @@ Nexus IoC is a powerful and flexible Inversion of Control (IoC) container for Ty
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install nexus-ioc reflect-metadata
|
|
29
|
+
npm install @nexus-ioc/core reflect-metadata
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
@@ -36,7 +36,7 @@ npm install nexus-ioc reflect-metadata
|
|
|
36
36
|
Create a module and a provider using decorators.
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import { NsModule, Injectable, Inject } from 'nexus-ioc';
|
|
39
|
+
import { NsModule, Injectable, Inject } from '@nexus-ioc/core';
|
|
40
40
|
|
|
41
41
|
@Injectable()
|
|
42
42
|
class DependencyService {
|
|
@@ -67,7 +67,7 @@ export class AppModule {}
|
|
|
67
67
|
Create and bootstrap your application.
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
|
-
import { NexusApplicationsBrowser } from 'nexus-ioc/dist/server';
|
|
70
|
+
import { NexusApplicationsBrowser } from '@nexus-ioc/core/dist/server';
|
|
71
71
|
import { AppModule, AppService } from './app.module';
|
|
72
72
|
|
|
73
73
|
async function bootstrap() {
|
|
@@ -89,14 +89,14 @@ bootstrap();
|
|
|
89
89
|
### Installation
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
npm install nexus-ioc
|
|
92
|
+
npm install @nexus-ioc/testing
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
### Usage
|
|
96
96
|
|
|
97
97
|
```typescript
|
|
98
|
-
import { Injectable } from 'nexus-ioc';
|
|
99
|
-
import { Test } from 'nexus-ioc
|
|
98
|
+
import { Injectable } from '@nexus-ioc/core';
|
|
99
|
+
import { Test } from '@nexus-ioc/testing';
|
|
100
100
|
|
|
101
101
|
describe('AppModule', () => {
|
|
102
102
|
it('should create instance', async () => {
|
|
@@ -32,5 +32,5 @@ export declare class AnalyzeModule {
|
|
|
32
32
|
get providers(): import("../../interfaces").Provider[];
|
|
33
33
|
get isGlobal(): boolean;
|
|
34
34
|
get imports(): Promise<ModuleContainerInterface[]>;
|
|
35
|
-
get exports(): (import("../../interfaces").
|
|
35
|
+
get exports(): (import("../../interfaces").InjectionToken | import("../../interfaces").Module)[];
|
|
36
36
|
}
|
|
@@ -3,4 +3,4 @@ import { AnalyzeClassProvider } from "./analyze-class-provider";
|
|
|
3
3
|
import { AnalyzeFactoryProvider } from "./analyze-factory-provider";
|
|
4
4
|
import { AnalyzeFunctionProvider } from "./analyze-function-provider";
|
|
5
5
|
import { AnalyzeValueProvider } from "./analyze-value-provider";
|
|
6
|
-
export declare function ProviderFactory(provider: Provider, module: ModuleContainerInterface):
|
|
6
|
+
export declare function ProviderFactory(provider: Provider, module: ModuleContainerInterface): AnalyzeFactoryProvider | AnalyzeClassProvider | AnalyzeFunctionProvider | AnalyzeValueProvider | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-container-factory.js","sourceRoot":"","sources":["../../../src/core/modules/module-container-factory.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"module-container-factory.js","sourceRoot":"","sources":["../../../src/core/modules/module-container-factory.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,iDAA0D;AAS1D,yDAAqD;AAErD,MAAa,sBAAsB;IAClC,YACkB,kBAA+C;QAA/C,uBAAkB,GAAlB,kBAAkB,CAA6B;IAC9D,CAAC;IAEG,KAAK,CAAC,MAAM,CAClB,MAA8B,EAC9B,SAAiC;QAEjC,MAAM,eAAe,GAAG,IAAI,kCAAe,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAE/D,eAAe,CAAC,KAAK,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAE1D,OAAO,CAAC,cAAc,CACrB,mCAAsB,EACtB,eAAe,CAAC,KAAK,EACrB,MAAM,CACN,CAAC;QAEF,OAAO,eAAe,CAAC;IACxB,CAAC;IAEM,cAAc,CAAC,MAA8B;QACnD,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/C,CAAC;IAEM,KAAK,CAAC,yBAAyB,CACrC,MAAgC;QAEhC,OAAO,MAAM,MAAM,CAAC,OAAO,CAAC;IAC7B,CAAC;CACD;AA/BD,wDA+BC"}
|
|
@@ -6,7 +6,7 @@ export declare class ModuleTokenFactory implements ModuleTokenFactoryInterface {
|
|
|
6
6
|
private readonly moduleIdsCache;
|
|
7
7
|
constructor(hashUtils: HashUtilInterface);
|
|
8
8
|
create(metatype: Module | DynamicModule): Promise<string>;
|
|
9
|
-
private getModuleId;
|
|
10
9
|
private getStaticModuleToken;
|
|
10
|
+
private getMetatypeId;
|
|
11
11
|
private getModuleName;
|
|
12
12
|
}
|
|
@@ -14,20 +14,10 @@ class ModuleTokenFactory {
|
|
|
14
14
|
if (moduleToken) {
|
|
15
15
|
return moduleToken;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
const token = await this.getStaticModuleToken(moduleId, this.getModuleName(metatype));
|
|
17
|
+
const token = await this.getStaticModuleToken(this.getMetatypeId(metatype), this.getModuleName(metatype));
|
|
19
18
|
this.moduleTokens.set(metatype, token);
|
|
20
19
|
return token;
|
|
21
20
|
}
|
|
22
|
-
getModuleId(metatype) {
|
|
23
|
-
let moduleId = this.moduleIdsCache.get(metatype);
|
|
24
|
-
if (moduleId) {
|
|
25
|
-
return moduleId;
|
|
26
|
-
}
|
|
27
|
-
moduleId = this.hashUtils.randomStringGenerator();
|
|
28
|
-
this.moduleIdsCache.set(metatype, moduleId);
|
|
29
|
-
return moduleId;
|
|
30
|
-
}
|
|
31
21
|
async getStaticModuleToken(moduleId, moduleName) {
|
|
32
22
|
const key = `${moduleId}_${moduleName}`;
|
|
33
23
|
if (this.moduleTokenCache.has(key)) {
|
|
@@ -37,6 +27,15 @@ class ModuleTokenFactory {
|
|
|
37
27
|
this.moduleTokenCache.set(key, hash);
|
|
38
28
|
return hash;
|
|
39
29
|
}
|
|
30
|
+
getMetatypeId(metatype) {
|
|
31
|
+
let metatypeId = this.moduleIdsCache.get(metatype);
|
|
32
|
+
if (metatypeId) {
|
|
33
|
+
return metatypeId;
|
|
34
|
+
}
|
|
35
|
+
metatypeId = `${this.hashUtils.incrementString()}_${metatype.toString()}`;
|
|
36
|
+
this.moduleIdsCache.set(metatype, metatypeId);
|
|
37
|
+
return metatypeId;
|
|
38
|
+
}
|
|
40
39
|
getModuleName(metatype) {
|
|
41
40
|
if ((0, helpers_1.isDynamicModule)(metatype)) {
|
|
42
41
|
return metatype.module.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-token-factory.js","sourceRoot":"","sources":["../../../src/core/modules/module-token-factory.ts"],"names":[],"mappings":";;;AAMA,iDAAsD;AAEtD,MAAa,kBAAkB;IAQ9B,YAA6B,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;QAPxC,qBAAgB,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC7C,iBAAY,GAAG,IAAI,OAAO,EAAkC,CAAC;QAC7D,mBAAc,GAAG,IAAI,OAAO,EAG1C,CAAC;IAEwD,CAAC;IAEtD,KAAK,CAAC,MAAM,CAAC,QAAgC;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEpD,IAAI,WAAW,EAAE,CAAC;YACjB,OAAO,WAAW,CAAC;QACpB,CAAC;QAED,MAAM,
|
|
1
|
+
{"version":3,"file":"module-token-factory.js","sourceRoot":"","sources":["../../../src/core/modules/module-token-factory.ts"],"names":[],"mappings":";;;AAMA,iDAAsD;AAEtD,MAAa,kBAAkB;IAQ9B,YAA6B,SAA4B;QAA5B,cAAS,GAAT,SAAS,CAAmB;QAPxC,qBAAgB,GAAG,IAAI,GAAG,EAAkB,CAAC;QAC7C,iBAAY,GAAG,IAAI,OAAO,EAAkC,CAAC;QAC7D,mBAAc,GAAG,IAAI,OAAO,EAG1C,CAAC;IAEwD,CAAC;IAEtD,KAAK,CAAC,MAAM,CAAC,QAAgC;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAEpD,IAAI,WAAW,EAAE,CAAC;YACjB,OAAO,WAAW,CAAC;QACpB,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAC5C,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,EAC5B,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,C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UtilInterface } from "../interfaces";
|
|
2
2
|
export declare class HashUtilBrowser implements HashUtilInterface {
|
|
3
|
+
private increment;
|
|
3
4
|
hashString(value: string): Promise<string>;
|
|
4
5
|
hashObject(value: object): Promise<string>;
|
|
5
|
-
|
|
6
|
+
incrementString(): string;
|
|
6
7
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HashUtilBrowser = void 0;
|
|
4
|
-
const random_string_generator_util_1 = require("./random-string-generator.util");
|
|
5
4
|
class HashUtilBrowser {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.increment = 0;
|
|
7
|
+
}
|
|
6
8
|
async hashString(value) {
|
|
7
9
|
const encoder = new TextEncoder();
|
|
8
10
|
const data = encoder.encode(value);
|
|
@@ -14,8 +16,8 @@ class HashUtilBrowser {
|
|
|
14
16
|
const json = JSON.stringify(value);
|
|
15
17
|
return this.hashString(json);
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
return
|
|
19
|
+
incrementString() {
|
|
20
|
+
return `${this.increment++}`;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
exports.HashUtilBrowser = HashUtilBrowser;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash-utils.browser.js","sourceRoot":"","sources":["../../src/utils/hash-utils.browser.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"hash-utils.browser.js","sourceRoot":"","sources":["../../src/utils/hash-utils.browser.ts"],"names":[],"mappings":";;;AAEA,MAAa,eAAe;IAA5B;QACS,cAAS,GAAG,CAAC,CAAC;IAmBvB,CAAC;IAjBA,KAAK,CAAC,UAAU,CAAC,KAAa;QAC7B,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACnC,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAC/D,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,KAAa;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAEnC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,eAAe;QACd,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;IAC9B,CAAC;CACD;AApBD,0CAoBC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HashUtilInterface } from "../interfaces";
|
|
2
2
|
export declare class HashUtilsServer implements HashUtilInterface {
|
|
3
|
+
private increment;
|
|
3
4
|
hashString(value: string): Promise<string>;
|
|
4
5
|
hashObject(value: object): Promise<string>;
|
|
5
|
-
|
|
6
|
+
incrementString(): string;
|
|
6
7
|
}
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HashUtilsServer = void 0;
|
|
4
4
|
const node_crypto_1 = require("node:crypto");
|
|
5
|
-
const random_string_generator_util_1 = require("./random-string-generator.util");
|
|
6
5
|
class HashUtilsServer {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.increment = 0;
|
|
8
|
+
}
|
|
7
9
|
async hashString(value) {
|
|
8
10
|
return (0, node_crypto_1.createHash)("sha256").update(value).digest("hex");
|
|
9
11
|
}
|
|
@@ -11,8 +13,8 @@ class HashUtilsServer {
|
|
|
11
13
|
const json = JSON.stringify(value);
|
|
12
14
|
return this.hashString(json);
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
return
|
|
16
|
+
incrementString() {
|
|
17
|
+
return `${this.increment++}`;
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
exports.HashUtilsServer = HashUtilsServer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hash-utils.server.js","sourceRoot":"","sources":["../../src/utils/hash-utils.server.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;
|
|
1
|
+
{"version":3,"file":"hash-utils.server.js","sourceRoot":"","sources":["../../src/utils/hash-utils.server.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAGzC,MAAa,eAAe;IAA5B;QACS,cAAS,GAAG,CAAC,CAAC;IAcvB,CAAC;IAZA,KAAK,CAAC,UAAU,CAAC,KAAa;QAC7B,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,UAAU,CAAC,KAAa;QAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IAED,eAAe;QACd,OAAO,GAAG,IAAI,CAAC,SAAS,EAAE,EAAE,CAAC;IAC9B,CAAC;CACD;AAfD,0CAeC"}
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -13,4 +13,3 @@ export declare function isDynamicModule(module: Module | DynamicModule): module
|
|
|
13
13
|
export declare function isGlobalModule(target: Module): boolean;
|
|
14
14
|
export declare function getModuleLabel(module: Module | DynamicModule): string;
|
|
15
15
|
export declare function getProviderScope(target: Provider): Scope;
|
|
16
|
-
export declare function getProviderName(target: Provider): string;
|
package/dist/utils/helpers.js
CHANGED
|
@@ -13,7 +13,6 @@ exports.isDynamicModule = isDynamicModule;
|
|
|
13
13
|
exports.isGlobalModule = isGlobalModule;
|
|
14
14
|
exports.getModuleLabel = getModuleLabel;
|
|
15
15
|
exports.getProviderScope = getProviderScope;
|
|
16
|
-
exports.getProviderName = getProviderName;
|
|
17
16
|
require("reflect-metadata");
|
|
18
17
|
const interfaces_1 = require("../interfaces");
|
|
19
18
|
function isFunctionProvider(target) {
|
|
@@ -75,9 +74,4 @@ function getProviderScope(target) {
|
|
|
75
74
|
}
|
|
76
75
|
return (Reflect.getMetadata(interfaces_1.INJECTABLE_OPTIONS, target)?.scope || interfaces_1.Scope.Singleton);
|
|
77
76
|
}
|
|
78
|
-
function getProviderName(target) {
|
|
79
|
-
const token = getProviderToken(target);
|
|
80
|
-
// @ts-ignore
|
|
81
|
-
return token.name || token;
|
|
82
|
-
}
|
|
83
77
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":";;AAgBA,gDAEC;AAED,4BAEC;AAED,0CAEC;AAED,0CAEC;AAED,0CAEC;AAED,8CAEC;AAED,4CAMC;AAED,gCAEC;AAED,gDAMC;AAED,0CAIC;AAED,wCAEC;AAED,wCAMC;AAED,4CAoBC;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":";;AAgBA,gDAEC;AAED,4BAEC;AAED,0CAEC;AAED,0CAEC;AAED,0CAEC;AAED,8CAEC;AAED,4CAMC;AAED,gCAEC;AAED,gDAMC;AAED,0CAIC;AAED,wCAEC;AAED,wCAMC;AAED,4CAoBC;AAlGD,4BAA0B;AAC1B,8CAauB;AAEvB,SAAgB,kBAAkB,CAAC,MAAgB;IAClD,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC;AACrC,CAAC;AAED,SAAgB,QAAQ,CAAC,MAA+B;IACvD,OAAO,OA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AC,IAAI,CAAC;AACpB,CAAC;AAED,SAAgB,gBAAgB,CAAC,MAAgB;IAChD,IAAI,iBAAiB,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC,KAAK,IAAI,kBAAK,CAAC,SAAS,CAAC;IACxC,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,CACN,OAAO,CAAC,WAAW,CAAC,+BAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,KAAK;YAC/D,MAAM,CAAC,KAAK;YACZ,kBAAK,CAAC,SAAS,CACf,CAAC;IACH,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,kBAAK,CAAC,SAAS,CAAC;IACxB,CAAC;IAED,OAAO,CACN,OAAO,CAAC,WAAW,CAAC,+BAAkB,EAAE,MAAM,CAAC,EAAE,KAAK,IAAI,kBAAK,CAAC,SAAS,CACzE,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-ioc/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "A powerful IoC container for TypeScript applications",
|
|
5
5
|
"author": "Isqanderm <aleksandr.melnik.personal@gmail.com> (https://www.linkedin.com/in/isqander-melnik)",
|
|
6
6
|
"homepage": "https://github.com/Isqanderm/ioc#readme",
|
|
@@ -45,8 +45,7 @@
|
|
|
45
45
|
"@types/node": "^22.5.4"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"tslib": "^2.6.3"
|
|
49
|
-
"uid": "^2.0.2"
|
|
48
|
+
"tslib": "^2.6.3"
|
|
50
49
|
},
|
|
51
50
|
"scripts": {
|
|
52
51
|
"build": "tsc",
|