diff --git a/karma.conf.js b/karma.conf.js index 2546c9e..a2425cb 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -34,7 +34,7 @@ module.exports = function(config) { // paths to support debugging with source maps in dev tools {pattern: 'src/**/*.ts', included: false, watched: true}, {pattern: 'test/**/*.ts', included: false, watched: true}, - {pattern: 'dist/**/*.js.map', included: false, watched: true}, + // {pattern: 'dist/**/*.js.map', included: false, watched: true}, {pattern: 'dist/**/*.js', included: false, watched: true}, // test again for coverage 'karma-test-shim.js' ], diff --git a/package.json b/package.json index 3e79462..a8782fb 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,7 @@ "karma-spec-reporter": "0.0.26", "lodash": "^4.13.1", "remap-istanbul": "0.6.x", + "reflect-metadata": "^0.1.3", "rxjs": "~5.0.0-beta.6", "systemjs": "^0.19.31", "systemjs-builder": "^0.15.13", diff --git a/src/decorators.ts b/src/decorators.ts index 07015c2..650dbea 100644 --- a/src/decorators.ts +++ b/src/decorators.ts @@ -1,3 +1,5 @@ +/// + /** * Created by haiko on 28-5-16. */ diff --git a/src/form-object.builder.ts b/src/form-object.builder.ts index 177446e..780b89a 100644 --- a/src/form-object.builder.ts +++ b/src/form-object.builder.ts @@ -1,3 +1,6 @@ +/// + + /** * Created by haiko on 18-4-16. * @@ -6,7 +9,6 @@ import { Validators, Control, ControlGroup } from '@angular/common'; import 'rxjs/add/operator/debounceTime'; import * as _ from 'lodash'; -import 'reflect-metadata'; import { FormValidators } from './form.validators'; import * as decorator from './decorators'; diff --git a/tsconfig.json b/tsconfig.json index 0bf3a20..2bc03b9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,9 +10,6 @@ "declaration": true, "outDir": "./dist" }, - "definitions": [ - "node_modules/reflect-metadata/reflect-metadata.d.ts" - ], "exclude": [ "node_modules" ]