Skip to content

Commit

Permalink
fix(reflect-metadata): add typings reflect-metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
haiko committed Jun 22, 2016
1 parent ef0829f commit efe3983
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
],
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/decorators.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="../node_modules/reflect-metadata/reflect-metadata.d.ts" />

/**
* Created by haiko on 28-5-16.
*/
Expand Down
4 changes: 3 additions & 1 deletion src/form-object.builder.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/// <reference path="../node_modules/reflect-metadata/reflect-metadata.d.ts" />


/**
* Created by haiko on 18-4-16.
*
Expand All @@ -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';

Expand Down
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"declaration": true,
"outDir": "./dist"
},
"definitions": [
"node_modules/reflect-metadata/reflect-metadata.d.ts"
],
"exclude": [
"node_modules"
]
Expand Down

0 comments on commit efe3983

Please sign in to comment.