Skip to content

Commit

Permalink
fix: build task dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Oct 10, 2024
1 parent 69e992d commit b9d5000
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion packages/types/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
"targets": {
"build": {
"executor": "@nx/js:tsc",
"dependsOn": ["^build"],
"options": {
"main": "packages/types/index.ts",
"outputPath": "dist/packages/types",
"outputPath": "dist/@redhat-cloud-services/types",
"tsConfig": "packages/types/tsconfig.json"
}
},
Expand Down
20 changes: 11 additions & 9 deletions packages/utils/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,51 @@
"targets": {
"build:cjs": {
"executor": "@nx/js:tsc",
"dependsOn": ["^build:cjs"],
"options": {
"rootDir": "packages/utils/src",
"main": "packages/utils/src/index.ts",
"outputPath": "dist/utils",
"outputPath": "dist/@redhat-cloud-services/frontend-components-utilities",
"tsConfig": "packages/utils/tsconfig.cjs.json"
}
},
"build:esm": {
"executor": "@nx/js:tsc",
"dependsOn": ["^build:esm"],
"options": {
"rootDir": "packages/utils/src",
"main": "packages/utils/src/index.ts",
"outputPath": "dist/utils/esm",
"outputPath": "dist/@redhat-cloud-services/frontend-components-utilities/esm",
"tsConfig": "packages/utils/tsconfig.esm.json"
}
},
"build:styles": {
"executor": "@redhat-cloud-services/frontend-components-executors:build-styles",
"dependsOn": ["build:cjs", "build:esm"],
"dependsOn": ["^build:styles", "build:cjs", "build:esm"],
"options": {
"outputPath": "dist/utils",
"outputPath": "dist/@redhat-cloud-services/frontend-components-utilities",
"sourceDir": "packages/utils"
}
},
"build:packages": {
"dependsOn": ["build:cjs", "build:esm"],
"dependsOn": ["^build:packages","build:cjs", "build:esm"],
"executor": "@redhat-cloud-services/frontend-components-executors:build-packages",
"options": {
"outputPath": "dist/utils",
"outputPath": "dist/@redhat-cloud-services/frontend-components-utilities",
"forceTypes": true
}
},
"transform:scss": {
"dependsOn": ["build:cjs", "build:esm"],
"dependsOn": ["^transform:scss", "build:cjs", "build:esm"],
"executor": "@redhat-cloud-services/frontend-components-executors:transform-scss",
"options": {
"outputPath": "dist/utils"
"outputPath": "dist/@redhat-cloud-services/frontend-components-utilities"
}
},

"build": {
"executor": "nx:noop",
"dependsOn": ["build:styles", "build:packages", "transform:scss"]
"dependsOn": ["^build", "build:styles", "build:packages", "transform:scss"]
},
"lint": {
"executor": "@nx/eslint:lint",
Expand Down

0 comments on commit b9d5000

Please sign in to comment.