update tsconfig stable to import and run

This commit is contained in:
2024-11-30 11:59:16 +07:00
parent eb37c4967f
commit 6e2361166a
3 changed files with 25 additions and 6 deletions

View File

@ -2,7 +2,7 @@
"name": "Entity", "name": "Entity",
"version": "1.0.0", "version": "1.0.0",
"description": "This kind of project was built to present entity table type ORM", "description": "This kind of project was built to present entity table type ORM",
"main": "dist/src/index.d.ts", "main": "dist/src/index.js",
"types": "dist/src/index.d.ts", "types": "dist/src/index.d.ts",
"scripts": { "scripts": {
"dev": "nodemon", "dev": "nodemon",

View File

@ -5,5 +5,24 @@ import { UserActivity } from "./entity/user_activity";
import { UserRefreshToken } from "./entity/user_refresh_token"; import { UserRefreshToken } from "./entity/user_refresh_token";
import { User } from "./entity/users"; import { User } from "./entity/users";
import { UserRole } from "./entity/users_roles"; import { UserRole } from "./entity/users_roles";
import { ActivityType } from "./types/action";
import { ErrorType, ErrorValidation } from "./types/error";
import { Paging } from "./types/paging";
import { RoleList } from "./types/role";
import { Status } from "./types/status";
export { User, UserRole, UserActivity, UserRefreshToken, TrialBalance, LNKOLEK, CifAccount }; export {
User,
UserRole,
UserActivity,
UserRefreshToken,
TrialBalance,
LNKOLEK,
CifAccount,
ActivityType,
ErrorType,
ErrorValidation,
Paging,
RoleList,
Status
};

View File

@ -17,10 +17,10 @@
// "baseUrl": "src/", // "baseUrl": "src/",
"noImplicitReturns": true, "noImplicitReturns": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"allowJs": true, // "allowJs": true,
"declaration": true, "declaration": true
"emitDeclarationOnly": true, // "emitDeclarationOnly": true,
"declarationMap": true // "declarationMap": true
}, },
"include": ["src/swagger-output.json", "src/langs/json/*.json", "./src/**/*.tsx", "./src/**/*.ts"], "include": ["src/swagger-output.json", "src/langs/json/*.json", "./src/**/*.tsx", "./src/**/*.ts"],
"exclude": ["node_modules", "test/**/*.ts"] "exclude": ["node_modules", "test/**/*.ts"]