From c52a2583cec90fa094b5962d9813bc0acceeb4c9 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Wed, 14 Oct 2020 16:08:28 +0200 Subject: [PATCH] fix(admin-ui): Fix build-time Angular CLI warnings --- packages/admin-ui/angular.json | 9 ++++++++- packages/admin-ui/src/tsconfig.app.json | 1 - packages/ui-devkit/scaffold/angular.json | 9 ++++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/admin-ui/angular.json b/packages/admin-ui/angular.json index 9efd42fe33..9db82ea064 100644 --- a/packages/admin-ui/angular.json +++ b/packages/admin-ui/angular.json @@ -35,7 +35,14 @@ "./src/lib/static/styles" ] }, - "showCircularDependencies": false + "showCircularDependencies": false, + "allowedCommonJsDependencies": [ + "graphql-tag", + "zen-observable", + "lodash", + "apollo-upload-client", + "@vendure/common/lib/simple-deep-clone" + ] }, "configurations": { "production": { diff --git a/packages/admin-ui/src/tsconfig.app.json b/packages/admin-ui/src/tsconfig.app.json index b49c16c011..e8351690f3 100644 --- a/packages/admin-ui/src/tsconfig.app.json +++ b/packages/admin-ui/src/tsconfig.app.json @@ -11,7 +11,6 @@ "src/**/*.d.ts" ], "angularCompilerOptions": { - "strictMetadataEmit": true, "fullTemplateTypeCheck": true, "strictInjectionParameters": true } diff --git a/packages/ui-devkit/scaffold/angular.json b/packages/ui-devkit/scaffold/angular.json index 67886e54f7..6287483e75 100644 --- a/packages/ui-devkit/scaffold/angular.json +++ b/packages/ui-devkit/scaffold/angular.json @@ -44,7 +44,14 @@ "./src/styles" ] }, - "showCircularDependencies": false + "showCircularDependencies": false, + "allowedCommonJsDependencies": [ + "graphql-tag", + "zen-observable", + "lodash", + "apollo-upload-client", + "@vendure/common/lib/simple-deep-clone" + ] }, "configurations": { "production": {