Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 10 additions & 17 deletions core-web/apps/dotcms-ui/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
"prefix": "dot",
"targets": {
"build": {
"executor": "@nx/angular:browser-esbuild",
"executor": "@angular-devkit/build-angular:application",
"outputs": ["{options.outputPath.base}"],
"options": {
"baseHref": "./",
"outputPath": "dist/apps/dotcms-ui",
"outputPath": {
"base": "dist/apps/dotcms-ui",
"browser": ""
},
Comment on lines +9 to +16
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

outputs is set to {options.outputPath.base}, but outputPath is not consistently an object across configurations (e.g., development overrides it with a string). This can break Nx output tracking/caching and may fail option validation depending on the builder schema. Keep outputPath the same type in all configurations (either always a string, or always an object) and make outputs reference the correct path accordingly.

Copilot uses AI. Check for mistakes.
"index": "apps/dotcms-ui/src/index.html",
"main": "apps/dotcms-ui/src/main.ts",
"polyfills": "apps/dotcms-ui/src/polyfills.ts",
"browser": "apps/dotcms-ui/src/main.ts",
"polyfills": ["apps/dotcms-ui/src/polyfills.ts"],
"tsConfig": "apps/dotcms-ui/tsconfig.app.json",
"inlineStyleLanguage": "scss",
"allowedCommonJsDependencies": [
"lodash",
"dragula",
Expand Down Expand Up @@ -67,19 +72,11 @@
"node_modules/primeng/resources/primeng.min.css",
"node_modules/gridstack/dist/gridstack.min.css"
],
"scripts": [
"node_modules/prismjs/prism.js",
"node_modules/prismjs/components/prism-css.min.js",
"node_modules/prismjs/components/prism-typescript.min.js",
"node_modules/prismjs/components/prism-bash.min.js",
"node_modules/clipboard/dist/clipboard.min.js"
],
"scripts": [],
"stylePreprocessorOptions": {
"includePaths": ["libs/dotcms-scss/angular"]
},
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
Expand All @@ -97,8 +94,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -119,8 +114,6 @@
"optimization": false,
"sourceMap": false,
"namedChunks": false,
"vendorChunk": true,
"buildOptimizer": false,
"extractLicenses": false,
"fileReplacements": [],
Comment on lines 114 to 118
Copy link

Copilot AI Feb 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the base options.outputPath was changed to an object, this development configuration now overrides outputPath with a string, creating an inconsistent option type across configurations. This can lead to builder schema validation errors and also makes the target's outputs ({options.outputPath.base}) invalid for the development build. Align development.outputPath with the same object shape (or keep outputPath as a string everywhere).

Copilot uses AI. Check for mistakes.
"progress": false,
Expand Down
Loading