build: exclude system-config-spec.ts for releases (#2754)

* No longer publishes the `system-config-spec.ts` file in releases. Extending the glob to also remove the `-spec.ts` files.
  In the future it's planned to not build spec files for releases at all..
This commit is contained in:
Paul Gschwendtner
2017-01-24 23:09:35 +01:00
committed by Andrew Seguin
parent 592f33f0cb
commit 71c6829949
+3 -2
View File
@@ -10,8 +10,9 @@ import {DIST_COMPONENTS_ROOT} from '../constants';
const argv = minimist(process.argv.slice(3));
task(':build:release:clean-spec', cleanTask('dist/**/*.spec.*'));
/** Removes redundant spec files from the release. TypeScript creates definition files for specs. */
// TODO(devversion): tsconfig files should share code and don't generate spec files for releases.
task(':build:release:clean-spec', cleanTask('dist/**/*(-|.)spec.*'));
task('build:release', function(done: () => void) {