Skip to content

build: include cdk testing entry-point in release output #17030

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions src/cdk/testing/tsconfig-build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "../tsconfig-build",
"files": [
"public-api.ts",
"../typings.d.ts"
],
"angularCompilerOptions": {
"annotateForClosureCompiler": true,
"strictMetadataEmit": true,
"flatModuleOutFile": "index.js",
"flatModuleId": "@angular/cdk/testing",
"skipTemplateCodegen": true,
"fullTemplateTypeCheck": true
}
}
14 changes: 9 additions & 5 deletions src/cdk/tsconfig-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
}
},
"files": [
"./testing/index.ts",
"./index.ts",
"typings.d.ts"
],
Expand All @@ -24,20 +23,25 @@
"emitDecoratorMetadata": true,
"fullTemplateTypeCheck": true,

// Unset options inherited from tsconfig-build
// Unset options inherited from tsconfig-build.
"annotateForClosureCompiler": false,
"flatModuleOutFile": null,
"flatModuleId": null
},
"include": [
// Include the index.ts for each secondary entry-point
// Include the index.ts for each secondary entry-point.
"./*/index.ts",
// Include the "private/testing" internal entry-point.
"./private/testing/",
// Include all spec files of the CDK.
"**/*.spec.ts"
],
"exclude": [
"**/schematics/**/*.ts",
// Exclude end-to-end tests and utilities
// Exclude end-to-end tests and utilities.
"**/*.e2e.spec.ts",
"./testing/e2e/**"
// Exclude internal e2e testing utilities. These are not needed by tests
// which execute through gulp.
"./private/testing/e2e/**"
]
}