Skip to content

Commit

Permalink
fix: remove typescript dep (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh committed Feb 16, 2019
1 parent 630575d commit eab8d79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const crypto = require('crypto')
const babelJest = require('babel-jest')
const tsJest = require('ts-jest')

module.exports = {
process: require('./process'),
Expand All @@ -20,13 +19,6 @@ module.exports = {
}),
'hex'
)
.update(
tsJest.getCacheKey(fileData, filename, configString, {
instrument,
rootDir
}),
'hex'
)
.digest('hex')
}
}
2 changes: 1 addition & 1 deletion lib/utils.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const loadPartialConfig = require('@babel/core').loadPartialConfig
const createTransformer = require('ts-jest').createTransformer
const chalk = require('chalk')
const path = require('path')
const fs = require('fs')
Expand Down Expand Up @@ -64,6 +63,7 @@ const getBabelOptions = function loadBabelOptions(filename, options = {}) {
}

const getTsJestConfig = function getTsJestConfig(config) {
const createTransformer = require('ts-jest').createTransformer
const tr = createTransformer()
const { typescript } = tr.configsFor(config)
return { compilerOptions: typescript.options }
Expand Down

0 comments on commit eab8d79

Please sign in to comment.