easywork-common-lib 1.0.425 → 1.0.427

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/.gitattributes CHANGED
@@ -1,2 +1,2 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
@@ -1,33 +1,33 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Node.js Package
5
-
6
- on:
7
- release:
8
- types: [created]
9
-
10
- jobs:
11
- build:
12
- runs-on: ubuntu-latest
13
- steps:
14
- - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v4
16
- with:
17
- node-version: 20
18
- - run: npm ci
19
- - run: npm test
20
-
21
- publish-npm:
22
- needs: build
23
- runs-on: ubuntu-latest
24
- steps:
25
- - uses: actions/checkout@v4
26
- - uses: actions/setup-node@v4
27
- with:
28
- node-version: 20
29
- registry-url: https://registry.npmjs.org/
30
- - run: npm ci
31
- - run: npm publish
32
- env:
33
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name: Node.js Package
5
+
6
+ on:
7
+ release:
8
+ types: [created]
9
+
10
+ jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: 20
18
+ - run: npm ci
19
+ - run: npm test
20
+
21
+ publish-npm:
22
+ needs: build
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: actions/setup-node@v4
27
+ with:
28
+ node-version: 20
29
+ registry-url: https://registry.npmjs.org/
30
+ - run: npm ci
31
+ - run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -1,13 +1,13 @@
1
- {
2
- "autoBarrel.language.defaultLanguage": "TypeScript",
3
- "autoBarrel.files.disableRecursiveBarrelling": false,
4
- "autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
5
- "autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
6
- "autoBarrel.files.keepExtensionOnExport": false,
7
- "autoBarrel.files.detectExportsInFiles": false,
8
- "autoBarrel.files.exportDefaultFilename": "filename",
9
- "autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
10
- "autoBarrel.formatting.useSingleQuotes": true,
11
- "autoBarrel.formatting.endOfLine": "lf",
12
- "autoBarrel.formatting.insertFinalNewline": true,
1
+ {
2
+ "autoBarrel.language.defaultLanguage": "TypeScript",
3
+ "autoBarrel.files.disableRecursiveBarrelling": false,
4
+ "autoBarrel.files.includeExtensionOnExport": ["ts", "tsx", "vue"],
5
+ "autoBarrel.files.ignoreFilePathPatternOnExport": ["**/*.spec.*", "**/*.test.*"],
6
+ "autoBarrel.files.keepExtensionOnExport": false,
7
+ "autoBarrel.files.detectExportsInFiles": false,
8
+ "autoBarrel.files.exportDefaultFilename": "filename",
9
+ "autoBarrel.formatting.excludeSemiColonAtEndOfLine": false,
10
+ "autoBarrel.formatting.useSingleQuotes": true,
11
+ "autoBarrel.formatting.endOfLine": "lf",
12
+ "autoBarrel.formatting.insertFinalNewline": true,
13
13
  }
@@ -14,7 +14,7 @@ export declare enum ReceiptStatus {
14
14
  VIGENTE = "vigente",
15
15
  ANULADO = "cancelado",
16
16
  VENCIDO = "vencido",
17
- APLICADO = "pagado"
17
+ PAGADO = "pagado"
18
18
  }
19
19
  export declare enum ReceiptMethodPayment {
20
20
  EFECTIVO = "efectivo",
@@ -20,7 +20,7 @@ var ReceiptStatus;
20
20
  ReceiptStatus["VIGENTE"] = "vigente";
21
21
  ReceiptStatus["ANULADO"] = "cancelado";
22
22
  ReceiptStatus["VENCIDO"] = "vencido";
23
- ReceiptStatus["APLICADO"] = "pagado";
23
+ ReceiptStatus["PAGADO"] = "pagado";
24
24
  })(ReceiptStatus || (exports.ReceiptStatus = ReceiptStatus = {}));
25
25
  var ReceiptMethodPayment;
