module.exports = function(config) {
  config.set({
    preprocessors: {
      'spec/**/*.ts': ['typescript']
    },
    frameworks: ['jasmine'],
    browsers: ['Firefox'],
    files: [
      'build/bundle.js',
      'spec/**/*.spec.ts'
    ],
    typescriptPreprocessor: {
    }
  })
}

var fs = require('fs')

module.exports = function(config) {
  config.set({
    preprocessors: {
      'spec/**/*.ts': ['typescript']
    },
    frameworks: ['jasmine'],
    browsers: ['Firefox'],
    files: [
      'build/bundle.js',
      'spec/**/*.spec.ts'
    ],
    typescriptPreprocessor: {
      config: JSON.parse(fs.readFileSync('./tsconfig.json', 'utf8')).compilerOptions
    }
  })
}

Set preprocessor options to ts config values.