Skip to content

Commit 6d55ced

Browse files
Update dependencies and optimize Angular project setup (#680)
* **Update dependencies and optimize Angular project setup** - Removed `zone.js` polyfill and enabled zoneless change detection to improve performance. - Updated Angular and related libraries to the latest versions. - Updated custom library dependencies (`@openmfp/portal-ui-lib`, `@ui5/webcomponents-ngx`) for compatibility. - Adjusted backend module for Windows compatibility. * remove not needed dependencies * update deps * Update package dependencies to use flexible version ranges --------- Co-authored-by: Grzegorz Krajniak <grzegorz.krajniak@sap.com>
1 parent 952bebe commit 6d55ced

File tree

7 files changed

+798
-1054
lines changed

7 files changed

+798
-1054
lines changed

backend/package-lock.json

Lines changed: 25 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"test:e2e": "jest --config ./test/jest-e2e.json --passWithNoTests"
2323
},
2424
"dependencies": {
25-
"@kubernetes/client-node": "1.4.0",
25+
"@kubernetes/client-node": "^1.4.0",
2626
"@nestjs/axios": "^4.0.1",
2727
"@nestjs/common": "^11.1.8",
2828
"@nestjs/core": "^11.1.8",
2929
"@nestjs/platform-express": "^11.1.8",
3030
"@nestjs/serve-static": "^5.0.4",
31-
"@openmfp/portal-server-lib": "0.163.6",
31+
"@openmfp/portal-server-lib": "0.163.7",
3232
"axios": "^1.6.3",
33-
"class-validator": "0.14.3",
34-
"cookie-parser": "1.4.7",
35-
"dotenv": "17.2.3",
36-
"reflect-metadata": "0.2.2",
33+
"class-validator": "^0.14.3",
34+
"cookie-parser": "^1.4.7",
35+
"dotenv": "^17.2.3",
36+
"reflect-metadata": "^0.2.2",
3737
"rxjs": "^7.8.1"
3838
},
3939
"devDependencies": {
@@ -86,4 +86,4 @@
8686
}
8787
},
8888
"type": "module"
89-
}
89+
}

backend/src/app.module.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
import { Module } from '@nestjs/common';
2-
import { PortalModule, PortalModuleOptions } from '@openmfp/portal-server-lib';
2+
import {
3+
PortalModule,
4+
PortalModuleOptions,
5+
} from '@openmfp/portal-server-lib';
36
import { config } from 'dotenv';
47
import * as path from 'node:path';
58

6-
const __filename = new URL(import.meta.url).pathname;
9+
let __filename = new URL(import.meta.url).pathname;
10+
if (process.platform === 'win32' && __filename.startsWith('/')) {
11+
__filename = __filename.slice(1);
12+
}
713
const __dirname = path.dirname(__filename);
814

915
config({ path: './.env' });

frontend/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"base": "dist/frontend"
2222
},
2323
"index": "src/index.html",
24-
"polyfills": ["zone.js", "@angular/localize/init"],
24+
"polyfills": ["@angular/localize/init"],
2525
"tsConfig": "tsconfig.app.json",
2626
"inlineStyleLanguage": "scss",
2727
"assets": [

0 commit comments

Comments
 (0)