26
26
  (function (ReceiptMethodPayment) {
@@ -1 +1 @@
1
- {"version":3,"file":"sales.enum.js","sourceRoot":"","sources":["../../../src/common/enums/sales.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,uCAAoB,CAAA;IACpB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACvB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;AAC5B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;AACvB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,2DAAmC,CAAA;IACnC,yDAAiC,CAAA;AACrC,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,mCAAY,CAAA;IACZ,mCAAY,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;AACrB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACrB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
1
+ {"version":3,"file":"sales.enum.js","sourceRoot":"","sources":["../../../src/common/enums/sales.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,uCAAoB,CAAA;IACpB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,sCAAmB,CAAA;AACvB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;AAC5B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AACrB,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC5B,6CAAqB,CAAA;IACrB,2DAAmC,CAAA;IACnC,yDAAiC,CAAA;AACrC,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;AACnB,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,mCAAY,CAAA;IACZ,mCAAY,CAAA;AAChB,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B;AAED,IAAY,kBAKX;AALD,WAAY,kBAAkB;IAC1B,yCAAmB,CAAA;IACnB,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;AACrB,CAAC,EALW,kBAAkB,kCAAlB,kBAAkB,QAK7B;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACrB,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB"}
@@ -79,7 +79,7 @@ __decorate([
79
79
  __metadata("design:type", Array)
80
80
  ], Oauth.prototype, "labelId", void 0);
81
81
  __decorate([
82
- (0, typeorm_1.Column)("text", { array: true, nullable: true }),
82
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
83
83
  __metadata("design:type", Object)
84
84
  ], Oauth.prototype, "labelIdRules", void 0);
85
85
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"oauth.entity.js","sourceRoot":"","sources":["../../../src/entities/thirdparty/oauth.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA2D;AAC3D,iDAAgD;AAIzC,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAEnC,OAAO,CAAS;IAGhB,aAAa,CAAS;IAGtB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,MAAM,CAAS;IAGf,aAAa,CAAS;IAGtB,WAAW,CAAS;IAGpB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,OAAO,CAAW;IAGlB,YAAY,CAAS;IAGrB,MAAM,CAAoB;CAC3B,CAAA;AA1CY,sBAAK;AAEhB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;sCACE;AAGhB;IADC,IAAA,gBAAM,GAAE;;4CACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;2CACY;AAGrB;IADC,IAAA,gBAAM,EAAC,KAAK,CAAC;;yCACK;AAGnB;IADC,IAAA,gBAAM,GAAE;;qCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,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AAK,EAAC,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;GACtB,KAAK,CA0CjB"}
@@ -1,80 +1,74 @@
1
- // drive/proto/drive.proto
2
- syntax = "proto3";
3
-
4
- package drive;
5
-
6
- message FolderObject {
7
- string name = 1; // Nombre de la carpeta
8
- string metadata = 2; // Se espera un objeto serializado en JSON
9
- }
10
-
11
- message OwnerEntity {
12
- string ownerId = 1;
13
- string entityType = 2;
14
- string relation = 3;
15
- }
16
-
17
- // Define los mensajes para las operaciones de carpetas
18
- message CreateFolderRequest {
19
- string name = 1;
20
- string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
21
- repeated OwnerEntity ownersData = 3;
22
- string metadata = 4; // Se espera un objeto serializado en JSON
23
- }
24
-
25
- // Create Bulk Folder
26
- message CreateFolderBulkRequest {
27
- repeated FolderObject folders = 1;
28
- string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
29
- repeated OwnerEntity ownersData = 3;
30
- }
31
-
32
- message FolderResponse {
33
- string id = 1;
34
- string name = 2;
35
- string parentId = 3; // Opcional, puede ser nulo si es una carpeta raíz
36
- string createdAt = 4;
37
- }
38
-
39
-
40
- message CreateFolderBulkResponse {
41
- bool success = 1;
42
- }
43
-
44
- message CreateFileRequest {
45
- string name = 1; // Nombre del archivo
46
- string folderId = 2; // UUID del folder, opcional
47
- int64 size = 3; // Tamaño del archivo, opcional
48
- string mimeType = 4; // Tipo MIME del archivo, opcional
49
- string s3Key = 5; // Clave S3, opcional
50
- bool isDefault = 6; // Si es el archivo por defecto, opcional
51
- repeated OwnerEntity ownersData = 7;
52
- bytes filecontent = 8; // Contenido del archivo en bytes
53
- string encoding = 9; // Codificación del archivo
54
- }
55
-
56
- message AttachFileRequest {
57
-
58
- }
59
-
60
- message CreateFilesRequest {
61
- repeated CreateFileRequest files = 1; // Archivos
62
- }
63
-
64
- message CreateFilesResponse {
65
- repeated string filesIds = 1;
66
- }
67
-
68
- message CreateFileResponse {
69
- string message = 1;
70
- bool success = 2;
71
- string url = 3; // URL del archivo almacenado
72
- }
73
-
74
- // Define el servicio que será implementado
75
- service DriveService {
76
- rpc CreateFolder(CreateFolderRequest) returns (FolderResponse);
77
- rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
78
- rpc CreateFiles(CreateFilesRequest) returns (CreateFilesResponse);
79
- rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
1
+ // drive/proto/drive.proto
2
+ syntax = "proto3";
3
+
4
+ package drive;
5
+
6
+ message OwnerEntity {
7
+ string ownerId = 1;
8
+ string entityType = 2;
9
+ string relation = 3;
10
+ }
11
+
12
+ // Define los mensajes para las operaciones de carpetas
13
+ message CreateFolderRequest {
14
+ string name = 1;
15
+ string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
16
+ repeated OwnerEntity ownersData = 3;
17
+ }
18
+
19
+ // Create Bulk Folder
20
+ message CreateFolderBulkRequest {
21
+ repeated string foldersName = 1;
22
+ string parentId = 2; // Opcional, puede ser nulo si es una carpeta raíz
23
+ repeated OwnerEntity ownersData = 3;
24
+ }
25
+
26
+ message FolderResponse {
27
+ string id = 1;
28
+ string name = 2;
29
+ string parentId = 3; // Opcional, puede ser nulo si es una carpeta raíz
30
+ string createdAt = 4;
31
+ }
32
+
33
+
34
+ message CreateFolderBulkResponse {
35
+ bool success = 1;
36
+ }
37
+
38
+ message CreateFileRequest {
39
+ string name = 1; // Nombre del archivo
40
+ string folderId = 2; // UUID del folder, opcional
41
+ int64 size = 3; // Tamaño del archivo, opcional
42
+ string mimeType = 4; // Tipo MIME del archivo, opcional
43
+ string s3Key = 5; // Clave S3, opcional
44
+ bool isDefault = 6; // Si es el archivo por defecto, opcional
45
+ repeated OwnerEntity ownersData = 7;
46
+ bytes filecontent = 8; // Contenido del archivo en bytes
47
+ string encoding = 9; // Codificación del archivo
48
+ }
49
+
50
+ message AttachFileRequest {
51
+
52
+ }
53
+
54
+ message CreateFilesRequest {
55
+ repeated CreateFileRequest files = 1; // Archivos
56
+ }
57
+
58
+ message CreateFilesResponse {
59
+ repeated string filesIds = 1;
60
+ }
61
+
62
+ message CreateFileResponse {
63
+ string message = 1;
64
+ bool success = 2;
65
+ string url = 3; // URL del archivo almacenado
66
+ }
67
+
68
+ // Define el servicio que será implementado
69
+ service DriveService {
70
+ rpc CreateFolder(CreateFolderRequest) returns (FolderResponse);
71
+ rpc CreateFile(CreateFileRequest) returns (CreateFileResponse);
72
+ rpc CreateFiles(CreateFilesRequest) returns (CreateFilesResponse);
73
+ rpc CreateFolders(CreateFolderBulkRequest) returns (CreateFolderBulkResponse);
80
74
  }
package/justfile CHANGED
@@ -1,8 +1,8 @@
1
-
2
- # prints all available commands
3
- default:
4
- just --list
5
-
6
- # Upgrade and publish
7
- bump:
8
- pnpm bump
1
+
2
+ # prints all available commands
3
+ default:
4
+ just --list
5
+
6
+ # Upgrade and publish
7
+ bump:
8
+ pnpm bump
package/package.json CHANGED
@@ -1,43 +1,43 @@
1
- {
2
- "name": "easywork-common-lib",
3
- "version": "1.0.425",
4
- "description": "Librería común de Easywork",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "build": "tsc && cpx-fixed src/**/*.proto dist/",
8
- "bump": "./scripts/bump.sh",
9
- "bump-win": "cross-env ./scripts/bump.sh"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
14
- },
15
- "keywords": [
16
- "nodejs"
17
- ],
18
- "author": "Rosmer Campos",
19
- "license": "MIT",
20
- "bugs": {
21
- "url": "https://github.com/criptopreto/easywork-common-lib/issues"
22
- },
23
- "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
24
- "dependencies": {
25
- "@golevelup/nestjs-rabbitmq": "^5.3.0",
26
- "@nestjs/common": "^10.3.8",
27
- "@nestjs/swagger": "^7.4.0",
28
- "@nestjs/typeorm": "^10.0.2",
29
- "class-transformer": "^0.5.1",
30
- "class-validator": "^0.14.1",
31
- "nanoid": "3",
32
- "rxjs": "^7.8.1",
33
- "sharp": "^0.33.5",
34
- "typeorm": "^0.3.20"
35
- },
36
- "devDependencies": {
37
- "@rubiin/tsconfig": "^1.1.2",
38
- "@types/node": "^20.12.12",
39
- "cpx-fixed": "^1.6.0",
40
- "ts-loader": "^9.5.1",
41
- "typescript": "^5.4.5"
42
- }
43
- }
1
+ {
2
+ "name": "easywork-common-lib",
3
+ "version": "1.0.427",
4
+ "description": "Librería común de Easywork",
5
+ "main": "dist/index.js",
6
+ "scripts": {
7
+ "build": "tsc && cpx-fixed src/**/*.proto dist/",
8
+ "bump": "./scripts/bump.sh",
9
+ "bump-win": "cross-env ./scripts/bump.sh"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/criptopreto/easywork-common-lib.git"
14
+ },
15
+ "keywords": [
16
+ "nodejs"
17
+ ],
18
+ "author": "Rosmer Campos",
19
+ "license": "MIT",
20
+ "bugs": {
21
+ "url": "https://github.com/criptopreto/easywork-common-lib/issues"
22
+ },
23
+ "homepage": "https://github.com/criptopreto/easywork-common-lib#readme",
24
+ "dependencies": {
25
+ "@golevelup/nestjs-rabbitmq": "^5.3.0",
26
+ "@nestjs/common": "^10.3.8",
27
+ "@nestjs/swagger": "^7.4.0",
28
+ "@nestjs/typeorm": "^10.0.2",
29
+ "class-transformer": "^0.5.1",
30
+ "class-validator": "^0.14.1",
31
+ "nanoid": "3",
32
+ "rxjs": "^7.8.1",
33
+ "sharp": "^0.33.5",
34
+ "typeorm": "^0.3.20"
35
+ },
36
+ "devDependencies": {
37
+ "@rubiin/tsconfig": "^1.1.2",
38
+ "@types/node": "^20.12.12",
39
+ "cpx-fixed": "^1.6.0",
40
+ "ts-loader": "^9.5.1",
41
+ "typescript": "^5.4.5"
42
+ }
43
+ }
package/scripts/bump.sh CHANGED
@@ -1,6 +1,6 @@
1
- git add .
2
- git commit -m "bump version"
3
- npm version patch
4
- npm run build
5
- npm publish
1
+ git add .
2
+ git commit -m "bump version"
3
+ npm version patch
4
+ npm run build
5
+ npm publish
6
6
  git push
package/test.bat CHANGED
@@ -1,16 +1,16 @@
1
- @echo off
2
- setlocal enabledelayedexpansion
3
-
4
- rem Define the root directory
5
- set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
6
-
7
- rem Iterate through all directories and subdirectories
8
- for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
9
- rem Check if the directory name contains node_modules
10
- echo %%d | findstr /i /c:"\node_modules" >nul
11
- echo %%d | findstr /i /c:"\.git" >nul
12
- if errorlevel 1 (
13
- rem If not, list the directory contents
14
- dir "%%d"
15
- )
1
+ @echo off
2
+ setlocal enabledelayedexpansion
3
+
4
+ rem Define the root directory
5
+ set "root=C:\Users\ROSME\Documents\GitHub\easywork-common-lib"
6
+
7
+ rem Iterate through all directories and subdirectories
8
+ for /f "delims=" %%d in ('dir "%root%" /ad /b /s') do (
9
+ rem Check if the directory name contains node_modules
10
+ echo %%d | findstr /i /c:"\node_modules" >nul
11
+ echo %%d | findstr /i /c:"\.git" >nul
12
+ if errorlevel 1 (
13
+ rem If not, list the directory contents
14
+ dir "%%d"
15
+ )
16
16
  )
@@ -1,4 +1,4 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
4
- }
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "exclude": ["node_modules", "test", "dist", "**/*spec.ts", "eslint.config.js"]
4
+ }
package/tsconfig.json CHANGED
@@ -1,26 +1,26 @@
1
- {
2
- "extends": "@rubiin/tsconfig",
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "declaration": true,
6
- "removeComments": true,
7
- "emitDecoratorMetadata": true,
8
- "experimentalDecorators": true,
9
- "allowSyntheticDefaultImports": true,
10
- "target": "ES2022",
11
- "sourceMap": true,
12
- "outDir": "./dist",
13
- "rootDir": "./src",
14
- "baseUrl": "./src",
15
- "incremental": true,
16
- "strict": true,
17
- "skipLibCheck": true,
18
- "strictNullChecks": false,
19
- "noImplicitAny": false,
20
- "strictBindCallApply": false,
21
- "forceConsistentCasingInFileNames": true,
22
- "noFallthroughCasesInSwitch": false
23
- },
24
- "include": ["test/**/*", "src/**/*", "eslint.config.js"],
25
- "typeRoots": ["./src/common/@types/typings"]
1
+ {
2
+ "extends": "@rubiin/tsconfig",
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "declaration": true,
6
+ "removeComments": true,
7
+ "emitDecoratorMetadata": true,
8
+ "experimentalDecorators": true,
9
+ "allowSyntheticDefaultImports": true,
10
+ "target": "ES2022",
11
+ "sourceMap": true,
12
+ "outDir": "./dist",
13
+ "rootDir": "./src",
14
+ "baseUrl": "./src",
15
+ "incremental": true,
16
+ "strict": true,
17
+ "skipLibCheck": true,
18
+ "strictNullChecks": false,
19
+ "noImplicitAny": false,
20
+ "strictBindCallApply": false,
21
+ "forceConsistentCasingInFileNames": true,
22
+ "noFallthroughCasesInSwitch": false
23
+ },
24
+ "include": ["test/**/*", "src/**/*", "eslint.config.js"],
25
+ "typeRoots": ["./src/common/@types/typings"]
26
26
  }