[MIGRATION] - Improving the testing build to avoid having to bundle also the js-api

This commit is contained in:
VitoAlbano
2024-08-19 22:29:17 +01:00
parent 92823bd8ab
commit cf175c67b8
12 changed files with 14 additions and 34 deletions
+6 -16
View File
@@ -5,27 +5,17 @@
"projectType": "library",
"prefix": "adf",
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
"executor": "@angular-devkit/build-angular:ng-packagr",
"options": {
"projectRoot": "lib/testing",
"outputPath": "dist/libs/testing",
"main": "lib/testing/index.ts",
"generatePackageJson": true,
"tsConfig": "lib/testing/tsconfig.lib.prod.json",
"stylePreprocessorOptions": {
"includePaths": ["lib", "lib/core/src/lib"]
},
"target": "node",
"compiler": "tsc"
"tsConfig": "lib/testing/tsconfig.lib.json",
"project": "lib/testing/ng-package.json"
},
"configurations": {
"production": {
"projectRoot": "lib/testing",
"outputPath": "dist/libs/testing",
"main": "lib/testing/index.ts",
"generatePackageJson": true,
"tsConfig": "lib/testing/tsconfig.lib.prod.json"
"project": "lib/testing/ng-package.json",
"tsConfig": "lib/testing/tsconfig.prod.json"
}
},
"defaultConfiguration": "production"