From: Jérôme Benoit Date: Sat, 13 Jan 2024 21:03:37 +0000 (+0100) Subject: build: add script to build MikroORM entities X-Git-Tag: v1.2.32~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1552a66625ca8840ce475d2393b5c251630adf00;p=e-mobility-charging-stations-simulator.git build: add script to build MikroORM entities Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index 8f45c241..0b05f6ac 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "compareUrl": "https://github.com/sap/e-mobility-charging-stations-simulator/compare/{from}...{to}" }, "mikro-orm": { - "tsConfigPath": "./tsconfig-orm.json", + "tsConfigPath": "./tsconfig-mikro-orm.json", "useTsNode": true }, "scripts": { @@ -67,6 +67,7 @@ "build:dev": "cross-env BUILD=development pnpm esbuild", "build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm build", "build:cf:dev": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm build:dev", + "build:entities": "tsc -p tsconfig-mikro-orm.json", "clean:dist": "npx rimraf dist", "clean:node_modules": "npx rimraf node_modules", "lint": "cross-env TIMING=1 eslint --cache src tests .eslintrc.cjs bundle.js mikro-orm.config-template.ts", @@ -107,7 +108,6 @@ "mongodb": "^6.3.0", "poolifier": "^3.1.18", "tar": "^6.2.0", - "tslib": "^2.6.2", "winston": "^3.11.0", "winston-daily-rotate-file": "^4.7.1", "ws": "^8.16.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c02ce18b..ea0520a3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -62,9 +62,6 @@ dependencies: tar: specifier: ^6.2.0 version: 6.2.0 - tslib: - specifier: ^2.6.2 - version: 2.6.2 winston: specifier: ^3.11.0 version: 3.11.0 @@ -9130,6 +9127,7 @@ packages: /tslib@2.6.2: resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} + dev: true /tsx@4.7.0: resolution: {integrity: sha512-I+t79RYPlEYlHn9a+KzwrvEwhJg35h/1zHsLC2JXvhC2mdynMv6Zxzvhv5EMV6VF5qJlLlkSnMVvdZV3PSIGcg==} diff --git a/tsconfig-mikro-orm.json b/tsconfig-mikro-orm.json new file mode 100644 index 00000000..1d40e6e2 --- /dev/null +++ b/tsconfig-mikro-orm.json @@ -0,0 +1,10 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "rootDir": "./src/types/orm/entities", + "outDir": "./dist/types/orm/entities", + "sourceMap": true, + "esModuleInterop": true + }, + "include": ["src/types/orm/entities/*.ts"] +} diff --git a/tsconfig-orm.json b/tsconfig-orm.json deleted file mode 100644 index 5635d6cd..00000000 --- a/tsconfig-orm.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "sourceMap": true - } -} diff --git a/tsconfig.json b/tsconfig.json index a7219929..0107ea53 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,6 @@ "module": "NodeNext", "lib": ["es2022"], "removeComments": true, - "importHelpers": true, "strict": true,