Browse Source

fix(ui-devkit): Update angular.json for v19 compatibility

Michael Bromley 9 months ago
parent
commit
1ac69a75a5
1 changed files with 12 additions and 12 deletions
  1. 12 12
      packages/ui-devkit/scaffold/angular.json

+ 12 - 12
packages/ui-devkit/scaffold/angular.json

@@ -15,13 +15,16 @@
       },
       "architect": {
         "build": {
-          "builder": "@angular-devkit/build-angular:browser",
+          "builder": "@angular-devkit/build-angular:application",
           "options": {
-            "baseHref": "/",
-            "outputPath": "dist",
+            "baseHref": "/admin/",
+            "outputPath": {
+              "base": "dist"
+            },
             "index": "src/index.html",
-            "main": "src/main.ts",
-            "polyfills": "src/polyfills.ts",
+            "polyfills": [
+              "src/polyfills.ts"
+            ],
             "tsConfig": "src/tsconfig.app.json",
             "assets": [
               {
@@ -72,12 +75,11 @@
               "@vendure/common/lib/pick",
               "@messageformat/core"
             ],
-            "vendorChunk": true,
             "extractLicenses": false,
-            "buildOptimizer": false,
             "sourceMap": true,
             "optimization": false,
-            "namedChunks": true
+            "namedChunks": true,
+            "browser": "src/main.ts"
           },
           "configurations": {
             "production": {
@@ -100,8 +102,7 @@
               },
               "outputHashing": "all",
               "namedChunks": false,
-              "extractLicenses": true,
-              "vendorChunk": false
+              "extractLicenses": true
             }
           },
           "defaultConfiguration": ""
@@ -109,7 +110,7 @@
         "serve": {
           "builder": "@angular-devkit/build-angular:dev-server",
           "options": {
-            "browserTarget": "vendure-admin:build"
+            "buildTarget": "vendure-admin:build"
           }
         }
       }
@@ -122,7 +123,6 @@
     }
   },
   "cli": {
-    "packageManager": "yarn",
     "analytics": false
   }
 }