From e106efa3ec9730b25b407c52585b668c9e2a4a38 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 26 Oct 2023 11:01:25 +0100 Subject: [PATCH] remove moment from the dependencies --- app/project.json | 4 ++-- package-lock.json | 14 ++------------ package.json | 4 ---- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/app/project.json b/app/project.json index 17fbf0654d..42b82ae8b7 100644 --- a/app/project.json +++ b/app/project.json @@ -12,7 +12,7 @@ "main": "app/src/main.ts", "tsConfig": "app/tsconfig.app.json", "polyfills": "app/src/polyfills.ts", - "allowedCommonJsDependencies": ["moment-es6", "minimatch", "moment", "cropperjs"], + "allowedCommonJsDependencies": ["minimatch", "cropperjs"], "stylePreprocessorOptions": { "includePaths": ["projects/aca-content/src/lib/ui", "node_modules"] }, @@ -91,7 +91,7 @@ "projects/aca-content/src/lib/ui/application.scss", "app/src/styles.scss" ], - "scripts": ["node_modules/pdfjs-dist/build/pdf.js", "node_modules/pdfjs-dist/web/pdf_viewer.js", "node_modules/moment/min/moment.min.js"], + "scripts": ["node_modules/pdfjs-dist/build/pdf.js", "node_modules/pdfjs-dist/web/pdf_viewer.js"], "vendorChunk": true, "extractLicenses": false, "buildOptimizer": false, diff --git a/package-lock.json b/package-lock.json index 0fc9a0baea..e1f8694373 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,13 +23,11 @@ "@angular/forms": "14.1.3", "@angular/material": "14.1.3", "@angular/material-date-fns-adapter": "14.1.3", - "@angular/material-moment-adapter": "14.1.3", "@angular/platform-browser": "14.1.3", "@angular/platform-browser-dynamic": "14.1.3", "@angular/router": "14.1.3", "@fontsource/open-sans": "^5.0.12", "@mat-datetimepicker/core": "^10.1.1", - "@mat-datetimepicker/moment": "^10.1.1", "@ngrx/effects": "^14.2.0", "@ngrx/router-store": "^14.2.0", "@ngrx/store": "^14.2.0", @@ -38,8 +36,6 @@ "date-fns": "^2.30.0", "material-icons": "^1.13.8", "minimatch-browser": "^1.0.0", - "moment": "^2.29.4", - "moment-es6": "1.0.0", "pdfjs-dist": "3.3.122", "rxjs": "6.6.6", "tslib": "^2.5.3", @@ -1851,6 +1847,7 @@ "version": "14.1.3", "resolved": "https://registry.npmjs.org/@angular/material-moment-adapter/-/material-moment-adapter-14.1.3.tgz", "integrity": "sha512-2zmkCR2oiCdTTaTSL4o6rNdDNPrzEjBbOwYq1/BTQEhX8hCM1K927P4hPk3H5+9w10g/N8DFnTol62muSuEDEA==", + "peer": true, "dependencies": { "tslib": "^2.3.0" }, @@ -6279,6 +6276,7 @@ "version": "10.1.1", "resolved": "https://registry.npmjs.org/@mat-datetimepicker/moment/-/moment-10.1.1.tgz", "integrity": "sha512-lb9PfQLkbL//C4zXXNzLTeJo2H0cXQvpbTIT3irw4purVCwoLBBCep1+Y7ELy8rOaG2D0o+nHIQB+mPRszEsMA==", + "peer": true, "dependencies": { "tslib": "^2.4.0" }, @@ -22568,14 +22566,6 @@ "node": "*" } }, - "node_modules/moment-es6": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/moment-es6/-/moment-es6-1.0.0.tgz", - "integrity": "sha1-VS/PQF1iVlsKH+hObB5peseTMt8=", - "dependencies": { - "moment": "*" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", diff --git a/package.json b/package.json index 596a58b4f9..152f779b20 100644 --- a/package.json +++ b/package.json @@ -46,13 +46,11 @@ "@angular/forms": "14.1.3", "@angular/material": "14.1.3", "@angular/material-date-fns-adapter": "14.1.3", - "@angular/material-moment-adapter": "14.1.3", "@angular/platform-browser": "14.1.3", "@angular/platform-browser-dynamic": "14.1.3", "@angular/router": "14.1.3", "@fontsource/open-sans": "^5.0.12", "@mat-datetimepicker/core": "^10.1.1", - "@mat-datetimepicker/moment": "^10.1.1", "@ngrx/effects": "^14.2.0", "@ngrx/router-store": "^14.2.0", "@ngrx/store": "^14.2.0", @@ -61,8 +59,6 @@ "date-fns": "^2.30.0", "material-icons": "^1.13.8", "minimatch-browser": "^1.0.0", - "moment": "^2.29.4", - "moment-es6": "1.0.0", "pdfjs-dist": "3.3.122", "rxjs": "6.6.6", "tslib": "^2.5.3",